Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 175359d1 authored by Guillaume Bonfante's avatar Guillaume Bonfante
Browse files

oups

parent d30e6238
No related branches found
No related tags found
No related merge requests found
import grew
import conllu
c = grew.Corpus("test.conllu") #UD_French-PUD/fr_pud-ud-test.conllu")
#c = grew.Corpus("test.conllu") #UD_French-PUD/fr_pud-ud-test.conllu")
# print(len(c))
# for sid in c:
# print(len(c[sid]),end=" ")
......@@ -17,7 +17,7 @@ for n in c[-1]:
# p = grew.Pattern(("pattern",["X[upos=VERB]"]))
# print(len(c.search(p)))
#grs = grew.GRS("r0.grs")
grs = grew.GRS("r0.grs")
#print(grs)
#grs2 = grew.GRS(grs.json())
......@@ -38,7 +38,7 @@ with open("empty.conllu","w",encoding="utf-8") as f:
ec = grew.Corpus("empty.conllu")
g0 = ec[0]
#print(grs.run(g0))
print(grs.run(g0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment