-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild model for spacy 2.1 and greater
- Loading branch information
1 parent
22083bf
commit 1ccd4c3
Showing
4 changed files
with
8 additions
and
6 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 +1,3 @@ | ||
data/ | ||
data/ | ||
|
||
venv/** |
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
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
def update_progress(curr, tot): | ||
workdone = curr/tot | ||
print("\rProgress: [{0:50s}] {1:.1f}% - {2}/{3}".format('#' * int(workdone * 50), workdone*100, curr, tot), | ||
print("\rProgress: [{0:50s}] {1:.1f}% - {2}/{3}".format('#' * int(workdone * 50), workdone*100, curr, tot), | ||
end="", flush=True) | ||
|
||
@plac.annotations( | ||
|
@@ -37,8 +37,8 @@ def main(input_file, output_folder_vectors=None, output_folder_model=None): | |
# edit package details | ||
nlp.meta['name'] = 'vectors_wiki_lg' | ||
nlp.meta['lang'] = 'it' | ||
nlp.meta['version'] = '1.0.0' | ||
nlp.meta['spacy_version'] = '>=2.0.0,<3.0.0' | ||
nlp.meta['version'] = '1.0.1' | ||
nlp.meta['spacy_version'] = '>=2.1.0,<3.0.0' | ||
nlp.meta['description'] = '300-dimensional word vectors trained on Wikipedia with GloVe.' | ||
nlp.meta['author'] = 'Martino Mensio' | ||
nlp.meta['email'] = '[email protected]' | ||
|