From 829bb2bdbe7ec7cf530e05e2c96b5318349e991c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 2 Nov 2014 13:21:19 +1100 Subject: [PATCH] * Add mappings to Twitter POS tag corpus --- spacy/pos_util.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spacy/pos_util.py b/spacy/pos_util.py index f8aa8edb7..667f2d9ac 100644 --- a/spacy/pos_util.py +++ b/spacy/pos_util.py @@ -136,6 +136,31 @@ WH X WP PRON WP$ PRON WRB ADV +! PRT +# X +$ NUM +& CONJ +, . +@ X +A ADJ +D DET +E X +G X +L PRT +M PRT +N NOUN +O PRON +P ADP +R ADV +S NOUN +T PRT +U X +V VERB +X PRT +Y PRT +Z NOUN +^ NOUN +~ X `` .""".strip().split('\n')) return mapping[tag]