How to use untag method in localstack

Best Python code snippet using localstack_python

vocabulary.py

Source:vocabulary.py Github

copy

Full Screen

1""" Dictionary of Preknown Words 2Copyright 2018(c), Andrew Ferlitsch3"""45class Vocabulary(object):6 """ Predefined Vocabulary """7 UNTAG = 0 # Not tagged8 NUMBER = 1 # Is a number9 DATE = 2 # Is a date10 CONJUNCTION = 3 # conjunction11 ARTICLE = 4 # article12 DEMONSTRATIVE = 5 # Demonstrative13 PREPOSITION = 6 # Prepositions14 QUESTION = 7 # Question words15 PRONOUN = 8 # Pronouns16 SSN = 9 # Social Security Number17 TELEPHONE = 10 # Telephone Number18 NAME = 11 # Proper Names19 ADDRESS = 12 # Street Addresses20 QUANTIFIER = 13 # Size words21 ACRONYM = 14 # Acronym22 MALE = 15 # Gender23 FEMALE = 16 # Gender24 TRANSGENDER = 17 # Gender25 POSITIVE = 18 # Sentiment26 NEGATIVE = 19 # Sentiment27 DOB = 20 # Date of Birth28 PORTER = 21 # Porter Stopwords29 ABBR = 22 # Abbreviations30 PUNCT = 23 # Punctuation31 SYMBOL = 24 # Symbol32 UNIT = 25 # Unit of Measure33 MUNIT = 26 # Multiplying unit (e.g., 10 million = 10,000,000)34 STREET_NUM = 27 # Street Number in Address35 STREET_DIR = 28 # Street Direction in Address36 STREET_NAME = 29 # Street Name in Address37 STREET_TYPE = 30 # Street Type in Address38 CITY = 31 # City39 STATE = 32 # State40 TITLE = 33 # Proper Name Title41 POSTAL = 34 # Postal Code42 POB = 35 # Post Office Box43 SAC = 36 # Secondary Address Component (e.g., Apt)44 STATION = 37 # Delivery Station (Canada)45 MEASUREMENT = 38 # Measurement46 TELEPHONE_HOME = 39 # Home Telephone47 TELEPHONE_WORK = 40 # Work/Office Telephone48 TELEPHONE_CELL = 41 # Cell/Mobile Telephone49 TELEPHONE_FAX = 42 # FAX number50 AGE = 43 # Age51 52 # Special Markers53 PAD = '<PAD>'54 OUT = '<OUT>'55 SOS = '<SOS>'56 EOS = '<EOS>'57 EMP = '<EMP>'58 NEG = '<NEG>'59 POS = '<POS>'6061vocab = {'a' : { 'tag': [ Vocabulary.ARTICLE ], 'lemma': None },62 'an' : { 'tag': [ Vocabulary.ARTICLE ], 'lemma': None },63 'the' : { 'tag': [ Vocabulary.ARTICLE ], 'lemma': None },64 'all' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['1'] },65 'any' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },66 'both' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },67 'big' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },68 'empty' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['0'] }, 69 'few' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },70 'full' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['1'] }, 71 'half' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['0.5']}, 72 'high' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },73 'large' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },74 'least' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },75 'less' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },76 'little' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },77 'long' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },78 'low' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },79 'many' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },80 'more' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },81 'most' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },82 'much' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },83 'non' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },84 'none' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['0'] },85 'often' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },86 'once' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['1'] },87 'part' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None }, 88 'partial' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None }, 89 'quarter' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['0.25'] }, 90 'several' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None }, 91 'short' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },92 'small' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },93 'some' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },94 'tall' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },95 'tiny' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },96 'whole' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['1'] }, 97 'middle' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['0.5']},98 'last' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': None },99 'above' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },100 'across' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },101 'after' : { 'tag': [ Vocabulary.PREPOSITION, Vocabulary.CONJUNCTION ], 'lemma': None },102 'at' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },103 'before' : { 'tag': [ Vocabulary.PREPOSITION, Vocabulary.CONJUNCTION ], 'lemma': None },104 'behind' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },105 'below' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },106 'beneath' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },107 'between' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },108 'besides' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },109 'bottom' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },110 'by' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },111 'down' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },112 'far' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },113 'from' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },114 'here' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },115 'in' : { 'tag': [ Vocabulary.PREPOSITION, Vocabulary.UNIT ], 'lemma': ['in', 'inch'] },116 'inside' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },117 'instead' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },118 'into' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },119 'near' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },120 'next' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },121 'of' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },122 'on' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },123 'out' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },124 'outside' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },125 'over' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },126 'there' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },127 'through' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },128 'throughout' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },129 'to' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },130 'top' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },131 'thru' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },132 'under' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },133 'underneath' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },134 'upon' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },135 'up' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },136 'with' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },137 'within' : { 'tag': [ Vocabulary.PREPOSITION ], 'lemma': None },138 'also' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },139 'although' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },140 'and' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },141 'as' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },142 'because' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },143 'but' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },144 'consequently' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': ['consequently'] },145 'either' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },146 'for' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },147 'furthermore' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },148 'hence' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },149 'however' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },150 'if' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },151 'indeed' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },152 'likewise' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },153 'meanwhile' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },154 'neither' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },155 'nor' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },156 'or' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },157 'otherwise' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },158 'since' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },159 'so' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },160 'still' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },161 'such' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },162 'than' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },163 'therefore' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },164 'though' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },165 'thus' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },166 'unless' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },167 'until' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },168 'while' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },169 'yet' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },170 'where' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },171 'wherever' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },172 'whether' : { 'tag': [ Vocabulary.CONJUNCTION ], 'lemma': None },173 'this' : { 'tag': [ Vocabulary.DEMONSTRATIVE ], 'lemma': None },174 'that' : { 'tag': [ Vocabulary.DEMONSTRATIVE ], 'lemma': None },175 'these' : { 'tag': [ Vocabulary.DEMONSTRATIVE ], 'lemma': None },176 'those' : { 'tag': [ Vocabulary.DEMONSTRATIVE ], 'lemma': None },177 'anybody' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },178 'anyone' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },179 'anything' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },180 'each' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },181 'everybody' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },182 'everyone' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },183 'everything' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },184 'he' : { 'tag': [ Vocabulary.PRONOUN, Vocabulary.MALE ], 'lemma': ['he', 'he'] },185 'her' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },186 'herself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },187 'his' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },188 'him' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },189 'himself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },190 'i' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },191 'it' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },192 'its' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },193 'itself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },194 'me' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },195 'my' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },196 'myself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },197 'nobody' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },198 'our' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },199 'ourself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },200 'oneself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },201 'self' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },202 'she' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },203 'somebody' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },204 'someone' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },205 'something' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },206 'them' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },207 'they' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },208 'their' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },209 'thee' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },210 'themselves' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },211 'thine' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },212 'thou' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },213 'thyself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },214 'us' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },215 'we' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },216 'whoever' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },217 'whom' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },218 'whomever' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },219 'whichever' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },220 'you' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },221 'your' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },222 'yourself' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },223 'ye' : { 'tag': [ Vocabulary.PRONOUN ], 'lemma': None },224 'how' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },225 'what' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },226 'where' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },227 'when' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },228 'who' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },229 'which' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },230 'why' : { 'tag': [ Vocabulary.QUESTION ], 'lemma': None },231 'mr' : { 'tag': [ Vocabulary.TITLE ], 'lemma': [ 'mr' ] },232 'mrs' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None },233 'ms' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None },234 'jr' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['junior'] },235 'sr' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['senior'] },236 'dr' : { 'tag': [ Vocabulary.TITLE ], 'lemma': [ "doctor" ] },237 'doctor' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['doctor'] },238 'md' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['medical doctor'] },239 'phd' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None },240 'rn' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['nurse'] },241 'nurse' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['nurse'] },242 'dentist' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['dentist'] },243 'attorney' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['attorney'] },244 'atty' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['attorney'] },245 'prof' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['professor'] },246 'professor' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['professor'] },247 'vp' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['vice president'] },248 'ceo' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['chief executive officier'] }, 249 'coo' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 250 'cto' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 251 'cio' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 252 'mayor' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 253 'councilman' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 254 'sheriff' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 255 'senator' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 256 'congressman' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 257 'governor' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 258 'president' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 259 'treasurer' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 260 'sgt' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['sergeant'] }, 261 'sergeant' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 262 'colonel' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 263 'cpl' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['corporal'] }, 264 'corporal' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 265 'lieutenant' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 266 'cmdr' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['commander'] }, 267 'commander' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 268 'capt' : { 'tag': [ Vocabulary.TITLE ], 'lemma': ['captain'] }, 269 'captain' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 270 'vice' : { 'tag': [ Vocabulary.TITLE ], 'lemma': None }, 271 'male' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },272 'man' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },273 'men' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },274 'boy' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },275 'guy' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },276 'dude' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },277 'dad' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['father'] }, 278 'daddy' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['father'] }, 279 'father' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['father'] }, 280 'papa' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['father'] },281 'son' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },282 'brother' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },283 'uncle' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },284 'gent' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },285 'gentleman' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },286 'gentlemen' : { 'tag': [ Vocabulary.MALE ], 'lemma': None },287 'bro' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['brother'] },288 'sir' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 289 'grandfather' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 290 'grandpa' : { 'tag': [ Vocabulary.MALE ], 'lemma': ['grandfather'] }, 291 'stepbrother' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 292 'stepfather' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 293 'stepdad' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 294 'stepson' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 295 'husband' : { 'tag': [ Vocabulary.MALE ], 'lemma': None }, 296 'female' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },297 'woman' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },298 'women' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },299 'girl' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },300 'gal' : { 'tag': [ Vocabulary.FEMALE, Vocabulary.UNIT ], 'lemma': ['gal', 'gallon'] },301 'mom' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['mother'] }, 302 'mommy' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['mother'] }, 303 'mother' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['mother'] }, 304 'momma' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['mother'] },305 'sister' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },306 'aunt' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },307 'auntie' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['aunt'] },308 'aunty' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['aunt'] },309 'lady' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None }, 310 'sis' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['sister'] },311 'madam' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },312 'daughter' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },313 'grandmother' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },314 'grandma' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['grandmother'] },315 'granny' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['grandmother'] },316 'grannie' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': ['grandmother'] },317 'stepsister' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },318 'stepmother' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },319 'stepmom' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },320 'stepsister' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },321 'wife' : { 'tag': [ Vocabulary.FEMALE ], 'lemma': None },322 'transgender' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 323 'ladyboy' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 324 'sissy' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 325 'shemale' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 326 'tg' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 327 'tranny' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 328 'crossdresser' : { 'tag': [ Vocabulary.TRANSGENDER ], 'lemma': None }, 329 'amaze' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 330 'awesome' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 331 'beauty' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None },332 'best' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['best'] },333 'better' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['better'] }, 334 'cool' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 335 'excellent' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None },336 'fair' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None },337 'favorite' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 338 'fantastic' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 339 'fun' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 340 'good' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 341 'great' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 342 'like' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None },343 'love' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 344 'luv' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': "love" }, 345 'nice' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 346 'perfect' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 347 'pleasant' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 348 'recommend' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 349 'superb' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 350 'yes' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 351 'wonderful' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': None }, 352 'bad' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 353 'break' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 354 'crap' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None },355 'dead' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 356 'disgust' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 357 'dumb' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 358 'break' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 359 'idiot' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 360 'idiotic' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['idiot'] }, 361 'lousy' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 362 'no' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 363 'not' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 364 'nothing' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 365 'never' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 366 'poor' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 367 'shit' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 368 'shithole' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['shit'] }, 369 'stink' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 370 'stupid' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 371 'suck' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 372 'terrible' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 373 'ugly' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 374 'worse' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': None }, 375 'worst' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['worse'] }, 376 'bore' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['bore'] },377 'appall' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['appall']},378 'horror' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['horror']},379 'horrible' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['horror']},380 'aboard' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },381 'about' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },382 'again' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },383 'against' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },384 'almost' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },385 'alone' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },386 'along' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },387 'alongside' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },388 'already' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },389 'alway' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },390 'always' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },391 'am' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },392 'admid' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },393 'admist' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },394 'among' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },395 'amongst' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },396 'another' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },397 'anti' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },398 'anywhere' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },399 'area' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },400 'around' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },401 'are' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['is'] },402 'ask' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },403 'astride' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },404 'away' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },405 'back' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },406 'bar' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },407 'be' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },408 'became' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['become'] },409 'become' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },410 'begin' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },411 'being' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },412 'been' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },413 'beyond' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },414 'came' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['come'] },415 'come' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },416 'can' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },417 'cannot' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },418 'could' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['can'] },419 'certain' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },420 'circa' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },421 'clear' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },422 'consider' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },423 'concern' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },424 'despite' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },425 'did' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['do'] },426 'differ' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },427 'do' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },428 'does' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['do'] },429 'during' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },430 'end' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },431 'enough' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },432 'even' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },433 'ever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },434 'every' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },435 'except' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },436 'exclude' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },437 'felt' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },438 'find' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },439 'follow' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },440 'fully' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },441 'further' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },442 'gave' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['give'] },443 'general' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },444 'get' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },445 'give' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },446 'given' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['give'] },447 'go' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },448 'got' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['get'] },449 'group' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },450 'had' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['has'] },451 'has' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },452 'have' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['has'] },453 'is' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },454 'ilk' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },455 'include' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },456 'important' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },457 'interest' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['interest'] },458 'just' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },459 'keep' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },460 'kind' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },461 'knew' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['know'] },462 'know' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },463 'known' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },464 'later' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },465 'let' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },466 'make' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },467 'may' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },468 'made' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },469 'member' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },470 'might' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },471 'mine' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },472 'minus' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },473 'naught' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },474 'necessary' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },475 'need' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },476 'new' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },477 'notwithstand' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },478 'now' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },479 'nowhere' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },480 'number' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },481 'off' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },482 'only' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },483 'old' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },484 'onto' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },485 'open' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },486 'opposite' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },487 'order' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },488 'other' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },489 'ought' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },490 'own' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },491 'past' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },492 'pending' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },493 'per' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },494 'perhaps' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },495 'plus' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },496 'point' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },497 'possible' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },498 'present' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },499 'problem' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },500 'put' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },501 'quite' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },502 'rather' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },503 'really' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['really'] },504 'regard' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },505 'room' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },506 'round' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },507 'said' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },508 'same' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },509 'say' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },510 'save' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },511 'saw' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['see'] },512 'see' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },513 'seen' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['see'] },514 'seem' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },515 'shall' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },516 'should' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['shall'] },517 'show' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },518 'side' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },519 'somewhat' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },520 'somewhere' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },521 'state' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },522 'suchlike' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },523 'sundry' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },524 'sure' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },525 'take' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },526 'think' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },527 'thought' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },528 'thing' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },529 'till' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },530 'today' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },531 'together' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },532 'too' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },533 'turn' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },534 'toward' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },535 'took' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['take'] },536 'twain' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },537 'unlike' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },538 'use' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },539 'various' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },540 'versus' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },541 'was' : { 'tag': [ Vocabulary.PORTER ], 'lemma': ['is'] },542 'very' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },543 'via' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },544 'visavis' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },545 'way' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },546 'want' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },547 'went' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },548 'were' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },549 'whatall' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },550 'whatever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },551 'whatsoever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },552 'wherewith' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },553 'wherewithall' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },554 'whereas' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },555 'whichsoever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },556 'will' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },557 'whosoever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },558 'whomsoever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },559 'whose' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },560 'without' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },561 'work' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },562 'would' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },563 'worth' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },564 'whenever' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },565 'yon' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },566 'yonder' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },567 'young' : { 'tag': [ Vocabulary.PORTER ], 'lemma': None },568 'zero' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['0']},569 'one' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1']},570 'two' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['2']},571 'three' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['3']},572 'four' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['4']},573 'five' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['5']},574 'six' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['6']},575 'seven' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['7']},576 'eight' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['8']},577 'nine' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['9']},578 'ten' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['10']},579 'eleven' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['11']},580 'twelve' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['12']},581 'thirteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['13']},582 'fourteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['14']},583 'fifteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['15']},584 'sixteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['16']},585 'seventeen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['17']},586 'eighteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['18']},587 'nineteen' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['19']},588 'twenty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['20']},589 'thirty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['30']},590 'forty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['40']},591 'fifty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['50']},592 'sixty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['60']},593 'seventy' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['70']},594 'eighty' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['80']},595 'ninety' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['90']},596 'hundred' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.MUNIT ], 'lemma': ['100']},597 'thousand' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.MUNIT ], 'lemma': ['1000']},598 'million' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.MUNIT ], 'lemma': ['1000000']},599 'billion' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.MUNIT ], 'lemma': ['1000000000']},600 'trillion' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.MUNIT ], 'lemma': ['1000000000000']},601 'infinity' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['infinity']},602 'first' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1']},603 'second' : { 'tag': [ Vocabulary.NUMBER, Vocabulary.UNIT ], 'lemma': ['2', 'second']},604 'third' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['3']},605 'fourth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['4']},606 'fifth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['5']},607 'sixth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['6']},608 'seventh' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['7']},609 'eighth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['8']},610 'nineth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['9']},611 'tenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['10']},612 'elventh' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['11']},613 'twelveth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['12']},614 'thirteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['13']},615 'fourteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['14']},616 'fifteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['15']},617 'sixteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['16']},618 'seventeenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['17']},619 'eighteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['18']},620 'nineteenth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['19']},621 'twentieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['20']},622 'thirtieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['30']},623 'fortieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['40']},624 'fiftieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['50']},625 'sextieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['60']},626 'seventieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['70']},627 'eightieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['80']},628 'ninetieth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['90']},629 'hundredth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['100']},630 'thousandth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1000']},631 'millionth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1000000']},632 'billionth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1000000']},633 'trillionth' : { 'tag': [ Vocabulary.NUMBER ], 'lemma': ['1000000000']},634 'sq' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square']},635 'inch' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['inch']},636 'ins' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['inch']},637 'ft' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['foot']},638 'foot' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['foot']},639 'feet' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['foot']},640 'yd' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['yard']},641 'yds' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['yard']},642 'yard' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['yard']},643 'mi' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['mile']},644 'mile' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['mile']},645 'oz' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['ounce']},646 'ounce' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['ounce']},647 'cup' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['cup']},648 'pt' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pint']},649 'pts' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pint']},650 'pint' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pint']},651 'gallon' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['gallon']},652 'qt' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['quart']},653 'qts' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['quart']},654 'quart' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['quart']},655 'lb' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pound']},656 'lbs' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pound']},657 'pound' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['pound']},658 'ton' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['ton']},659 'tons' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['ton']},660 'sec' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['second']},661 'secs' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['second']},662 'min' : { 'tag': [ Vocabulary.UNIT, Vocabulary.ABBR ], 'lemma': ['minute', 'minimum']},663 'minute' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['minute']},664 'hr' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['hour']},665 'hrs' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['hour']},666 'hour' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['hour']},667 'day' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['day']},668 'year' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['year']},669 'yr' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['year']},670 'yrs' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['year']},671 'sqft' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square foot']},672 'sf' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square foot']},673 'ft2' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square foot']},674 'ac' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['acre']},675 'acre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['acre']},676 'sqmi' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square mile']},677 'mi2' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square mile']},678 'mph' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['mile per hour']},679 'tsp' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['teaspoon']},680 'teaspoon' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['teaspoon']},681 'kn' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['knot']},682 'knot' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['knot']},683 'mm' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['millimeter']},684 'millimeter' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['millimeter']},685 'millimetre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['millimeter']},686 'cm' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['centimeter']},687 'centimeter' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['centimeter']},688 'centimetre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['centimeter']},689 'km' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilometer']},690 'kilometer' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilometer']},691 'kilometre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilometer']},692 'kmh' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilometer per hour']},693 'm' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['meter']},694 'meter' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['meter']},695 'metre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['meter']},696 'ml' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['milliliter']},697 'milliliter' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['milliliter']},698 'l' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['liter']},699 'liter' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['liter']},700 'litre' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['liter']},701 'g' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['gram']},702 'gram' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['gram']},703 'mg' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['milligram']},704 'milligram' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['milligram']},705 'kilo' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilogram']},706 'kg' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilogram']},707 'kilogram' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilogram']},708 'tonne' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['tonne']},709 'kw' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilowatt']},710 'kilowatt' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilowatt']},711 'sqm' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square meter']},712 'm2' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square meter']},713 'km2' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['square kilometer']},714 'm3' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['cubic meter']},715 'ha' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['hectera']},716 'hectera' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['hectera']},717 'kmh' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilometer per hour']},718 'kwh' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['kilowatt per hour']},719 '°f' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['fahrenheit']},720 'fahrenheit' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['fahrenheit']},721 '°c' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['celsius']},722 'celsius' : { 'tag': [ Vocabulary.UNIT ], 'lemma': ['celsius']},723 'height' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['height']},724 'ht' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['height']},725 'width' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['width']},726 'length' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['length']},727 'len' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['length']},728 'distance' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['length']},729 'weight' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['weight']},730 'wt' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['weight']},731 'volume' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['volume']},732 'quantity' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['quantity']},733 'deep' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['depth']},734 'depth' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['depth']},735 'speed' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['speed']},736 'velocity' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['speed']},737 'size' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['size']},738 'temp' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['temperature']},739 'temperature' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['temperature']},740 'ave' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['average']},741 'average' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['average']},742 'max' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['maximum']},743 'maximum' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['maximum']},744 'age' : { 'tag': [ Vocabulary.MEASUREMENT ], 'lemma': ['age']},745 'hwy' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['highway']},746 'fwy' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['freeway']},747 'pic' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['picture']},748 'biz' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['business']},749 750 # Stemming Corrections751 'admired' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['admire']},752 'admirably' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['admire']},753 'admirable' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['admire']},754 'advertise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['advertise']},755 'anesthetize' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['anesthetize']},756 'appalled' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['appall']},757 'authorize' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['authorize']},758 'balanced' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['balance']},759 'balancing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['balance']},760 'bankrolled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['bankroll']},761 'baptise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['baptise']},762 'based' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['base']},763 'biggest' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['big']},764 'boating' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['boat']},765 'boring' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['bore']},766 'bored' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['bore']},767 'boxer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['boxer']},768 'breaking' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['break']},769 'butterfly' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['butterfly']},770 'changed' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['change']},771 'changer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['change']},772 'changing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['change']},773 'chastise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['chastise']},774 'chilled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['chill']},775 'climber' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['climb']},776 'computer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['computer']},777 'consumer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['consumer']},778 'continued' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['continue']},779 'continuing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['continue']},780 'contributed' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['contribute']},781 'combined' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['combine']},782 'crashes' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['crash']},783 'customer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['customer']},784 'dancing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dance']},785 'danced' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dance']},786 'december' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['december']},787 'desensitize' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['desensitize']},788 'dinner' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dine']},789 'downloader' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['download']},790 'downloading' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['download']},791 'driven' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['drive']},792 'dumber' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dumb']},793 'dwarves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dwarf']},794 'eclipsed' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['eclipse']},795 'eclipsing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['eclipse']},796 'elves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['elf']},797 'ending' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['end']},798 'entitled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['entitle']},799 'equipped' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['equip']},800 'exercises' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['exercise']},801 'exercised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['exercise']},802 'fantasized' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['fantasy']},803 'fishes' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['fish']},804 'floating' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['float']},805 'franchise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['franchise']},806 'former' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['former']},807 'gender' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['gender']},808 'gone' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['go']},809 'halves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['half']},810 'headquarter' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['headquarter']},811 'horribly' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['horror']},812 'horrify' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['horror']},813 'included' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['include']},814 'indicated' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['indicate']},815 'inquired' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['inquire']},816 'inquiring' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['inquire']},817 'largest' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['large']},818 'latest' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['late']},819 'latter' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['latter']},820 'lazy' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['lazy']},821 'leader' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['lead']},822 'leaves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['leaf']},823 'legitimize' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['legitimate']},824 'letter' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['letter']},825 'licensed' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['license']},826 'licensing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['license']},827 'liked' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['like']},828 'liver' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['liver']},829 'loaves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['loaf']},830 'lover' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['love']},831 'lovely' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['love']},832 'manufacturer' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['manufacture']},833 'manufactured' : { 'tag': [ Vocabulary.POSITIVE ], 'lemma': ['manufacture']},834 'merchandise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['merchandise']},835 'misspelled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['misspell']},836 'november' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['november']},837 'october' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['october']},838 'ongoing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['ongoing']},839 'organize' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},840 'organized' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},841 'organizing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},842 'participates' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['participate']},843 'permitted' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['permit']},844 'possibly' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['possible']},845 'potatoes' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['potato']},846 'preferred' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['prefer']},847 'produced' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['produce']},848 'promoted' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['promote']},849 'proven' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['prove']},850 'provider' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['provide']},851 'provided' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['provide']},852 'raced' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['race']},853 'racing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['race']},854 'racer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['race']},855 'raster' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['raster']},856 'referred' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['refer']},857 'refined' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['refine']},858 'refining' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['refine']},859 'refiner' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['refine']},860 'relapsing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['relapse']},861 'roses' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['rose']},862 'seawater' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['seawater']},863 'shared' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['share']},864 'sharing' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['share']},865 'stepfamily' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['stepfamily']},866 'stupidity' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['stupid']},867 'surprise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['surprise']},868 'surprised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['surprise']},869 'surprising' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['surprise']},870 'taken' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['take']},871 'terribly' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['terrible']},872 'testify' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['testify']},873 'tinest' : { 'tag': [ Vocabulary.QUANTIFIER ], 'lemma': ['tiny']},874 'tomatoes' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['tomato']},875 'transfer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['transfer']},876 'transferrer' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['transfer']},877 'treating' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['treat']},878 'treatment' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['treat']},879 'tumbling' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['tumble']},880 'united' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['united']},881 'updated' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['update']},882 'violated' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['violate']},883 'waiver' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['waive']},884 'water' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['water']},885 'wharves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['wharf']},886 'wives' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['wife']},887 'wolves' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['wolf']},888 'analyses' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['analyze']},889 'analysis' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['analyze']},890 'maneuver' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['maneuver']},891 'unfavorable' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['unfavorable']},892 893 # Common misspelling (or slang)894 'dumbiest' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dumb']},895 'stupider' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['stupid']},896 'stupidified' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['stupid']}, 897 'crappy' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['crap'] }, 898 'fulfil' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['fullfil']}, 899 'moslem' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['muslim']}, 900 'guage' : { 'tag': [ Vocabulary.NEGATIVE ], 'lemma': ['gauge']}, 901 902 # UK Spelling903 'analogue' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['analog']},904 'analyse' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['analyze']},905 'apologise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['apologize']},906 'apologised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['apologize']},907 'apologising' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['apologize']},908 'behaviour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['behavior']},909 'beyound' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['beyond']},910 'breathalsye' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['breathalyze']},911 'catalogue' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['catalog']},912 'centre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['center']},913 'cheque' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['check']},914 'collectable' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['collectible']},915 'colour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['color']},916 'defence' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['defense']},917 'dialogue' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dialog']},918 'despatch' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dispatch']}, 919 'dreamt' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['dream']},920 'endeavour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['endeavor']},921 'oestrogen' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['estrogen']},922 'favour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['favor']},923 'favourite' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['favorite']},924 'fibre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['fiber']},925 'flavour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['flavor']},926 'fuelled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['fuel']},927 'fuelling' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['fuel']},928 'grey' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['gray']},929 'harbour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['harbor']},930 'honour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['honor']},931 'humour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['humor']},932 'jewellery' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['jewelery']},933 'labour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['labor']},934 'leapt' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['leap']},935 'leant' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['lean']},936 'learnt' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['learn']},937 'leukaemia' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['leukemia']},938 'licence' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['license']},939 'manoeuvre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['maneuver']},940 'marvellous' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['marvelous']},941 'meagre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['meager']},942 'mediaeval' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['medieval']},943 'neighbour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['neighbor']},944 'odour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['odor']},945 'organisation' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organization']},946 'organise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},947 'organised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},948 'organising' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['organize']},949 'paralyse' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['paralyze']},950 'parlour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['parlor']},951 'peaditric' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['peditric']},952 'plough' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['plow']},953 'practise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['practice']},954 'practised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['practice']},955 'practising' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['practice']},956 'pretence' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['pretense']},957 'programme' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['program']},958 'recognise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['recognize']},959 'recognised' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['recognize']},960 'recognising' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['recognize']},961 'rumour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['rumor']},962 'sceptre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['scepter']},963 'splendour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['splendor']},964 'succour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['succor']},965 'theatre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['theater']},966 'travelled' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['travel']},967 'travelling' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['travel']},968 'traveller' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['travel']},969 'vapour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['vapor']},970 'vigour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['vigor']},971 'judgement' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['judgment']},972 'candour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['candor']},973 'aeroplane' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['airplane']},974 'blonde' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['blond']},975 'glamour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['glamor']},976 'spoilt' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['spoil']},977 'unfavourable' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['unfavorable']},978 'favourably' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['favorably']},979 'counsellor' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['counselor']},980 'counselling' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['counselor']},981 'draughts' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['checkers']},982 'savour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['savor']},983 'enamour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['enamor']},984 'amphitheatre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['amphitheater']},985 'spilt' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['spill']},986 'rigour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['rigor']},987 'authorise' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['authorize']},988 'expence' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['expense']},989 'rancour' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['rancor']},990 'calibre' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['caliber']},991 'armour ' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['armor']},992 'armoury ' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['armor']},993 'agonise ' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['agonize']},994995 # Scanning Errors996 'reposktory' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['repository']},997 'accesskng' : { 'tag': [ Vocabulary.UNTAG ], 'lemma': ['access']},998 }999 1000if __name__ == "__main__": ...

Full Screen

Full Screen

untag_test.py

Source:untag_test.py Github

copy

Full Screen

...21 self.assertDictEqual({22 '$view': '/views/base-ja.html',23 'qaz': 'qux-ja',24 'foo': 'bar-ja',25 }, untag.Untag.untag(fields, locale_identifier='ja'))26 fields = copy.deepcopy(fields_to_test)27 self.assertDictEqual({28 '$view': '/views/base.html',29 'qaz': 'qux-de',30 'foo': 'bar-de',31 }, untag.Untag.untag(fields, locale_identifier='de'))32 def test_untag_nested(self):33 """Untag field values by locale with nested fields."""34 fields_to_test = {35 'nested': {36 'nested': 'nested-base',37 'nested@fr': 'nested-fr',38 },39 }40 fields = copy.deepcopy(fields_to_test)41 self.assertDictEqual({42 'nested': {43 'nested': 'nested-fr',44 },45 }, untag.Untag.untag(fields, locale_identifier='fr'))46 fields = copy.deepcopy(fields_to_test)47 self.assertDictEqual({48 'nested': {49 'nested': 'nested-base',50 },51 }, untag.Untag.untag(fields, locale_identifier='de'))52 def test_untag_list(self):53 """Untag field values by locale with lists."""54 fields_to_test = {55 'list': [56 {57 'item': 'value-1',58 'item@de': 'value-1-de',59 'item@fr': 'value-1-fr',60 },61 {62 'item': 'value-2',63 },64 {65 'item@fr': 'value-3-fr',66 },67 ]68 }69 fields = copy.deepcopy(fields_to_test)70 self.assertDictEqual({71 'list': [72 {73 'item': 'value-1-fr',74 },75 {76 'item': 'value-2',77 },78 {79 'item': 'value-3-fr',80 },81 ]82 }, untag.Untag.untag(fields, locale_identifier='fr'))83 fields = copy.deepcopy(fields_to_test)84 self.assertDictEqual({85 'list': [86 {87 'item': 'value-1-de',88 },89 {90 'item': 'value-2',91 },92 {},93 ]94 }, untag.Untag.untag(fields, locale_identifier='de'))95 self.assertDictEqual({96 'list': [97 {98 'item': 'value-1',99 },100 {101 'item': 'value-2',102 },103 {},104 ]105 }, untag.Untag.untag(fields, locale_identifier='ja'))106 def test_untag_list_nested(self):107 """Untag field values by locale with nested list fields."""108 fields_to_test = {109 'list@': [110 'value1',111 'value2',112 'value3',113 ],114 'list@fr': [115 'value1-fr',116 'value2-fr',117 'value3-fr',118 ],119 }120 fields = copy.deepcopy(fields_to_test)121 self.assertDictEqual({122 'list': [123 'value1',124 'value2',125 'value3',126 ],127 'list@': [128 'value1',129 'value2',130 'value3',131 ],132 }, untag.Untag.untag(fields, locale_identifier='de'))133 fields = copy.deepcopy(fields_to_test)134 self.assertDictEqual({135 'list': [136 'value1-fr',137 'value2-fr',138 'value3-fr',139 ],140 'list@': [141 'value1-fr',142 'value2-fr',143 'value3-fr',144 ],145 }, untag.Untag.untag(fields, locale_identifier='fr'))146 # pylint: disable=invalid-name147 def test_untag_backwards_compatibility(self):148 """Test backwards compatibility with untagging."""149 fields_to_test = {150 'title@': 'foo',151 'nested': {152 'list@': [153 'value1',154 ],155 },156 'list@': [157 'top-value1',158 'top-value2',159 'top-value3',160 ],161 }162 fields = copy.deepcopy(fields_to_test)163 self.assertDictEqual({164 'title': 'foo',165 'list': [166 'top-value1',167 'top-value2',168 'top-value3',169 ],170 'list@': [171 'top-value1',172 'top-value2',173 'top-value3',174 ],175 'nested': {176 'list': [177 'value1',178 ],179 'list@': [180 'value1',181 ],182 },183 }, untag.Untag.untag(fields))184 def test_untag_with_regex(self):185 """Test that regex works with the untagging keys."""186 fields_to_test = {187 'foo': 'bar-base',188 'foo@de': 'bar-de',189 'foo@fr.*': 'bar-fr',190 'nested': {191 'nested': 'nested-base',192 'nested@de_AT': 'nested-de',193 'nested@fr': 'nested-fr',194 },195 }196 fields = copy.deepcopy(fields_to_test)197 self.assertDictEqual({198 'foo': 'bar-fr',199 'nested': {200 'nested': 'nested-fr',201 },202 }, untag.Untag.untag(fields, locale_identifier='fr'))203 self.assertDictEqual({204 'foo': 'bar-fr',205 'nested': {206 'nested': 'nested-base',207 },208 }, untag.Untag.untag(fields, locale_identifier='fr_FR'))209 self.assertDictEqual({210 'foo': 'bar-fr',211 'nested': {212 'nested': 'nested-base',213 },214 }, untag.Untag.untag(fields, locale_identifier='fr_CA'))215 self.assertDictEqual({216 'foo': 'bar-de',217 'nested': {218 'nested': 'nested-base',219 },220 }, untag.Untag.untag(fields, locale_identifier='de'))221 self.assertDictEqual({222 'foo': 'bar-base',223 'nested': {224 'nested': 'nested-de',225 },226 }, untag.Untag.untag(fields, locale_identifier='de_AT'))227 def test_untag_with_regex_or(self):228 """Test that regex works with the untagging keys."""229 fields_to_test = {230 'foo': 'bar-base',231 'foo@de': 'bar-de',232 'foo@fr|it': 'bar-any',233 'nested': {234 'nested': 'nested-base',235 'nested@fr|it': 'nested-any',236 },237 }238 fields = copy.deepcopy(fields_to_test)239 self.assertDictEqual({240 'foo': 'bar-any',241 'nested': {242 'nested': 'nested-any',243 },244 }, untag.Untag.untag(fields, locale_identifier='fr'))245 fields = copy.deepcopy(fields_to_test)246 self.assertDictEqual({247 'foo': 'bar-any',248 'nested': {249 'nested': 'nested-any',250 },251 }, untag.Untag.untag(fields, locale_identifier='it'))252 fields = copy.deepcopy(fields_to_test)253 self.assertDictEqual({254 'foo': 'bar-de',255 'nested': {256 'nested': 'nested-base',257 },258 }, untag.Untag.untag(fields, locale_identifier='de'))259 def test_untag_with_no_base(self):260 """Test that not having a base key does not interfere with untag and locales."""261 fields_to_test = {262 'foo@de': 'bar-de',263 'baz@de': {264 'fum@de': 'boo-de'265 },266 }267 fields = copy.deepcopy(fields_to_test)268 self.assertDictEqual({}, untag.Untag.untag(fields))269 self.assertDictEqual({270 'foo': 'bar-de',271 'baz': {272 'fum': 'boo-de',273 },274 }, untag.Untag.untag(fields, locale_identifier='de'))275 def test_untag_params_not_implemented(self):276 """Untag params in fields using base class."""277 untag_func = untag.Untag.untag278 fields_to_test = {279 'foo': 'base',280 'foo@env.prod': 'prod',281 }282 with self.assertRaises(NotImplementedError):283 untag_func(fields_to_test, locale_identifier=None, params={284 'env': untag.UntagParam(),285 })286 def test_untag_params_none_callable(self):287 """Untag params in fields using none as the param."""288 untag_func = untag.Untag.untag...

Full Screen

Full Screen

reverse_words_2.py

Source:reverse_words_2.py Github

copy

Full Screen

1import sys2S = sys.stdin.readline().strip()3tag = list()4untag = list()5tag_plug = False6answer = list()7for i in range(len(S)):8 value = S[i]9 if value == '<':10 tag_plug = True11 answer.extend(untag[::-1])12 untag = list()13 if tag_plug:14 tag.append(value)15 else:16 if value == ' ':17 answer.extend(untag[::-1])18 answer.extend([' '])19 untag = list()20 else:21 untag.append(value)22 if value == '>':23 tag_plug = False24 answer.extend(tag)25 tag = list()26if untag:27 answer.extend(untag[::-1])...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful