ajout de plusieurs graphiques et métriques dans le rapport
This commit is contained in:
parent
4056b8eeaf
commit
5b7ff3ac85
1 changed files with 12 additions and 0 deletions
12
wn_pos_from_ud_pos.py
Normal file
12
wn_pos_from_ud_pos.py
Normal 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
|
Loading…
Add table
Reference in a new issue