From 04472a677252179f4dc7bd37ac995d6bc90f9380 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Mon, 19 Apr 2021 16:59:54 +0200
Subject: [PATCH] Added default MCD in eval script

---
 conll18_ud_eval.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/conll18_ud_eval.py b/conll18_ud_eval.py
index 4ddf211..95856b6 100755
--- a/conll18_ud_eval.py
+++ b/conll18_ud_eval.py
@@ -242,6 +242,8 @@ def load_conllu(file) :
   ud = UDRepresentation()
   ud.filename = file.name
 
+  col2index, index2col = readMCD("ID FORM LEMMA UPOS XPOS FEATS HEAD DEPREL DEPS MISC")
+
   # Load the CoNLL-U file
   index, sentence_start = 0, None
   id_starts_at_zero = False
@@ -729,7 +731,6 @@ def main() :
 
   global col2index
   global index2col
-  col2index, index2col = readMCD("ID FORM LEMMA UPOS XPOS FEATS HEAD DEPREL DEPS MISC")
 
   # Evaluate
   gold_ud, evaluations = evaluate_wrapper(args)
-- 
GitLab