python - 如何匹配文本每个单词在另一个文本中的单词,及该单词对应的值?
巴扎黑
巴扎黑 2017-06-30 09:54:38
0
1
986

文本ttt.txt内容:
president said would bill program loan farmers
corn committee department agriculture
usda house
文本sss.txt内容:
Topic 0th:

said 0.045193 would 0.028879 bill 0.011087 program 0.010718 loan 0.008395 farmers 0.008237 corn 0.008078 committee 0.007022 department 0.006811 agriculture 0.006653 usda 0.006547 house 0.006494 president

Topic 1th:

said 0.044315 shares 0.031928 stock 0.028001 company 0.023888 group 0.017063 offer 0.016408 share 0.016268 dlrs 0.016034 corp 0.015520 common 0.013463 president 0.000047

如何在sss中匹配ttt中每个单词分别在2个主题下的单词及对应的值?

巴扎黑
巴扎黑

全部回复 (1)
我想大声告诉你

雷雷

    最新下载
    更多>
    网站特效
    网站源码
    网站素材
    前端模板
    关于我们 免责声明 Sitemap
    PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!