class

TextCompressor::SymbolEncoder

Inherits TextCompressor::Encoder < Reference < Object

Assigns a unique base64 symbol to each word selected for encoding. See SymbolGenerator for symbol generation details.

Instance methods

counter
Source
decode(tokens : Array(String), encoding_keys : Array(Array(String))) : Array(String)
Source
encode(tokens : Array(String), threshold : Int32 = 20) : Array(String)
Source
encoding_keys
Source
encodings

map of words to their encodings

Source
remainder
Source
reverse_encodings

map of encodings to their words

Source