Commit cf531398 authored by Tomaž Erjavec's avatar Tomaž Erjavec
Browse files

Give correct model for Serbian.

parent 081c74f8
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Using ReLDI tokeniser and CLASSLA-StanfordNLP tagger, lemmatiser and parser # Using ReLDI tokeniser and CLASSLA-StanfordNLP tagger, lemmatiser and parser
# Accepts UTF-8 plain text on STDIN, and outputs CONLL-U on STDOUT # Accepts UTF-8 plain text on STDIN, and outputs CONLL-U on STDOUT
my $DEBUG = 0; #Log to STDERR + do not delete tmp files my $DEBUG = 1; #Log to STDERR + do not delete tmp files
my $VERSION = "totalepa version 0.1"; my $VERSION = "totalepa version 0.1";
#use strict; #use strict;
...@@ -92,9 +92,9 @@ elsif ($lang eq 'sr') {$lemmatiser .= '--model_file SETimes.SR+bsrLex'} ...@@ -92,9 +92,9 @@ elsif ($lang eq 'sr') {$lemmatiser .= '--model_file SETimes.SR+bsrLex'}
else {die} else {die}
$parser = 'python -m stanfordnlp.models.parser --mode predict --save_dir models/depparse/ '; $parser = 'python -m stanfordnlp.models.parser --mode predict --save_dir models/depparse/ ';
if ($lang eq 'sl') {$parser .= '--save_name ssj500k_ud --shorthand sl_ssj'} if ($lang eq 'sl') {$parser .= '--save_name ssj500k_ud --shorthand sl_ssj'}
elsif ($lang eq 'hr') {$parser .= '--save_name hr500k_ud --shorthand hr_set'} elsif ($lang eq 'hr') {$parser .= '--save_name hr500k_ud --shorthand hr_set'}
elsif ($lang eq 'sr') {$parser .= '--save_name SETimes.SR --shorthand sr_set'} elsif ($lang eq 'sr') {$parser .= '--save_name SETimes.SR_ud --shorthand sr_set'}
else {die} else {die}
undef $/; undef $/;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment