GithubHelp home page GithubHelp logo

greysun / conv-knrm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yunhenk/conv-knrm

0.0 1.0 0.0 203 KB

Convolutional Neural Networks for So-Matching N-Grams in Ad-hoc Search

License: BSD 3-Clause "New" or "Revised" License

Python 99.43% Shell 0.57%

conv-knrm's Introduction

Conv-KNRM

This is an implementation of the paper: Convolutional Neural Networks for Soft-Matching N-Grams in Ad-hoc Search

Inspired by project K-NRM by the author.

Features

  • python3.6 compatible
  • latest tensorflow features.
    • ok with tensorflow 1.10 or later
  • a Conv-KNRM implementation

Requirements


  • Tensorflow
  • Numpy
  • traitlets

Run

To run the Conv-KNRM model, just append an argument '--convolution true', for example:

Training

python ./knrm/model/model_knrm.py config-file\
    --train \
    --train_file: path to training data\
    --validation_file: path to validation data\
    --train_size: size of training data (number of training samples)\
    --checkpoint_dir: directory to store/load model checkpoints\
    --load_model: True or False. Start with a new model or continue training \
    --convolution true

Testing:

python ./knrm/model/model_knrm.py config-file\
    --test \
    --test_file: path to testing data\
    --test_size: size of testing data (number of testing samples)\
    --checkpoint_dir: directory to load trained model\
    --output_score_file: file to output documents score\
    --convolution true

For more details,see the original README file.

conv-knrm's People

Contributors

yunhenk avatar

Watchers

 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.