Comments (11)
wordnet相当于一个word2vec,#brownbear和#ursusarctos在wordnet中的Embedding距离非常近。你可以把这个合并想象成一个层次聚类的过程,通过阈值,确定不同word的聚类类别。用这个聚类的类别表示这个聚类中心中的所有word。
from dr.sure.
感谢您的及时回复。
我理解您的意思,但是关于“#brownbear和#ursusarctos在wordnet中的Embedding距离非常近”, 我并没有在wordnet中找到有效的对他俩进行Embedding进而计算距离的方法,这是现在我遇到的问题。
首先,这两个string在WordNet中并没有,因为他们都是两个单词合并的
然后,我把它们分割成brown + bear 和ursus + arctos,我也只是可以知道bear 和 ursus距离很近,但是并找不到arctos的信息
from dr.sure.
这个词之间的距离一般使用cos距离进行度量,通过阈值判断判断他们是否相似啊。去重的过程,你可以参考一下层次聚类算法,原理是一样的。
from dr.sure.
我的问题在于向量的获取,而不是之后聚类、阈值判断之类的处理。不过还是很感谢您的耐心回复,谢谢。
from dr.sure.
https://github.com/Embedding/Chinese-Word-Vectors
https://wordnet.princeton.edu/
中英文的wordnet,据我所知,这个向量的获取就是一个查表的过程吧。
from dr.sure.
谢谢。
是的,就是一个查表的过程,但我愣是没通过查表实现他给的这个合并例子,我会再看一下。大牛的文章总是在一些细节上让我难以复现‘’‘’‘’
from dr.sure.
wn.synsets('brown_bear')和wn.synsets('ursus_arctos')的结果一样
from dr.sure.
感谢你的回复。
这样的话,我觉得可能是Facebook这篇文章中提到的merge #Brownbear和#ursusarctos,其实就是merge #Brown_bear 和#ursus_arctos。这样的话就有个新的问题,就是如果hashtag不是以“_”分割单词的形式存在,我们如果有效把brownbear这类hashtag分成brown_bear?
from dr.sure.
文章中说了,x的取值包括hashtag,也包括在hashtag每个位置都插入空格组成的二元词组,wordnet里对二元词组求synset时需要把空格转成"_"才有结果,所以#brownbear和#ursusarctos有相同的synset
from dr.sure.
from dr.sure.
不客气,刚好今天参考这个去重方式
from dr.sure.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dr.sure.