Skip to content

Basic probabilistic parser for French that is based on the CYK algorithm and the PCFG model and that is robust to unknown words with an OOV Module

Notifications You must be signed in to change notification settings

houssamzenati/Probabilistic-Context-Free-Grammar-Parser

Repository files navigation

NLP HW2

Code for MVA Probabilistic Context Free Grammar implementation

Prerequisites.

To run the code, follow those steps:

Install requirements (in the repository):

pip3 install -r requirements.txt

Parsing

Perform inference on evaluation set (Warning: will replace current 'evaluation_data.parser_output' and 'evaluation_data.gold' files)

sh run.sh --inference

Perform evaluation once inference is done:

sh run.sh --evaluation

Does parsing from .txt file (change sample to any other file)

sh run.sh --parse sample.txt

About

Basic probabilistic parser for French that is based on the CYK algorithm and the PCFG model and that is robust to unknown words with an OOV Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published