Skip to content

Latest commit

 

History

History
executable file
·
61 lines (49 loc) · 1.8 KB

README.md

File metadata and controls

executable file
·
61 lines (49 loc) · 1.8 KB

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.