ajout de plusieurs graphiques et métriques dans le rapport

This commit is contained in:
François Pelletier 2019-12-27 00:26:38 -05:00
parent 4056b8eeaf
commit 5b7ff3ac85

12
wn_pos_from_ud_pos.py Normal file
View file

@ -0,0 +1,12 @@
from nltk.corpus import wordnet as wn
def wn_pos_from_ud_pos(tag):
if tag=='ADJ':
return wn.ADJ
elif tag=='NOUN':
return wn.NOUN
elif tag=='VERB':
return wn.VERB
elif tag=='ADV':
return wn.ADV
else:
return None