#include <cstdlib>#include <map>#include <set>#include <cmath>#include <fstream>#include <iostream>#include <vector>#include <sstream>Go to the source code of this file.
Classes | |
| class | NodeStructure |
Functions | |
| double | addLogProbs (double A, double B) |
| void | loadInput (const char *fileName, vector< string > &input) |
| void | printGammas (map< string, double > &alignmentCounts) |
| void | getWords (string s, vector< string > &currInput) |
| double | getInitTransitionProb (int sourceToken, int targetToken) |
| void | runIteration (map< int, NodeStructure > &graph, map< string, double > &gammas, int size) |
| void | setNTRProbabilities (map< int, NodeStructure > &graph, map< string, double > &sourceTypes, map< string, double > &targetTypes, double sourceTokens, double targetTokens) |
| void | printPosterior (map< int, NodeStructure > &graph) |
| int | main (int argc, char *argv[]) |
Variables | |
| double | initTransitionProb |
| double | LAMBDA |
| double addLogProbs | ( | double | A, | |
| double | B | |||
| ) |
Definition at line 28 of file TransliterationMining.cpp.
Referenced by runIteration().

| double getInitTransitionProb | ( | int | sourceToken, | |
| int | targetToken | |||
| ) |
Definition at line 466 of file TransliterationMining.cpp.
Referenced by main().

| void getWords | ( | string | s, | |
| vector< string > & | currInput | |||
| ) |
Definition at line 449 of file TransliterationMining.cpp.
| void loadInput | ( | const char * | fileName, | |
| vector< string > & | input | |||
| ) |
Definition at line 418 of file TransliterationMining.cpp.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 539 of file TransliterationMining.cpp.
References getInitTransitionProb(), getWords(), initTransitionProb, LAMBDA, loadInput(), printPosterior(), runIteration(), setNTRProbabilities(), and src.

| void printGammas | ( | map< string, double > & | alignmentCounts | ) |
Definition at line 439 of file TransliterationMining.cpp.
| void printPosterior | ( | map< int, NodeStructure > & | graph | ) |
Definition at line 529 of file TransliterationMining.cpp.
Referenced by main().

| void runIteration | ( | map< int, NodeStructure > & | graph, | |
| map< string, double > & | gammas, | |||
| int | size | |||
| ) |
Definition at line 472 of file TransliterationMining.cpp.
References addLogProbs(), and LAMBDA.
Referenced by main().


| void setNTRProbabilities | ( | map< int, NodeStructure > & | graph, | |
| map< string, double > & | sourceTypes, | |||
| map< string, double > & | targetTypes, | |||
| double | sourceTokens, | |||
| double | targetTokens | |||
| ) |
Definition at line 507 of file TransliterationMining.cpp.
Referenced by main().

| double initTransitionProb |
| double LAMBDA |
1.5.9