Class Word

Class Documentation

class Word

Public Functions

const WordIndex &toWordIndex() const
std::string toString() const
Word()
bool operator==(const Word &other) const
bool operator!=(const Word &other) const
bool operator<(const Word &other) const
std::size_t hash() const

Public Static Functions

static Word fromWordIndex(std::size_t wordId)

Public Static Attributes

Word NONE = Word()
Word ZERO = Word(0)
Word DEFAULT_EOS_ID = Word(0)
Word DEFAULT_UNK_ID = Word(1)