Skip to content

Using context-free grammar formalism to parse English sentences to determine their structure to help computer to better understand the meaning of the sentence.

License

Notifications You must be signed in to change notification settings

krvaibhaw/sentanceparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sentance Parser

Using context-free grammar formalism to parse English sentences to determine their structure to help computer to better understand the meaning of the sentence.

Executing the Program

  1. Make sure Python 3.6+ is installed.
  2. Clone this repodotory :
    $ git clone https://github.com/krvaibhaw/sentanceparser.git
  1. Change Directory :
    $ cd sentanceparser
  1. Install requirements
    $ pip install requirements.txt
  1. Run the program:
    $ python parser.py

And enter the sentence. Or,

    $ python parser.py <sentance folder path>/<file.txt>

Example :

    $ python parser.py sentences/1.txt
  1. Output after parsing

    Parsed sentance along with the derivation tree
    Sample output can be accessed in samples section.


Feel free to follow along the code provided along with mentioned comments for
better understanding of the project, if any issues feel free to reach me out.

Contributing

Contributions are welcome!
Please feel free to submit a Pull Request.

About

Using context-free grammar formalism to parse English sentences to determine their structure to help computer to better understand the meaning of the sentence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages