登录
首页 » 算法 » 词频统计C++

词频统计C++

于 2023-04-02 发布 文件大小:3.54 MB
0 153
下载积分: 2 下载次数: 1

代码说明:

给定一篇英文文本,要求提取其中所有的单词并计算其一元词频(某个单词出现的次数)和二元词频(两个连续单词出现的次数) 举例:I have an apple . And you have an apple , too . 输出: i--1,have--2,an--2,apple--2,and--2,you--1,too--1 an apple--2   

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 北京大学在线判断几个问题的解决代码
    pku online judge 的部分题解代码-the solution code of several problems of pku online judge
    2022-08-07 00:11:40下载
    积分:1
  • SM2、SM3、SM4说明及c语言代码
    实现国密算法的SM2、SM3、SM4,可以界面上测试算法的正确性,同时包含国密局公开的国密算法规范 SM2椭圆曲线公钥密码算法 SM3密码杂凑算法 适用于商用密码应用中的数字签名和验证、消息认证码的生成与验证以及随机数的生成,可满足多种密码应用的安全需求。 SMS4 密码算法  该算法的分组长度为128比特,密钥长度为128比特。加密算法与密钥扩展算法都采用32轮非线性迭代结构。解密算法与加密算法的结构相同,只是轮密钥的使用顺序相反,解密轮密钥是加密轮密钥的逆序。
    2022-10-18 23:30:03下载
    积分:1
  • 温度场模拟程序,matlab编写
    温度场模拟程序,matlab编写-temperature simulation program, the preparation of Matlab
    2023-03-20 02:35:03下载
    积分:1
  • two forks of trees were preorder
    二叉排序树的中序遍历-two forks of trees were preorder
    2023-01-22 11:40:04下载
    积分:1
  • 机械原理课程设计,牛头刨床的动力学分析,及动画演示。
    机械原理课程设计,牛头刨床的动力学分析,及动画演示。-mechanical principles to the curriculum design, Shaper of the kinetic analysis, and animation demo.
    2022-04-25 11:15:08下载
    积分:1
  • 遗传
    应用背景用于智能计算,分析调度等。最典型的就是解决tsp问题和背包问题。算法已经很成熟了,请大家放心使用,此代码只用于学习,不能用于商业用途,如果要用于商业用途请于作者联系。谢谢使用。关键技术 遗传算法模拟生物进化论来实现算法的优化。如,算法要随机的产生种群,然后种群就会像生物一样繁衍,它要进行遗传,自然选择,基因突变等方式产生更优秀的下一代种群。为了防止算法陷入局部最优解,所以算法要进行变异操作。详情可以联系我。希望大家可以多多交流。
    2023-03-17 00:10:04下载
    积分:1
  • 非常好的插值程序
    非常好的插值程序-very good interpolation procedures
    2023-02-02 07:50:04下载
    积分:1
  • 实现有限元软件ansys输出单元编号的按高程随机选取
    实现有限元软件ansys输出单元编号的按高程随机选取-Ansys finite element software to achieve the output unit numbers randomly selected by the elevation
    2023-02-26 06:00:04下载
    积分:1
  • massive mimo THP algrorithm
    应用背景On the Design of ZF and MMSE Tomlinson-Harashima Precoding in Multiuser MIMO Amplify-and-Forward Relay System,it is main described the mimo system in the multi-user  scenario.the main precoding algrithm is combined the zf precoding and the MMSE precoding.关键技术we design a zero-forcing (ZF) Tomlinson-Harashima precoding (THP) and a minimum mean square error (MMSE) THP for multiuser MIMO relay system with direct link. Based on these precoding structures, we propose the optimal combining weights of the ZF THP and the MMSE THP in half duplex relay system, and the sub-optimal weights of MMSE THP to reduce feedback channel state information(CSI). Through the Monte Carlo simulation, we verify that the optimal weights combining method outperforms the constant weights combining method. In addition, we confirm that the performance of the sub-optimal weights combining method is&
    2023-02-25 18:10:03下载
    积分:1
  • 数学公式计器,和大家切磋!希望高手帮助改进功能,最好能够提供变量表达式计,不是单纯的数字表达式计,有兴趣的朋友可以跟我联系!...
    数学公式计算器,和大家切磋!希望高手帮助改进功能,最好能够提供变量表达式计算,不是单纯的数字表达式计算,有兴趣的朋友可以跟我联系!-mathematical formula calculator, and to discuss the! Experts hope to help improve function, the best solution is to provide variable expression, not simply the number of formulas, the friends are interested can contact me!
    2022-01-31 10:11:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载