Home | History | Annotate | Download | only in lib

Lines Matching refs:ENCODE

0 // encode.h
17 // Class to encode and decoder an fst.
30 enum EncodeType { ENCODE = 1, DECODE = 2 };
32 // Identifies stream data as an encode table (and its endianity)
39 // stores both the Tuple of encode labels and weights to a unique
69 // Hash function for EncodeTabe Tuples. Based on the encode flags
108 // Given an arc encode either input/ouptut labels or input/costs or both
109 Label Encode(const A &arc) {
123 // Given an encode arc Label decode back to input/output labels and costs
153 LOG(ERROR) << "EncodeTable::Read: Bad encode table header: " << source;
188 // A mapper to encode/decode weighted transducers. Encoding of an
193 // The Encode mapper stores the encoding in a local hash table (EncodeTable)
201 // Encode -> Determinize -> Decode
203 // we will use the encoding table generated during the encode step in the
232 if (type_ == ENCODE) { // labels and/or weights to single label
238 Label label = table_->Encode(arc);
264 (type_ == ENCODE ? kAddSuperFinalProperties :
271 return (type_ == ENCODE && (flags_ & kEncodeWeights)) ?
321 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) {