Repository navigation
produce_characteristic_explorer for non-English-language Corpus #83
|
Hi, I was trying to use
Is it possible to specify a non-English-language frequency list in Thank you so much! |
Replies: 1 comment 3 replies
|
Hi Edoardo, This is still a bit experimental and inelegant (like of Scattertext), but you can pass a subclass of You can see an example of this in https://github.com/JasonKessler/scattertext/blob/5af28c8860d718feb9da1d24c3cb698a946b9c70/scattertext/characteristic/DenseRankCharacteristicness.py In short, your subclass should implement a
Hope this helps. |
Hi Edoardo,
This is still a bit experimental and inelegant (like of Scattertext), but you can pass a subclass of
CharacteristicScorerinto thecharacteristic_scorerparameter ofproduce_scattertext_explorer(or any similar function).You can see an example of this in https://github.com/JasonKessler/scattertext/blob/5af28c8860d718feb9da1d24c3cb698a946b9c70/scattertext/characteristic/DenseRankCharacteristicness.py
In short, your subclass should implement a
get_scores(self, corpus)method which should return a tuple consisting of:pd.Serieswhich is indexed on each term in the corpus (e.g…