|
Corpus Cleaner
|
#include <language_filter.hpp>
Public Member Functions | |
| FastTextEx () | |
| void | predictOneLine (string sentence, vector< pair< real, string > > &predictions, int32_t k, real threshold) const |
| Judge the language of one sentence. | |
Definition at line 18 of file language_filter.hpp.
| FastTextEx::FastTextEx | ( | ) |
Definition at line 4 of file language_filter.cpp.
| void FastTextEx::predictOneLine | ( | string | sentence, |
| vector< pair< real, string > > & | predictions, | ||
| int32_t | k, | ||
| real | threshold ) const |
Judge the language of one sentence.
Example:
| string | sentence: sentence Judged |
| vector<pair<real,string>>& | predictions: Pointer for returning judgment results |
| int32_t | k: Judge one sentence(1), judge multiple sentences(-1) |
| real | threshold: threshold for return |
Definition at line 22 of file language_filter.cpp.