{"id":21923077,"url":"https://github.com/jiesutd/text-attention-heatmap-visualization","last_synced_at":"2025-04-09T09:11:23.045Z","repository":{"id":41101868,"uuid":"178910095","full_name":"jiesutd/Text-Attention-Heatmap-Visualization","owner":"jiesutd","description":"Plot the vector graph of attention based text visualisation","archived":false,"fork":false,"pushed_at":"2019-04-12T13:59:40.000Z","size":1397,"stargazers_count":373,"open_issues_count":1,"forks_count":57,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T08:08:07.206Z","etag":null,"topics":["attention-lstm","attention-visualization","heatmap","text-heatmap","text-visualisation","vectogram","vector-graphics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jiesutd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-01T17:09:27.000Z","updated_at":"2025-03-29T10:40:25.000Z","dependencies_parsed_at":"2022-08-28T23:31:23.563Z","dependency_job_id":null,"html_url":"https://github.com/jiesutd/Text-Attention-Heatmap-Visualization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiesutd%2FText-Attention-Heatmap-Visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiesutd%2FText-Attention-Heatmap-Visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiesutd%2FText-Attention-Heatmap-Visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiesutd%2FText-Attention-Heatmap-Visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiesutd","download_url":"https://codeload.github.com/jiesutd/Text-Attention-Heatmap-Visualization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008630,"owners_count":21032556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["attention-lstm","attention-visualization","heatmap","text-heatmap","text-visualisation","vectogram","vector-graphics"],"created_at":"2024-11-28T21:08:58.101Z","updated_at":"2025-04-09T09:11:23.025Z","avatar_url":"https://github.com/jiesutd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TAHV：Text Attention Heatmap Visualization\n\nThis repository provides a simple visualization tool for the attention based NLP tasks. \n\nMany attention based NLP tasks visualize the text with attention weights as background. This code takes word list and the corresponding weights as input and generate the Latex code to visualize the attention based text. The Latex code will generates a standalone `.pdf` visulization file. Users can use this `.pdf` visulization file as vector diagram to demonstrate the attention ability of the model in their papers/slides/demos.\n\n\n## Usage\n\nIt is very simple to use this code. Feed the word list and weight list in function `generate` with output Latex file directory and color configuration. The Latex file will be generated. Then compile the Latex file, the `.pdf` file will be generated.\n\n* Notice the weight range: [0-100]\n\n\n![alt text](red.png \"Red demo\")\n\n\n![alt text](blue.png \"Blue demo\")\n\n![alt text](CN.png \"Chinese demo\")\n\n\n## Citation:   \n\nThis repository will be part of new [NCRF++](https://github.com/jiesutd/NCRFpp). Please cite our [ACL demo paper](https://arxiv.org/abs/1806.05626) if you use this code.\n\n    @inproceedings{yang2018ncrf,  \n     title={NCRF++: An Open-source Neural Sequence Labeling Toolkit},  \n     author={Yang, Jie and Zhang, Yue},  \n     booktitle={Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics},\n     Url = {http://aclweb.org/anthology/P18-4013},\n     year={2018}  \n    }\n\n\n\n## Update\n* 2019-Apr-12, support Chinese\n* 2019-Apr-01, init version\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiesutd%2Ftext-attention-heatmap-visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiesutd%2Ftext-attention-heatmap-visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiesutd%2Ftext-attention-heatmap-visualization/lists"}