-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NL Server: use small spacy model instead of large (#4079)
Per SO (https://stackoverflow.com/a/57337084) and spacy website (https://spacy.io/models/en), the accuracy difference for Parts-Of-Speech task (for verb detection) between large vs. small is very small. The verb test sanity passes. This should cut down the memory usage per NL server a bunch, since the small model is apparently just 10MB (vs. 780MB). I see that heap-usage drops from 970MB to 230MB. Also, drop a super edge case handling for test environment which loads SentenceTransformer always.
- Loading branch information
Showing
5 changed files
with
8 additions
and
28 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
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
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