gnes.encoder.text.char module

class gnes.encoder.text.char.CharEmbeddingEncoder(dim=128, *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseTextEncoder

A random character embedding model. Only useful for testing

encode(text, *args, **kwargs)[source]
Return type:List[ndarray]
is_trained = True
train(*args, **kwargs)

Train the model, need to be overrided