Giter Site home page Giter Site logo

bigram_embedder's Introduction

Unsupervised Compositional Modeling Framework for Phrases

Results replication guide

Prepare data for training

  • cd data_gen_scripts
  • run step0 script to download and preprocess wiki data
  • run step1 script to extract potential bigrams we will work with
  • run step2 script to glue some words to form bigrams in corpus from step0
  • run step3 script to train fasttext skip-gram model on words & bigrams corpus from step2 (get fasttext from https://fasttext.cc/))
  • run step4 script to extract actual wordpair_vec -> bigram_vec corpus needed to train prediction model
  • run step5 script to create train, dev, and test splits

Train model

So by now you have the right data in data/step5 folder.
Next, set up your development environment by installing what is in requirements.txt, and spacy>=2.0. (as after step5 data generation step) and run:

python -m allennlp.run train experiments/bigram_embedder.json -s models/bigram_embedder_feedforw --include-package bigram_embedder

This project relies on python-3.6.

bigram_embedder's People

Contributors

maksymdel avatar

Stargazers

 avatar

Watchers

 avatar  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.