ravikanagpal / POS-Tagging-CFG

Create a toy grammar to tag sentences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A list of all the resources used

Execution Instructions

Setup

# Setup python virtual environment
$ virtualenv venv --python=python3
$ source venv/bin/activate

# change directory to the repo where we have requirements file
$ cd POS-Tagging-CFG/

# Install python dependencies
$ pip3 install  -r requirements.txt 

Run

Use the following command in the current directory.

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

Data

The assignment's train data can be found in data/train.tsv.

Output

The output is stored in tsv file and can be found in output/train.tsv

About

Create a toy grammar to tag sentences


Languages

Language:Python 100.0%