Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tomaž Erjavec
siIUS
Commits
cf531398
Commit
cf531398
authored
Feb 07, 2020
by
Tomaž Erjavec
Browse files
Give correct model for Serbian.
parent
081c74f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/totalepa.pl
View file @
cf531398
...
...
@@ -3,7 +3,7 @@
# Using ReLDI tokeniser and CLASSLA-StanfordNLP tagger, lemmatiser and parser
# 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
";
#use strict;
...
...
@@ -92,9 +92,9 @@ elsif ($lang eq 'sr') {$lemmatiser .= '--model_file SETimes.SR+bsrLex'}
else
{
die
}
$parser
=
'
python -m stanfordnlp.models.parser --mode predict --save_dir models/depparse/
';
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
'
sr
')
{
$parser
.=
'
--save_name SETimes.SR --shorthand sr_set
'}
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
'
sr
')
{
$parser
.=
'
--save_name SETimes.SR
_ud
--shorthand sr_set
'}
else
{
die
}
undef
$/
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment