gnes.encoder.text.flair module

class gnes.encoder.text.flair.FlairEncoder(word_embedding='glove', flair_embeddings=('news-forward', 'news-backward'), pooling_strategy='mean', *args, **kwargs)[source]

Bases: gnes.encoder.base.BaseTextEncoder

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

Declare class attributes/members that can not be serialized in standard way

train(*args, **kwargs)

Train the model, need to be overrided