Classes | |
| struct | CNAlt |
Typedefs | |
| typedef std::vector< CNAlt > | CNCol |
| typedef std::vector< CNCol > | CN |
Functions | |
| char | get (const std::string &in, int c) |
| void | eatws (const std::string &in, int &c) |
| std::string | getString (const std::string &in, int &c) |
| std::string | getEscapedString (const std::string &in, int &c) |
| float | getFloat (const std::string &in, int &c) |
| int | getInt (const std::string &in, int &c) |
| CNAlt | getCNAlt (const std::string &in, int &c) |
| CNCol | getCNCol (const std::string &in, int &c) |
| CN | parsePCN (const std::string &in) |
Variables | |
| const std::string | chars = "'\\" |
| const char & | quote = chars[0] |
| const char & | slash = chars[1] |
Definition at line 58 of file PCNTools.h.
| typedef std::vector<CNAlt> PCN::CNCol |
Definition at line 57 of file PCNTools.h.
| void PCN::eatws | ( | const std::string & | in, | |
| int & | c | |||
| ) | [inline] |
Definition at line 25 of file PCNTools.cpp.
Referenced by getCNAlt(), getCNCol(), getEscapedString(), getFloat(), getInt(), getString(), and parsePCN().

| char PCN::get | ( | const std::string & | in, | |
| int | c | |||
| ) | [inline] |
Definition at line 18 of file PCNTools.cpp.
| CNAlt PCN::getCNAlt | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 88 of file PCNTools.cpp.
References eatws(), getEscapedString(), getString(), prob(), Moses::Tokenize(), and UTIL_THROW_IF2.
Referenced by getCNCol().


| CNCol PCN::getCNCol | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 148 of file PCNTools.cpp.
References eatws(), and getCNAlt().
Referenced by parsePCN().


| std::string PCN::getEscapedString | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 44 of file PCNTools.cpp.
References eatws(), quote, and slash.
Referenced by getCNAlt().


| float PCN::getFloat | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 64 of file PCNTools.cpp.
References eatws().

| int PCN::getInt | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 76 of file PCNTools.cpp.
References eatws().

| std::string PCN::getString | ( | const std::string & | in, | |
| int & | c | |||
| ) |
Definition at line 32 of file PCNTools.cpp.
References eatws().
Referenced by getCNAlt().


| CN PCN::parsePCN | ( | const std::string & | in | ) |
Given a string ((('foo',0.1,1),('bar',0.9,2)),...) representation of a word lattice in PCN format, return a CN object representing the lattice
Definition at line 177 of file PCNTools.cpp.
References eatws(), and getCNCol().
Referenced by Moses::WordLattice::Read().


| const std::string PCN::chars = "'\\" |
Definition at line 13 of file PCNTools.cpp.
| const char& PCN::quote = chars[0] |
| const char& PCN::slash = chars[1] |
1.5.9