Comments (2)
Well, in this particular example, you seem to have found a flaw in the documentation. I might have waffled at the last minute about whether 'this' was a stopword. I should fix that. Fortunately, the standardization is about to get a lot simpler, as I found that stemming isn't necessary on ConceptNet 5.5.
When it comes to turning a sentence into a list of concepts, that's a slightly different thing. You can avoid a lot of complexity by sticking with single-word terms. (Multi-word phrases are valuable, but a process for looking them up can come later.) And you'd probably rather not put too much weight on the frequent words like 'is' or 'an', regardless of whether they'd be dropped from a multi-word concept.
I've applied this version of Conceptnet Numberbatch directly to the Story Cloze test, and it worked well compared to many other methods (despite having no representation of events or even word order). What I did -- and this is not at all standardized, and quite prone to tweaking -- is to weight the words by their log inverse frequency. You've already got wordfreq
as a dependency of ConceptNet, so you can:
- Tokenize the text with
wordfreq.tokenize
- Give each token a weight of
-log(wordfreq.word_frequency(word, 'en', 'large', default=1e-9))
from conceptnet-numberbatch.
I see, will stick to single words for now.
Thanks for the insight on how to weight the words with wordfreq
!
from conceptnet-numberbatch.
Related Issues (20)
- Wrong link in readme HOT 1
- Using the pretrained term vectors HOT 1
- Common word subset HOT 2
- Lemmatization for SNLI HOT 4
- Predict output word
- Sorting by occurrence count HOT 2
- Accuracy issues HOT 4
- Will there be a new version of Numberbatch? HOT 4
- @paper is not recognized while importing citation HOT 3
- conceptnet entities not present in the embeddings HOT 1
- KeyError: "word 'coffee_pot' not in vocabulary" HOT 5
- download of english version not available HOT 1
- training script for embedding
- Embedding for other dimensions: 50, 100 and 200 HOT 2
- Error when ninja : Shape mismatch in assignement HOT 1
- Do all versions occupy the same vector space?
- Spelling Error in README HOT 1
- meaning of number of # characters in subwords? HOT 4
- Can i use embeddings in closed source game (trough rest server)?
- ignore
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 conceptnet-numberbatch.