ByteSegmentCodec

lamp.data.bytesegmentencoding.ByteSegmentCodec
case class ByteSegmentCodec(trained: Vector[(Vector[Byte], Char)], unknownToken: Char, unknownByte: Byte) extends Codec

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Codec
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def decode(encoded: Array[Char]): Array[Byte]
def encode(in: Array[Byte]): Array[Char]
def saveToFile(file: File): IO[Unit]
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product