Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NNIA PROJECT WS 2020/21

This is a project of the lecture Neural Networks: Implementation and Application from the University of Saarland. It consists of three parts:

    1. Preprocessing data in CoNLL format
    1. Train a model
    1. Write a report
  • In this project we will be training a model for POS using BERT for data encoding

Table of Contents

Conll data preprocessing

Description

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).

Use

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

Requirenment

  • Python 3.6 or higher

Combine multiple files

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

About

My new rep

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages