Code Monkey home page Code Monkey logo

nlp-word-embeddings's Introduction

Word-Embeddings

How do we represent word meaning so that we can analyze it, compare different words’ meanings, and use these representations in NLP tasks? One way to learn word meaning is to find regularities in how a word is used. Two words that appear in very similar contexts probably mean similar things. One way you could capture these contexts is to simply count which words appeared nearby. If we had a vocabulary of V words, we would end up with each word being represented as a vector of length jV j1 where for a word wi, each dimension j in wi’s vector, wi;j refers to how many times wj appeared in a context where wi was used. Word embeddings solve both of these problems by trying to encode the kinds of contexts a word appears in as a low-dimensional vector.

In word2vec.py I train a model to learn word representations using gradient decent and negative sampling and then try use those representations in intrinsic tasks that measure word similarity and an extrinsic task for sentiment analysis.

The files:

  1. unlabeled-text.tsv – Trained word2vec model on this data
  2. extrinsic-train.tsv – This is the training data for the extrinsic evaluation (sentiment analysis).
  3. extrinsic-dev.tsv – This is the development data for the extrinsic evaluation, to get a sense of performance
  4. intrinsic-test.tsv – This is the data for the intrinsic evaluation on word similarity
  5. extrinsic-test.tsv – This is the test data for the extrinsic evaluation

nlp-word-embeddings's People

Contributors

jordanearnest1 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

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.