ArpaLine Struct Reference
Collaboration diagram for ArpaLine:

Public Member Functions

bool operator< (const ArpaLine &other) const
 

Public Attributes

std::vector< int32words
 
float logprob
 
float backoff_logprob
 

Detailed Description

Definition at line 36 of file const-arpa-lm.cc.

Member Function Documentation

◆ operator<()

bool operator< ( const ArpaLine other) const
inline

Definition at line 41 of file const-arpa-lm.cc.

References ArpaLine::words.

41  {
42  if (words.size() < other.words.size()) {
43  return true;
44  } else if (words.size() > other.words.size()) {
45  return false;
46  } else {
47  return words < other.words;
48  }
49  }
std::vector< int32 > words

Member Data Documentation

◆ backoff_logprob

◆ logprob

◆ words

std::vector<int32> words

The documentation for this struct was generated from the following file: