This is a project of the lecture Neural Networks: Implementation and Application from the University of Saarland. It consists of three parts:
-
- Preprocessing data in CoNLL format
-
- Train a model
-
- Write a report
- In this project we will be training a model for POS using BERT for data encoding
This project aims to stream line the preprocessing of .conll files, in order to exact the useful columns and build a more user friendly .tsv file out of them and also provide a statistical analysis of the data processed, to provide the user with even more insight (said stats are stored in a .info file).
The program takes two parameters: --input and --outdir, for the input conll file and the output directory respectively. The following example demonstrates how to use them (it is the same example used in run.sh):
$ python3 data_preprocess.py --input sample.conll --outdir output- Python 3.6 or higher
To concatenate multiple CoNLL files use the following command in the terminal. It will concatenate 4 CoNLL files into one file named sample.conll.
For Windows:
$ type file1.conll file2.conll file3.conll file4.conll > sample.conll
For Linux or MAC:
$ cat file1.conll file2.conll file3.conll file4.conll > sample.conll