Git Product home page Git Product logo

Comments (3)

hailiang-wang avatar hailiang-wang commented on August 20, 2024

现在近义词是有距离的,这也是计算句子间相似度的必要,而这个距离是word2vec计算出来的,我觉得增加api去添加近义词,不是很符合接口的一致性。实际中,是有这样的需求的,直接干扰近义词词表,但是这里要定义一个距离和词向量。
添加一对近义词 (A, B),有下面的情况:

  1. A,B 都不在当前词表中

  2. A在词表中,B不在

  3. A和B都在词表中

这几个情况,还需要认真思考一下怎么处理。目前我没有好的办法,所以还不能提供接口。

from synonyms.

gaochao19860203 avatar gaochao19860203 commented on August 20, 2024

按照你说的思路,就是 先判断A,B两个词在不在词表中。如果A不在,将A与其他词的距离和词向量录入词表,B同理。是这样吗?
A与其他词的距离 可以用word2vec来计算,但是是不是需要包含A这个词的语料 才能计算?

from synonyms.

luoruisichuan avatar luoruisichuan commented on August 20, 2024

软件功能很不错!
建议开放一个接口函数,自主添加词汇进去,比如,”病人“的向量是A,那么,自己可以添加”患者“,并将其向量设置为A,或者,在A的基础上,对向量中的元素人工做些修改,作为对应”患者“的向量。这样有利于软件的推广使用。
谢谢!

from synonyms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.