File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,15 +33,15 @@ import spacy
3333nlp = spacy.load(" en_core_web_sm" )
3434doc = nlp(u " This is a sentence." )
3535for token in doc:
36- print (token.text + " [" + token.pos_ + " ]" )
36+ print (token.text + " [" + token.pos_ + " ]" )
3737```
3838
3939
4040Supported Platforms
4141===================
42- Spacy-cpp is implemented using C++11 with the intention of being portable. Current version has been
43- tested on:
44- - macOS 10.15 Catalina
42+ Spacy-cpp is implemented using C++11 with the intention of being portable. Current version has
43+ been tested on:
44+ - macOS Big Sur 11.0
4545- Ubuntu 20.04 LTS
4646
4747
Original file line number Diff line number Diff line change 8383
8484# build
8585if [[ " ${BUILD} " == " 1" ]]; then
86- mkdir -p build && cd build && cmake .. && make && cd .. || exiterr " build failed, exiting."
86+ OS=" $( uname) "
87+ MAKEARGS=" "
88+ if [ " ${OS} " == " Linux" ]; then
89+ MAKEARGS=" -j$( nproc) "
90+ elif [ " ${OS} " == " Darwin" ]; then
91+ MAKEARGS=" -j$( sysctl -n hw.ncpu) "
92+ fi
93+ mkdir -p build && cd build && cmake .. && make ${MAKEARGS} && cd .. || exiterr " build failed, exiting."
8794fi
8895
8996# tests
You can’t perform that action at this time.
0 commit comments