Skip to content

kinjalbasu/CASPR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

common-sense-QA (CASPR)

This is a Common Sense Question Answering System. It coverts any english passage to Answer Set Program (ASP) using JAVA and different NLP libraries. Using goal directed s(ASP) engine, it is able to reason and answer questions written in english.

Work is still in progress.

Software’s Used

Following are the software’s used to develop this project -

Following are the JARS used in the code -

Note: All the JARS are given in the repository except Stanford CoreNLP model, as it is a very large file.

How to Run the Code

  1. All the JARS need to be added.
  2. s(ASP) path must be added in the environment variable PATH.
  3. Put the the passage in the content variable inside Parent class of the parent.java file
  4. Run the main in parent.java file.
  5. When the knowledge representation is done, the system will ask to enter question.

Sample Intput Output

PASSAGE : There are two forks, two spoons and three bananas with four apples on the table.
QUESTION : How many forks are on the table?
ANSWER: 2
QUESTION : How many utensils are on the table?
ANSWER: 4
QUESTION : How many fruits are on the table?
ANSWER: 7

About

Common Sense Question Answering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages