Views
No views yet
>>> from text2vec import SentenceModel, EncoderType >>> model = SentenceModel('EricLee/text2vec-roberta-512', encoder_type=EncoderType.FIRST_LAST_AVG, max_seq_length=512) >>> model.encode("今天天气不错啊") Embedding shape: (768,)