Skip to content
Snippets Groups Projects
Commit c35044ad authored by Carlos Ramisch's avatar Carlos Ramisch
Browse files

Add part of CM5 code

parent ffa4c808
No related branches found
No related tags found
No related merge requests found
#!/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)
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment