Giter VIP home page Giter VIP logo

trec-6-questionclassification's Introduction

TREC Question Classification - PyTorch

Description

Classification of questions into 5 classes. The five classes are as follows :

  • HUM for questions about humans
  • ENTY for questions about entities
  • DESC for questions asking you for a description
  • NUM for questions where the answer is numerical
  • LOC for questions where the answer is a location
  • ABBR for questions asking about abbreviations

Concepts

  1. RNN
  2. LSTM
  3. Word Embeddings
  4. Multilayer and Bi-Directional RNNs

RESULTS

Trained for 5 epochs on Kaggle.

Test Accuracy of ~91%

Model is confused between Entity questions and questions about humans.

Dataset

TREC-6

This project is in PyTorch

Requirements:

  • PyTorch
  • Torchtext (Used torchtext.legacy)
  • Spacy

Usage

  • You can pretrain the model
  • You can use the predict_classes function to try your own questions.

Acknowledgements

Thanks to the author of this for this amazing repo and its explanation and help.

trec-6-questionclassification's People

Contributors

arnavagrawal22 avatar

Watchers

 avatar

Forkers

balendra-singh

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.