Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个函数,它从文本输入中产生一个像这样在图片中的词频图。这张照片是从一份报告中拍摄的,所以我不确定他们是如何制作的。
这里有比单个函数更多的工作。以下链接包含执行类似任务的项目代码。你可以在你的程序中重用它们。
另外,请查看Algorithm 的公认答案,以实现 Wordle 之类的词云,这是 Wordle 的创建者的答案,他在其中解释了基本算法。