Skip to content

Used context-free grammar (CFG) and constituency parsing to build a grammar checker.

Notifications You must be signed in to change notification settings

zamaniali1995/grammar_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏃 Execution

Example usage: use the following command in the current directory.

python3 src/main.py data/train.tsv grammars/toy.cfg output/train.tsv

📊 Data

The train data can be found in data/train.tsv.

📝 Tasks

Part 1

  • Building a toy grammar

Part 2

  • Constituency parsing

Part 3

  • Evaluation and error analysis

✍️ Results

Classification Report

Precision = TP / (TP + FP) = 0.29

Recall = TP / (TP + FN) = 0.40

About

Used context-free grammar (CFG) and constituency parsing to build a grammar checker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages