Corpus Cleaner
language_filter.hpp
Go to the documentation of this file.
1#include <iomanip>
2#include <iostream>
3#include <queue>
4#include <stdexcept>
5#include <vector>
6#include <string>
7
8#include "../scripts/fastText/src/args.h"
9#include "../scripts/fastText/src/autotune.h"
10#include "../scripts/fastText/src/fasttext.h"
11#include "../scripts/fastText/src/dictionary.h"
12#include "../scripts/fastText/src/real.h"
13
14using namespace fasttext;
15using namespace std;
16namespace fasttext {
17
18class FastTextEx: public FastText
19{
20private:
21public:
22 FastTextEx();
23 void predictOneLine(string sentence,
24 vector<pair<real, string>>& predictions,
25 int32_t k,
26 real threshold) const;
27};
28}
void predictOneLine(string sentence, vector< pair< real, string > > &predictions, int32_t k, real threshold) const
Judge the language of one sentence.