Closed sswhales closed 1 year ago
默认模型改了 https://github.com/shibing624/similarities/commit/e666de1e638ff3a11bcd6da4aa5e1cdfd900c60f#diff-c0bb12f632dde502e1847f59fb6b42e7061be3f132210b75bd18fc89ab9acc12R80 ,这个你可以加参数改为之前的。
from similarities import Similarity
m = Similarity(model_name_or_path="shibing624/text2vec-base-chinese")
修改原因是为了兼容英文相似度计算结果;如果你只需要处理中文,则用shibing624/text2vec-base-chinese
是更合适的。
非常感谢回复,原因也正如您所说,问题已经解决。
Describe the Question
Please provide a clear and concise description of what the question is.
Describe your attempts
You may also provide a Minimal, Complete, and Verifiable example you tried as a workaround, or StackOverflow solution that you have walked through. (e.g. cosmic radiation).