09e70570190a441e4f4875e6e45848fd9c0a0372,yellowbrick/text/postag.py,PosTagVisualizer,_penn_tag_map,#PosTagVisualizer#,154
Before Change
Returns a Penn Treebank part-of-speech tag map.
return {
"noun": 0,
"verb": 0,
"adjective": 0,
"adverb": 0,
"preposition": 0,
"determiner": 0,
"pronoun": 0,
"conjunction": 0,
"infinitive": 0,
"wh- word": 0,
"modal": 0,
"possessive": 0,
"existential": 0,
"punctuation": 0,
"digit": 0,
"non-English": 0,
"interjection": 0,
"list": 0,
"symbol": 0,
"other": 0,
}
def _uni_tag_map(self):
Returns a Universal Dependencies part-of-speech tag map.
After Change
Returns a Penn Treebank part-of-speech tag map.
self._pos_tags = PENN_TAGS
return self._make_tag_map(PENN_TAGS)
def _uni_tag_map(self):
Returns a Universal Dependencies part-of-speech tag map.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: DistrictDataLabs/yellowbrick
Commit Name: 09e70570190a441e4f4875e6e45848fd9c0a0372
Time: 2019-06-03
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/text/postag.py
Class Name: PosTagVisualizer
Method Name: _penn_tag_map
Project Name: asyml/texar
Commit Name: efe5155ad7184f04510a5cc53b6327993ce77cd4
Time: 2018-08-22
Author: shore@pku.edu.cn
File Name: texar/modules/decoders/transformer_decoders.py
Class Name: TransformerDecoder
Method Name: default_hparams
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 09e70570190a441e4f4875e6e45848fd9c0a0372
Time: 2019-06-03
Author: 43993586+naresh-bachwani@users.noreply.github.com
File Name: yellowbrick/text/postag.py
Class Name: PosTagVisualizer
Method Name: _uni_tag_map