Home | History | Annotate | Download | only in lib

Lines Matching defs: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
111 // Given an arc encode either input/ouptut labels or input/costs or both
112 Label Encode(const A &arc) {
126 // Given an encode arc Label decode back to input/output labels and costs
154 LOG(ERROR) << "EncodeTable::Read: Bad encode table header: " << source;
187 // A mapper to encode/decode weighted transducers. Encoding of an
192 // The Encode mapper stores the encoding in a local hash table (EncodeTable)
200 // Encode -> Determinize -> Decode
202 // we will use the encoding table generated during the encode step in the
231 if (type_ == ENCODE) { // labels and/or weights to single label
237 Label label = table_->Encode(arc);
263 (type_ == ENCODE ? kAddSuperFinalProperties :
270 return (type_ == ENCODE && (flags_ & kEncodeWeights)) ?
320 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) {