presage
0.9.2~beta
|
#include "config.h"
#include <iostream>
#include <fstream>
#include <vector>
#include <list>
#include <string>
#include <map>
#include <getopt.h>
#include <assert.h>
#include "core/tokenizer/forwardTokenizer.h"
#include "core/iso8859_1.h"
#include "core/progress.h"
#include "../lib/predictors/dbconnector/sqliteDatabaseConnector.h"
Go to the source code of this file.
Typedefs | |
typedef std::list< std::string > | NgramList |
Functions | |
void | usage () |
void | version () |
int | main (int argc, char *argv[]) |
Variables | |
const std::string | PROGRAM_NAME = "text2ngram" |
typedef std::list<std::string> NgramList |
Definition at line 53 of file text2ngram.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 58 of file text2ngram.cpp.
References DatabaseConnector::beginTransaction(), DatabaseConnector::createNgramTable(), endl(), DatabaseConnector::endTransaction(), DatabaseConnector::getNgramCount(), ForwardTokenizer::hasMoreTokens(), DatabaseConnector::insertNgram(), Tokenizer::lowercaseMode(), ForwardTokenizer::nextToken(), ForwardTokenizer::progress(), ProgressBar< _charT, _Traits >::update(), DatabaseConnector::updateNgram(), usage(), and version().
void usage | ( | ) |
Definition at line 308 of file text2ngram.cpp.
References endl(), and PROGRAM_NAME.
Referenced by main().
void version | ( | ) |
Definition at line 297 of file text2ngram.cpp.
References endl(), and PROGRAM_NAME.
Referenced by main().
const std::string PROGRAM_NAME = "text2ngram" |
Definition at line 51 of file text2ngram.cpp.