Browse Source

ajout de plusieurs graphiques et métriques dans le rapport

master
FRANCOIS PELLETIER 9 months ago
parent
commit
5b7ff3ac85
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      wn_pos_from_ud_pos.py

+ 12
- 0
wn_pos_from_ud_pos.py 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

Loading…
Cancel
Save