This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove printing functions from fasttext class
Summary: This diff removes the print capabilities from fasttext and defines a new api. - `predictLine` extracts predictions from exactly one line of the input stream. - the deprecated `printLabelStats` is removed as [js bindings don't use it]( https://www.facebook.com/groups/1174547215919768/?multi_permalinks=2328051983902613&comment_id=2360179150689896 ) - `ngramVectors` is now deprecated by the addition of `getNgramVectors`. `Vector` class remains copy-free but move semantics has been added. - `analogies` is now deprecated by `getAnalogies`. when called, fastText class lazy-precomputes word vectors - `findNN` is now deprecated by `getNN`. when called, fastText class lazy-precomputes word vectors - `trainThread` and `printInfo` functions are now private. - `supervised`, `cbow`, `skipgram`, `selectEmbeddings`, `precomputeWordVectors` are now deprecated and will be private in the future. - `saveVectors`, `saveOutput` and `saveModel` without arguments are now deprecated by their equivalent with filename as string argument. Reviewed By: EdouardGrave Differential Revision: D13083799 fbshipit-source-id: f557ed7c141a90a6171045fe118ac16c195c824f
- Loading branch information
1 parent
4aee63d
commit 256032b
Showing
9 changed files
with
395 additions
and
225 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
Oops, something went wrong.