Skip to content

Commit 1685991

Browse files
committed
update doc and ci make.sh script
1 parent b9f46a8 commit 1685991

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ import spacy
3333
nlp = spacy.load("en_core_web_sm")
3434
doc = nlp(u"This is a sentence.")
3535
for token in doc:
36-
print (token.text + " [" + token.pos_ + "]")
36+
print(token.text + " [" + token.pos_ + "]")
3737
```
3838

3939

4040
Supported 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

make.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,14 @@ fi
8383

8484
# build
8585
if [[ "${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."
8794
fi
8895

8996
# tests

0 commit comments

Comments
 (0)