Difference between revisions of "Parsing/home"

From Nordic Language Processing Laboratory
Jump to: navigation, search
(Preprocessing Tools)
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
= Background =
 
= Background =
  
An experimentation environment for data-driven dependency parsing
+
An experimentation environment for data-driven dependency parsing is maintained for NLPL under the coordination of Uppsala University (UU).
is maintained for NLPL under the coordination of Uppsala University (UU).
 
 
Initially, the software and data are commissioned on the Norwegian Abel supercluster.
 
Initially, the software and data are commissioned on the Norwegian Abel supercluster.
  
= Using the Uppsala Parser =
+
= Preprocessing Tools =
  
* Log into Abel
+
* [http://wiki.nlpl.eu/index.php/Parsing/repp REPP Tokenizer (English and Norwegian)]
* Activate the NLPL module repository:
 
module use -a /projects/nlpl/software/modulefiles/
 
* Load the most recent version of the uuparser module:
 
module load uuparser
 
  
'''Train a parsing model'''
+
Additionally, a variety of tools for sentence splitting, tokenization, lemmatization, et al.
 +
are available through the NLPL installations of the
 +
[http://nltk.org Natural Language Processing Toolkit (NLTK)] and the
 +
[https://spacy.io spaCy: Natural Language Processing in Python] tools.
  
To train a set of parsing models on treebanks from Universal Dependencies (v2.1):
+
= Parsing Systems =
  
uuparser --include [languages to include denoted by their ISO id] --outdir my-output-directory
+
* [http://wiki.nlpl.eu/index.php/Parsing/uuparser The Uppsala Parser]
 +
* [http://wiki.nlpl.eu/index.php/Parsing/udpipe UDPipe]
 +
* [http://wiki.nlpl.eu/index.php/Parsing/dozat Stanford Graph-Based Parser by Tim Dozat]
  
for example
+
= Training and Evaluation Data =
  
uuparser --include "sv en ru" --outdir ~/experiments
+
* [http://wiki.nlpl.eu/index.php/Parsing/ud Universal Dependencies v2.0–2.3]
 
+
* [http://wiki.nlpl.eu/index.php/Parsing/sdp Semantic Dependency Parsing]
will train separate models for UD Swedish, English and Russian and store the results in the ''experiments'' folder in your home directory.
 
Model selection is included in the training process by default; that is, at each epoch the current model is evaluated on the UD dev data, and at the end of training the best performing model for each language is selected.  
 
 
 
'''Predicting with a pre-trained parsing model'''
 
 
 
To predict on UD test data with the models trained above:
 
 
 
uuparser --include "sv en ru" --outdir ~/experiments --predict
 
 
 
'''Contact:'''
 
Aaron Smith, Uppsala University, firstname.lastname@lingfil.uu.se
 

Revision as of 17:42, 30 January 2019

Background

An experimentation environment for data-driven dependency parsing is maintained for NLPL under the coordination of Uppsala University (UU). Initially, the software and data are commissioned on the Norwegian Abel supercluster.

Preprocessing Tools

Additionally, a variety of tools for sentence splitting, tokenization, lemmatization, et al. are available through the NLPL installations of the Natural Language Processing Toolkit (NLTK) and the spaCy: Natural Language Processing in Python tools.

Parsing Systems

Training and Evaluation Data