parent
2755f4c7ed
commit
0a27168ddf
@ -0,0 +1,3 @@
|
||||
[submodule "bilateral-srl"]
|
||||
path = bilateral-srl
|
||||
url = https://github.com/clarinsi/bilateral-srl.git
|
@ -0,0 +1 @@
|
||||
Subproject commit 86642e18665ce5304f57b3e38ef18057807eaae8
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1 +1,5 @@
|
||||
FROM java
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y \
|
||||
vim
|
||||
|
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
|
||||
## There are three sets of options that need, may need to, and could be changed.
|
||||
## (1) deals with input and output. You have to set these (in particular, you need to provide a training corpus)
|
||||
## (2) deals with the jvm parameters and may need to be changed
|
||||
## (3) deals with the behaviour of the system
|
||||
|
||||
## For further information on switches, see the source code, or run
|
||||
## java -cp srl.jar se.lth.cs.srl.Parse --help
|
||||
|
||||
##################################################
|
||||
## (1) The following needs to be set appropriately
|
||||
##################################################
|
||||
INPUT=~/corpora/conll09/spa/CoNLL2009-ST-evaluation-Spanish-SRLonly.txt
|
||||
Lang="spa"
|
||||
MODEL="./srl-spa.model"
|
||||
OUTPUT="${Lang}-eval.out"
|
||||
|
||||
##################################################
|
||||
## (2) These ones may need to be changed
|
||||
##################################################
|
||||
JAVA="java" #Edit this i you want to use a specific java binary.
|
||||
MEM="2g" #Memory for the JVM, might need to be increased for large corpora.
|
||||
CP="srl.jar:lib/liblinear-1.51-with-deps.jar:lib/anna.jar"
|
||||
JVM_ARGS="-cp $CP -Xmx$MEM"
|
||||
|
||||
##################################################
|
||||
## (3) The following changes the behaviour of the system
|
||||
##################################################
|
||||
#RERANKER="-reranker" #Uncomment this if you want to use a reranker too. The model is assumed to contain a reranker. While training, this has to be set appropriately.
|
||||
NOPI="-nopi" #Uncomment this if you want to skip the predicate identification step. This setting is equivalent to the CoNLL 2009 ST.
|
||||
|
||||
|
||||
CMD="$JAVA $JVM_ARGS se.lth.cs.srl.Parse $Lang $INPUT $MODEL $RERANKER $NOPI $OUTPUT"
|
||||
echo "Executing: $CMD"
|
||||
|
||||
$CMD
|
Loading…
Reference in new issue