Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 713 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 713 Bytes

CMP 670 Statistical Natural Language Processing - Homework -2-

data/cfg.gr: CFG rule set.

cfg_changed.gr: CFG rules after CNF Conversion.

data/sentence.txt: Input sentence to parse.


src/randsentence.py: Language generator, generates new sentences randomly using given grammar rules.

src/parse.py: CYK parser as a recognizer which tells whether a given sentence is grammatically correct or not, according to given CFG rule set.


output/parse_results.txt: Output file, parsed sentences.

output/random-sentence.txt: Output file, randomly genereated sentences.