diff --git a/cm-code/oracle.py b/cm-code/oracle.py new file mode 100755 index 0000000000000000000000000000000000000000..0a591851eb53a4fd6a3534f679dbca9891aa915a --- /dev/null +++ b/cm-code/oracle.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +import sys +from lib.conllulib import TransBasedSent, CoNLLUReader + +cur = CoNLLUReader(open(sys.argv[1],'r',encoding='utf-8')) +for sent in cur.readConllu() : + tbs = TransBasedSent(sent) + print(tbs) diff --git a/cm-code/petits.conllu b/cm-code/petits.conllu new file mode 100644 index 0000000000000000000000000000000000000000..ba3517c7e19d1972acfdad8c757b5ce3c6c1e619 --- /dev/null +++ b/cm-code/petits.conllu @@ -0,0 +1,9 @@ +# text = Les petits ruisseaux font les grandes rivières . +1 Les le DET _ Definite=Def|Number=Plur|PronType=Art 3 det _ _ +2 petits petit ADJ _ Gender=Masc|Number=Plur 3 amod _ _ +3 ruisseaux ruisseau NOUN _ Gender=Masc|Number=Plur 4 nsubj _ _ +4 font faire VERB _ Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin 0 root _ _ +5 les le DET _ Definite=Def|Number=Plur|PronType=Art 7 det _ _ +6 grandes grand ADJ _ Gender=Fem|Number=Plur 7 amod _ _ +7 rivières rivière NOUN _ Gender=Fem|Number=Plur 4 obj _ _ +8 . . PUNCT _ _ 4 punct _ SpaceAfter=No