词频 [英] Term Frequency

查看:116
本文介绍了词频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

兄弟,我需要一个c ++代码来计算给定文档的术语频率.术语频率代码应统计文档中的每个单词,并告诉每个单词重复多少次.你能帮我这个忙吗?请,我需要它,它很紧急.....谢谢你

Brothers, i needed a c++ code that counts the term frequency of a given document. This term frequency code should count each words in a document and tell how many times each word is repeated. Can u help me out with this. Please, i need it and it is urgent.....Thank u

推荐答案

没有人会只给你代码,而且,这仅仅是对您而不是其他人群来说很紧急!

Nobody will just give you the code, and also, it is only urgent for you and not the rest of the population!

您基本上想打开文档,为每个单词出现建立索引并填充其计数.

You basically want to open the document, and build an index of each word occurrence and populate its count.

亲自尝试一下,然后在遇到困难时回来,并提供您尝试过的内容的详细信息.

Have a go yourself, and then come back when you get stuck and provide specifics of what you have tried.


:-D

我想成为这个项目的成员
:-D
Hi there ,
I want to be member of this project


这篇关于词频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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