Skip to content
/ CFG Public

Context Free Grammar (CFG) Parser & Sentence Generator

Notifications You must be signed in to change notification settings

ErolOZKAN-/CFG

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages