facebookresearch / fastText

Library for fast text representation and classification.
https://fasttext.cc/
MIT License
25.83k stars 4.71k forks source link

Program running results are abnormal #1306

Open Chu-J opened 1 year ago

Chu-J commented 1 year ago

anaconda3/bin/python3.8

import fasttext.util ft = fasttext.load_model('cc.zh.300.bin') sentence_w1=ft.get_sentence_vector('色诫');print(sentence_w1)

[0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.

                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                                              1. 0.
                      1. 0.]