Difference between revisions of "Parsing/stanfordnlp"

From Nordic Language Processing Laboratory
Jump to: navigation, search
(Created page with "= Background = = Installation on Abel = <pre> module purge; module load python3/3.70 /projects/nlpl/operation/python/initialize --version 0.1.1 stanfordnlpl </pre> Next, ...")
(No difference)

Revision as of 21:33, 10 February 2019

Background

Installation on Abel

module purge; module load python3/3.70
/projects/nlpl/operation/python/initialize --version 0.1.1 stanfordnlpl

Next, it appears we need to manually patch the default location for model files in .../site-packages/stanfordnlp/utils/resources.py, to point to a shared directory for all users (viz. /projects/nlpl/software/stanfordnlp/0.1.1/resources/). To download all available pre-trained models (for the complete UD 2.x set of treebanks):

module purge; module load nlpl-stanfordnlp
yes | python3 /projects/nlpl/software/stanfordnlp/0.1.1/download.py