This application accepts a sentence in English, and constructs the Syntax Trees based on X-Bar Theory.
The project was originally written in C++ in Visual Studio as a stand-alone application. It was rewritten in Python as a web application.
The tags used for the purposes of this project are:
- D - Determiner
- N - Noun
- Adj - Adjective
- Adv - Adverb
- V - Verb
- P - Preposition
The NLTK library is used to tag the words of the sentences, and the tags are converted to the above forms.
Unit tests were written for testing proper tree construction using Catch and compiled using CMake. Tests will be rewritten in pytest.
Author(s):
- Satvik Sethia