如何将这些数据可视化为 Python?
How can I visualize this data into Python?
所以我想将这些数据可视化到 Python 中的以下类型的绘图中。
[('boy', 0.9998371601104736), ('the', 0.9998303651809692), ('s', 0.9998290538787842), ('now', 0.9998087286949158), ('fish', 0.999808669090271), ('up', 0.9998086094856262), ('out', 0.9998055696487427), ('then', 0.9998049736022949), ('him', 0.9998048543930054), ('across', 0.9998047351837158), ('sea', 0.9998030662536621), ('he', 0.999802827835083), ('was', 0.9997997283935547), ('over', 0.9997989535331726), ('head', 0.999798595905304), ('had', 0.999798059463501), ('shark', 0.9997979998588562), ('into', 0.9997978806495667), ('with', 0.9997947216033936), ('man', 0.9997928142547607), ('on', 0.9997923374176025), ('great', 0.9997917413711548), ('water', 0.9997894763946533), ('come', 0.9997884631156921), ('skiff', 0.9997872114181519), ('and', 0.9997856616973877), ('no', 0.9997855424880981), ('when', 0.9997851848602295), ('to', 0.9997830390930176), ('an', 0.9997830390930176)]
您可以使用 Matplotlib and Basic Plotting with Pylab 了解一般的可视化技术。
如果您通过 LDA 等机器学习技术推导出这些,您可以使用主题建模 Gensim or pyLDAvis。
您还应该研究此博客 Python data visualization: Comparing 7 tools 以了解使用 Python 进行数据可视化的各种可能性。
所以我想将这些数据可视化到 Python 中的以下类型的绘图中。
[('boy', 0.9998371601104736), ('the', 0.9998303651809692), ('s', 0.9998290538787842), ('now', 0.9998087286949158), ('fish', 0.999808669090271), ('up', 0.9998086094856262), ('out', 0.9998055696487427), ('then', 0.9998049736022949), ('him', 0.9998048543930054), ('across', 0.9998047351837158), ('sea', 0.9998030662536621), ('he', 0.999802827835083), ('was', 0.9997997283935547), ('over', 0.9997989535331726), ('head', 0.999798595905304), ('had', 0.999798059463501), ('shark', 0.9997979998588562), ('into', 0.9997978806495667), ('with', 0.9997947216033936), ('man', 0.9997928142547607), ('on', 0.9997923374176025), ('great', 0.9997917413711548), ('water', 0.9997894763946533), ('come', 0.9997884631156921), ('skiff', 0.9997872114181519), ('and', 0.9997856616973877), ('no', 0.9997855424880981), ('when', 0.9997851848602295), ('to', 0.9997830390930176), ('an', 0.9997830390930176)]
您可以使用 Matplotlib and Basic Plotting with Pylab 了解一般的可视化技术。
如果您通过 LDA 等机器学习技术推导出这些,您可以使用主题建模 Gensim or pyLDAvis。
您还应该研究此博客 Python data visualization: Comparing 7 tools 以了解使用 Python 进行数据可视化的各种可能性。