Bert-as-service: Nearest neighbor queries like fasttext?

Created on 16 Jan 2019  ·  3Comments  ·  Source: hanxiao/bert-as-service

hello i'm new to nlp, i wonder can i do "Nearest neighbor queries" like fasttext with google pre trained model by using this repo?

@vikaschib7 asks the same question and someone point to here

https://github.com/google-research/bert/issues/362

比如说我不提供其它语料的情况下,只用 google bert 提供的那个中文模型可以用来找近似的词吗?

Most helpful comment

All 3 comments

https://github.com/hanxiao/bert-as-service#building-a-qa-semantic-search-engine-in-3-minutes

比如说 不用额外语料只用 google 提供的那个 pre tained 中文模型的情况下输入“销售”-> 然后返回 [采购, 购买, 买进] 等等这种词可以吗?

我现在的理解是用自己的语料做数据再用这个服务得到 encoding 去训练另一个模型?

那这个 google pre-trained 模型主要是用来干什么的?为什么不能直接用这个已有模型像 word2vec,fasttext 提供的模型那样有个查已有模型近似的功能?

Was this page helpful?
0 / 5 - 0 ratings