AndreasMadsen / python-textualheatmap

Create interactive textual heat maps for Jupiter notebooks
MIT License
196 stars 14 forks source link

How to use my own datasets? #1

Closed ScottishFold007 closed 4 years ago

ScottishFold007 commented 4 years ago

Hello! Your project is great! I want to use my own data set. How does this work? Looking forward to your reply!

AndreasMadsen commented 4 years ago

@ScottishFold007 What do you mean? You construct a data structure as shown in https://github.com/AndreasMadsen/python-textualheatmap#example, how you do that depends on your application. Essentially the data structure is List[List[{"heat": List[float], "token": str, "meta": List[str]}]].

AndreasMadsen commented 4 years ago

I made a notebook that explains it in detail. https://colab.research.google.com/github/AndreasMadsen/python-textualheatmap/blob/master/notebooks/huggingface_bert_example.ipynb

ScottishFold007 commented 4 years ago

wonderful!