Git Product home page Git Product logo

slotfilling's Introduction

# Slotfilling
Using Tensorflow to train a slot-filling & intent joint model


Prerequisites:
gensim
tensorflow
numpy
pandas


0. Create a folder named "ckpt"

1. Download raw data from wiki: https://dumps.wikimedia.org/backup-index.html

2. word2vec/wiki_to_txt.py
    python3 wiki_to_txt.py zhwiki-201xxxxx-pages-articles.xml.bz2
    (generated file: wiki_texts_en.txt)
    
3. word2vec/word2vec_train.py
    (generated file: en.model.bin)
    
4. model/dict.py
    - It will generate 2 csv files with intents, labels and their indexes
    
5. model/model_train.py

6. model/inference.py
    - edit line 9-10 to the checkpoint file you just trained


Ref:
[Training Word2Vec Model on English Wikipedia by Gensim]
http://textminingonline.com/training-word2vec-model-on-english-wikipedia-by-gensim

[以 gensim 訓練中文詞向量]
http://zake7749.github.io/2016/08/28/word2vec-with-gensim/

slotfilling's People

Contributors

yltw27 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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