Corpus Cleaner
Public Member Functions | List of all members
fasttext::FastTextEx Class Reference

#include <language_filter.hpp>

Inheritance diagram for fasttext::FastTextEx:

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.
 

Detailed Description

Definition at line 18 of file language_filter.hpp.

Constructor & Destructor Documentation

◆ FastTextEx()

FastTextEx::FastTextEx ( )

Definition at line 4 of file language_filter.cpp.

Member Function Documentation

◆ predictOneLine()

void FastTextEx::predictOneLine ( string sentence,
vector< pair< real, string > > & predictions,
int32_t k,
real threshold ) const

Judge the language of one sentence.

Example:

Parameters
stringsentence: sentence Judged
vector<pair<real,string>>&predictions: Pointer for returning judgment results
int32_tk: Judge one sentence(1), judge multiple sentences(-1)
realthreshold: threshold for return
Returns
None : minhash https://fasttext.cc/docs/en/supervised-tutorial.html
Attention

Definition at line 22 of file language_filter.cpp.


The documentation for this class was generated from the following files: