Lines Matching defs:ENCODE
0 // encode.h
19 // Class to encode and decoder an fst.
45 enum EncodeType { ENCODE = 1, DECODE = 2 };
47 // Identifies stream data as an encode table (and its endianity)
54 // stores both the Tuple of encode labels and weights to a unique
84 // Hash function for EncodeTabe Tuples. Based on the encode flags
130 // Given an arc encode either input/ouptut labels or input/costs or both
131 Label Encode(const A &arc) {
158 // Given an encode arc Label decode back to input/output labels and costs
249 LOG(ERROR) << "EncodeTable::Read: Bad encode table header: " << source;
287 // A mapper to encode/decode weighted transducers. Encoding of an
292 // The Encode mapper stores the encoding in a local hash table (EncodeTable)
300 // Encode -> Determinize -> Decode
302 // we will use the encoding table generated during the encode step in the
339 return (type_ == ENCODE && (flags_ & kEncodeWeights)) ?
356 (type_ == ENCODE ? kAddSuperFinalProperties :
381 EncodeType type = ENCODE) {
387 EncodeType type = ENCODE) {
421 if (type_ == ENCODE) { // labels and/or weights to single label
427 Label label = table_->Encode(arc);
466 void Encode(MutableFst<A> *fst, EncodeMapper<A>* mapper) {