• 回答数

    5

  • 浏览数

    279

叶丽美11
首页 > 期刊论文 > 查询一篇英文文章不重复单词数

5个回答 默认排序
  • 默认排序
  • 按时间排序

华蓥山5

已采纳

前几天我用trie树 写了一个,你也可以试试啊

156 评论

楠辉之恋

分两个步骤来

246 评论

江河装饰

其实,Word里有查找这个功能,如果你想要查的词不是很多的话可以直接使用word的这个功能,然后记一下出现过几次就好了,要是想要知道里面出现的所有单词是哪些,就比较难了。

146 评论

世界前八强吃货

对不起,我来晚啦。

我用过一个软件。

功能如下:1)英语单词文本中单词个数统计,标注音标和翻译,并支持导出为Excel文件。2)支持点击统计的单词,查看单词在文本中的分布。用背景色标注显示。3)支持自己添加过滤词。4)支持对比两个Excel文件第一列单词的异同,并导出对比情况,方便查看两分文本单词的差异。5)对于英语单词进行词形还原处理。避免went和gone统计程不同的单词。

提取码: k6ei

116 评论

熊猫大王

/* 本程序由Turbo C2.0编译通过。英文文章请命名为english.txt并放在Turbo C所在目录下。运行结果以文件方式输出,输出文件result.txt也在Turbo C所在目录下。 word是不同的单词; count是该单词在文章中出现的次数; percent是文章中各单词出现的频率。 */ #include "stdio.h" main() { FILE *fp,*result; char ch='\0'; char word[1000][20]; /* 最多存1000个不同单词,每个单词在20个字符内。 */ int count_word[1000]={0}; /* 每个单词对应个数 */ int i=0,j=0,k=0,flag=2,total=0; float percent; /* 每个单词出现频率 */ clrscr(); if(((fp=fopen("english.txt","r"))&&(result=fopen("result.txt","w")))==NULL) { printf("Can't open file\n"); printf("Press any key to exit..."); getch(); exit(0); } printf("\nPlease wait..."); while(!feof(fp)) { ch=fgetc(fp); if(ch>='a'&&ch<='z'||ch>='A'&&ch<='Z') { if(ch>='A'&&ch<='Z') ch+=32; flag=0; word[i][j]=ch; j++; } else flag++; if(flag==1) { total++; word[i][j]='\0'; count_word[i]++; for(k=0;k #include #include // for exit() #include #include using namespace std; template void writeList(const list& alist, const string& separator); // maintains a word and its frequency of occurrence class wordFreq { public: // initialize word and set freq to 1 wordFreq(const string& str): word(str), freq(1) {} // add 1 to the frequency void increment() { freq++; } // equality operator compares the word for the objects friend bool operator== (const wordFreq& lhs, const wordFreq& rhs) { return lhs.word == rhs.word; } // less than operator compares the word for the objects friend bool operator< (const wordFreq& lhs, const wordFreq& rhs) { return lhs.word < rhs.word; } // output an object in the format: word (freq) friend ostream& operator<< (ostream& ostr, const wordFreq& w) { ostr << w.word << " (" << w.freq << ')'; return ostr; } private: string word; // number of times word found int freq; }; template list::iterator seqSearch(list::iterator first, list::iterator last, const T& target); int main() { ifstream fin; // words read from file and inserted into wf list wf; // use for seqSearch() and displaying the list list::iterator iter; // prompt for the name of the file string fileName, word; cout << "Enter the name of the file containing the words: "; cin >> fileName; // error checking fin.open(fileName.c_str()); if (!fin) { cerr << "Cannot open " << fileName << endl; exit(1); } // read a word until end-of-file while (fin >> word) { // declare a wordFreq object with frequency 1 wordFreq obj(word); // search for word in the list wf iter = seqSearch (wf.begin(), wf.end(), obj); // did we locate the word? if (iter != wf.end()) // yes. increment the word frequency (*iter).increment(); else // word is new. insert obj into the list wf.push_back(obj); } // list member function sort() orders the list wf.sort(); // output each object on a separate line cout << endl; writeList(wf, "\n"); system("pause"); return 0; } template list::iterator seqSearch(list::iterator first, list::iterator last, const T& target) { // start at location first list::iterator iter = first; // compare list elements with item until either // we arrive at last or locate item while(iter != last && !(*iter == target)) iter++; // iter either points at item or is last return iter; } template void writeList(const list& alist, const string& separator = " ") { list::const_iterator iter; for (iter = alist.begin(); iter != alist.end(); iter++) cout << *iter << separator; cout << endl; }

99 评论

相关问答

  • 怎么查一篇文章的重复率

    word论文查重的方法如下: 准备材料:word2019、电脑 1、在屏幕的空白处右击鼠标,就会出现“新建”,看到后点击”新建“。右边出现相应选项。 2、点击D

    左左颜色 2人参与回答 2023-12-07
  • 英文论文查重几个词一样算重复

    一般来说,Turnitin等查重软件会将论文中的文本进行分段和比对,然后计算出每个文本段落的相似度,最终将所有文本段落的相似度加权计算得到论文的总相似度和重复率

    幸福人生168 5人参与回答 2023-12-10
  • 一篇文章重复写两遍查重能不能过

    一、多次查重会影响最终的结果吗?1、大家都很清楚,学校最终的检测结果和我们查重的次数没有直接关系。换句话说,多次查重不会影响论文检测结果,如果在期间对论文进行了

    meisha2345 5人参与回答 2023-12-11
  • 论文查重单篇重复数是什意思

    论文查重,也称之为论文检测,也就是学术不端检测,直接目的就是监督学术不端行为,规范学术风气,禁止论文抄袭剽窃等行为,而对论文进行抄袭率检测的一种方式,现在市面上

    可乐你不乖 9人参与回答 2023-12-08
  • 怎么查一篇文章的重复率高低

    论文查重可以根据需求选择自己需要的查重系统,比如初稿用一些免费的查重软件,定稿了再用和学校一样的查重系统!论文查重的目的是查出抄袭内容,进行修改论文,论文降重更

    shally9073 6人参与回答 2023-12-07