-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c2db17
commit 3db4160
Showing
3 changed files
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
third-part/brown-cluster/wcluster --text WORDS.txt --c 1000 --threads 39 | ||
cpu_count=`nproc --all` | ||
process_count=$(expr $cpu_count - 1) | ||
|
||
./third-part/brown-cluster/wcluster --text WORDS.txt --c 1000 --threads ${process_count} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# TODO: process number shoud auto compute | ||
python ./spacy-dev-resources/training/plain_word_vectors.py -i 200 -n 6 ../chinese-wikipedia-corpus-creator/token_cleaned_plain_files WORDS_VECS.txt | ||
cpu_count=`nproc --all` | ||
process_count=$(expr $cpu_count - 1) | ||
|
||
python ./spacy-dev-resources/training/plain_word_vectors.py -i 200 -n ${process_count} ../chinese-wikipedia-corpus-creator/token_cleaned_plain_files WORDS_VECS.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
python ./spacy-dev-resources/training/plain_word_freqs.py -n 8 token_cleaned_plain_files WORDS_FREQ.txt | ||
cpu_count=`nproc --all` | ||
process_count=$(expr $cpu_count - 1) | ||
|
||
python ./spacy-dev-resources/training/plain_word_freqs.py -n ${process_count} token_cleaned_plain_files WORDS_FREQ.txt |