Corpus Cleaner
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
14
using namespace
fasttext
;
15
using namespace
std;
16
namespace
fasttext
{
17
18
class
FastTextEx
:
public
FastText
19
{
20
private
:
21
public
:
22
FastTextEx
();
23
void
predictOneLine
(
string
sentence,
24
vector<pair<real, string>>& predictions,
25
int32_t k,
26
real threshold)
const
;
27
};
28
}
fasttext::FastTextEx
Definition
language_filter.hpp:19
fasttext::FastTextEx::FastTextEx
FastTextEx()
Definition
language_filter.cpp:4
fasttext::FastTextEx::predictOneLine
void predictOneLine(string sentence, vector< pair< real, string > > &predictions, int32_t k, real threshold) const
Judge the language of one sentence.
Definition
language_filter.cpp:22
fasttext
Definition
language_filter.hpp:16
Generated by
1.10.0