|
|
| PinyinLatticeNode (std::string_view word, WordIndex idx, SegmentGraphPath path, const State &state, float cost, std::unique_ptr< PinyinLatticeNodePrivate > data) |
| |
|
const std::string & | encodedPinyin () const |
| |
|
bool | isCorrection () const |
| |
|
bool | anyCorrectionOnPath () const |
| |
|
| LatticeNode (std::string_view word, WordIndex idx, SegmentGraphPath path, const State &state, float cost=0) |
| |
|
float | cost () const |
| |
|
float | score () const |
| |
|
void | setScore (float score) |
| |
|
const SegmentGraphNode * | from () const |
| |
|
const SegmentGraphNode * | to () const |
| |
|
const SegmentGraphPath & | path () const |
| |
|
LatticeNode * | prev () const |
| |
|
void | setPrev (LatticeNode *prev) |
| |
|
template<typename T > |
| | requires (std::is_base_of_v< LatticeNode, T >) T &as() |
| |
|
template<typename T > |
| | requires (std::is_base_of_v< LatticeNode, T >) const T &as() const |
| |
|
std::string | fullWord () const |
| | Return the full word till the begining of the sentence.
|
| |
|
SentenceResult | toSentenceResult (float adjust=0.0F) const |
| |
|
State & | state () |
| |
|
| WordNode (std::string_view word, WordIndex idx) |
| |
|
| WordNode (WordNode &&other) noexcept(std::is_nothrow_move_constructible_v< std::string >) |
| |
|
WordNode & | operator= (WordNode &&other) noexcept(std::is_nothrow_move_assignable_v< std::string >) |
| |
|
const std::string & | word () const |
| |
|
WordIndex | idx () const |
| |
|
void | setIdx (WordIndex idx) |
| |
|
|
SegmentGraphPath | path_ |
| |
|
float | cost_ |
| |
|
float | score_ = 0.0F |
| |
|
State | state_ |
| |
|
LatticeNode * | prev_ = nullptr |
| |
|
std::string | word_ |
| |
|
WordIndex | idx_ |
| |
Definition at line 23 of file pinyindecoder.h.
The documentation for this class was generated from the following files: