Skip to content

About

Simple rules based Question and answer type classification.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Question and Answer type classification

Simple rules based Question and answer type classification.

Usage

pip install -e git+ssh://git@github.com/OlaSearch/qaclassifier.git@1.0.2#egg=qaclassifier

Todo

  1. Document all Question Types
  2. Document all Answer Types
  3. Document how to add new Q/A types
  4. Publish to pypi

Requirements

  1. Pattern (development branch for python3 support)
from qaclassifier import QuestionClassifier
clf = QuestionClassifier()

# Check if a sentence is a question
clf.isQuestion('Hello how are you')

# Check question type
# YN => Yes/No questions
# WH => What/When/How
# TG => This'll work, won't it?
# CH => Would you prefer Coke or iced te1.a?
clf.questionType('Would you prefer Coke or iced tea?')

# Detect answer type to output
clf.classify('How much was the minimum wage in 1991 ?')
=> NUM:money

About

Simple rules based Question and answer type classification.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages