如何在ms word文档中查找重复的单词 [英] how to find repeated words in a ms word document

查看:427
本文介绍了如何在ms word文档中查找重复的单词的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用c#读取ms word文档.我想要文档中的重复单词.我的目的是根据重复单词的发现对文档进行分类.我还需要对上传的文档进行标签匹配,以便我可以将与标签匹配的文档分组并放在同一组中.请帮我解决.

i am trying to read a ms word document in c#. i want the repeated words in the document.my aim is to categorize the document based on the findings of the repeated words. also i need to do label matching with the documents uploaded so that i can group the documents that are matching with the label and place under same group. please help me with a solution. thanks.

推荐答案

1)使用Microsoft.Office.Interop.Word命名空间打开Word文档.
2)阅读所有内容,并创建单词和出现次数的字典列表.
3)为了满足您的业务需求,需要做任何其他事情.
1) Open the word document using the Microsoft.Office.Interop.Word namespace.
2) Read all the content and create a dictionary list of words and occurance count.
3) Do whatever else you need to in order to satisfy your business requirements.


这篇关于如何在ms word文档中查找重复的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆