#include <PhraseDictionaryTree.h>

Classes | |
| class | PrefixPtr |
Public Member Functions | |
| PhraseDictionaryTree () | |
| void | NeedAlignmentInfo (bool a) |
| void | PrintWordAlignment (bool a) |
| bool | PrintWordAlignment () |
| virtual | ~PhraseDictionaryTree () |
| size_t | GetSize () const |
| int | Create (std::istream &in, const std::string &outFileNamePrefix) |
| int | Read (const std::string &fileNamePrefix) |
| void | FreeMemory () const |
| void | PrintTargetCandidates (const std::vector< std::string > &src, std::ostream &out) const |
| void | GetTargetCandidates (const std::vector< std::string > &src, std::vector< StringTgtCand > &rv) const |
| void | GetTargetCandidates (const std::vector< std::string > &src, std::vector< StringTgtCand > &rv, std::vector< std::string > &wa) const |
| PrefixPtr | GetRoot () const |
| PrefixPtr | Extend (PrefixPtr p, const std::string &s) const |
| void | GetTargetCandidates (PrefixPtr p, std::vector< StringTgtCand > &rv) const |
| void | GetTargetCandidates (PrefixPtr p, std::vector< StringTgtCand > &rv, std::vector< std::string > &wa) const |
| void | PrintTargetCandidates (PrefixPtr p, std::ostream &out) const |
Definition at line 46 of file PhraseDictionaryTree.h.
| Moses::PhraseDictionaryTree::PhraseDictionaryTree | ( | ) |
| Moses::PhraseDictionaryTree::~PhraseDictionaryTree | ( | ) | [virtual] |
Definition at line 389 of file PhraseDictionaryTree.cpp.
| int Moses::PhraseDictionaryTree::Create | ( | std::istream & | in, | |
| const std::string & | outFileNamePrefix | |||
| ) |
Definition at line 464 of file PhraseDictionaryTree.cpp.
References LVoc< A, B >::add(), count, Moses::PrefixTreeF< T, D >::create(), Moses::fClose(), Moses::fOpen(), Moses::fTell(), Moses::fWriteVector(), inv, InvalidLabelId, NOT_FOUND, NULL, PrintWordAlignment(), Moses::PDTimp::sv, Moses::Tokenize(), Moses::TokenizeMultiCharSeparator(), TRACE_ERR, Moses::PDTimp::tv, UTIL_THROW2, UTIL_THROW_IF2, LVoc< A, B >::Write(), Moses::TgtCands::writeBin(), and Moses::TgtCands::writeBinWithAlignment().
Referenced by main().


| PhraseDictionaryTree::PrefixPtr Moses::PhraseDictionaryTree::Extend | ( | PrefixPtr | p, | |
| const std::string & | s | |||
| ) | const |
Definition at line 675 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::Extend().
Referenced by Moses::PDTAimp::CacheSource(), and main().


| void Moses::PhraseDictionaryTree::FreeMemory | ( | ) | const |
Definition at line 407 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::FreeMemory().
Referenced by Moses::PDTAimp::CacheSource(), Moses::PDTAimp::CleanUp(), main(), and Moses::PDTimp::~PDTimp().


| PhraseDictionaryTree::PrefixPtr Moses::PhraseDictionaryTree::GetRoot | ( | ) | const |
Definition at line 669 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::GetRoot().
Referenced by Moses::PDTAimp::CacheSource(), and main().


| size_t Moses::PhraseDictionaryTree::GetSize | ( | ) | const [inline] |
Definition at line 63 of file PhraseDictionaryTree.h.
| void Moses::PhraseDictionaryTree::GetTargetCandidates | ( | PrefixPtr | p, | |
| std::vector< StringTgtCand > & | rv, | |||
| std::vector< std::string > & | wa | |||
| ) | const |
Definition at line 699 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::ConvertTgtCand(), and Moses::PDTimp::GetTargetCandidates().

| void Moses::PhraseDictionaryTree::GetTargetCandidates | ( | PrefixPtr | p, | |
| std::vector< StringTgtCand > & | rv | |||
| ) | const |
Definition at line 690 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::ConvertTgtCand(), Moses::PDTimp::GetTargetCandidates(), and NULL.

| void Moses::PhraseDictionaryTree::GetTargetCandidates | ( | const std::vector< std::string > & | src, | |
| std::vector< StringTgtCand > & | rv, | |||
| std::vector< std::string > & | wa | |||
| ) | const |
Definition at line 429 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::ConvertTgtCand(), Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, and Moses::PDTimp::sv.

| void Moses::PhraseDictionaryTree::GetTargetCandidates | ( | const std::vector< std::string > & | src, | |
| std::vector< StringTgtCand > & | rv | |||
| ) | const |
Definition at line 414 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::ConvertTgtCand(), Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, NULL, and Moses::PDTimp::sv.
Referenced by Moses::PDTAimp::CacheSource(), Moses::PDTAimp::GetTargetPhraseCollection(), and main().


| void Moses::PhraseDictionaryTree::NeedAlignmentInfo | ( | bool | a | ) |
Definition at line 394 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::NeedAlignmentInfo().
Referenced by Moses::PDTAimp::Create(), and main().


| void Moses::PhraseDictionaryTree::PrintTargetCandidates | ( | PrefixPtr | p, | |
| std::ostream & | out | |||
| ) | const |
Definition at line 680 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::GetTargetCandidates(), and Moses::PDTimp::PrintTgtCand().

| void Moses::PhraseDictionaryTree::PrintTargetCandidates | ( | const std::vector< std::string > & | src, | |
| std::ostream & | out | |||
| ) | const |
Definition at line 446 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::GetTargetCandidates(), LVoc< A, B >::index(), InvalidLabelId, Moses::PDTimp::PrintTgtCand(), Moses::PDTimp::sv, and TRACE_ERR.
Referenced by main().


| bool Moses::PhraseDictionaryTree::PrintWordAlignment | ( | ) |
Definition at line 402 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::PrintWordAlignment().
Referenced by Create().


| void Moses::PhraseDictionaryTree::PrintWordAlignment | ( | bool | a | ) |
Definition at line 398 of file PhraseDictionaryTree.cpp.
References Moses::PDTimp::PrintWordAlignment().
Referenced by main().


| int Moses::PhraseDictionaryTree::Read | ( | const std::string & | fileNamePrefix | ) |
Definition at line 662 of file PhraseDictionaryTree.cpp.
References OFF_T, Moses::PDTimp::Read(), and VERBOSE.
Referenced by Moses::PDTAimp::Create(), and main().


1.5.9