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

词频统计C++

于 2023-04-02 发布 文件大小:3.54 MB
0 166
下载积分: 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 个回复

  • MD5加密
    MD5以512位分组来处理输入的信息,且每一分组又被划分为16个32位子分组,经过了一系列的处理后,算法的输出由四个32位分组组成,将这四个32位分组级联后将生成一个128位散列值。MD5中有四个32位被称作链接变量(Chaining Variable)的整数参数,他们分别为:A=0x67452301,B=0xefcdab89,C=0x98badcfe,D=0x10325476。当设置好这四个链接变量后,就开始进入算法的四轮循环运算。循环的次数是信息中512位信息分组的数目。
    2022-03-21 16:38:05下载
    积分:1
  • 一维伽辽金型无网格MATLAB程序 无网格方采用基于点的近似,可以彻底或部分地消除网格,不需要网格的初始划分和重构,不仅可以保证计的精度,而且可以大大...
    一维伽辽金型无网格法MATLAB程序 无网格方法采用基于点的近似,可以彻底或部分地消除网格,不需要网格的初始划分和重构,不仅可以保证计算的精度,而且可以大大减小计算的难度。然而,由于目前的无网格近似一般没有解析表达式,且大都基于伽辽金原理,因此计算量很大,要超出传统的有限元法;另外,无网格近似大都是拟合,因此对于位移边界的处理比较困难,多采用拉格朗日乘子法处理。-1维伽Galerkin-type meshless method MATLAB procedures meshless method based on the point of approximation, can be completely or partially eliminate the grid, the grid does not require the initial division and reconstruction, not only can guarantee the accuracy of the calculation, and can greatly reduce the difficulty of calculation. However, due to the current meshless approximation there is no analytic expression in general, and mostly based on the Galerkin principle, the calculation of a large volume, it is necessary to go beyond the traditional finite element method In addition, the meshless approximation are fitted, so displacement of the border more difficult to deal with, the use of Lagrange law.
    2022-06-18 16:46:39下载
    积分:1
  • A source code of function which convert image from RGB scale
    A source code of function which convert image from RGB scale - space into normalized RGB scale - space, using Visual C++ 2008 and OpenCV library. Normalized RGB scale - space can be used in color detection techniques, because this is independent of illuminance change.
    2022-12-07 16:05:03下载
    积分:1
  • 自己做的,像EXCEL中的数值递增,相当于26进制
    自己做的,像EXCEL中的数值递增,相当于26进制-do for myself, like Excel numerical increase, equivalent to 26 band
    2022-11-05 11:55:03下载
    积分:1
  • Delphi中的很有用的一组控件的源代码.
    Delphi中的很有用的一组控件的源代码.-Delphi"s very useful in a group control the source code.
    2022-03-03 16:38:26下载
    积分:1
  • two forks of trees were preorder
    二叉排序树的中序遍历-two forks of trees were preorder
    2023-01-22 11:40:04下载
    积分:1
  • 一个时间显示,并且在按键的同时显示按键的扫描码的程序。...
    一个时间显示,并且在按键的同时显示按键的扫描码的程序。-a time, and the keys at the same time show the button code scanning procedures.
    2023-05-15 14:55:02下载
    积分:1
  • 独立钻石棋问题描述: 有一棋盘, 上有44个钻石棋子,有一位置空缺, 棋盘初始状态如下:    111    111    111 111111111 1111...
    独立钻石棋问题描述: 有一棋盘, 上有44个钻石棋子,有一位置空缺, 棋盘初始状态如下:    111    111    111 111111111 111101111 111111111    111    111    111 其中,0表示没有放置棋子, 1表示放置。 规定走法如下: a. 任一棋子可越过一相邻棋子(紧相邻)跳到一空缺位置, 并吃掉越过的棋子(从棋盘移处) 如, 走一步后棋盘状态:    111    111    111 111111111 111110011 111111111    111    111    111 b. 最后只留下一个棋子在棋盘上, 并且位置在正中央。 要求: 用程序得出正确走法。 输入: 无 输出: 每一步移动后的棋盘状态, 格式如上。-independent diamond chess Problem description : a chessboard, there are 44 pieces of diamonds, a position vacant chessboard initial state as follows : 111111111 111101111 111111111 which, 0 no place pawn, a place said. Provisions in law are as follows : a. as a pawn to be crossed an adjacent piece (bear adjacent) jumped to a vacant position, and eaten across the pawn (shift from the chessboard) If, after the chessboard go one step further state : 111111111 111111111 111110011 111111111 111111111 b. leaving only a game son on the chessboard, and in the middle position. Requirements : getting the correct procedures in law. Input : None output : e
    2023-01-15 08:55:03下载
    积分:1
  • 面阵中的二维角度估计unitary-esprit
    资源描述本文基于面阵提出一种UNITARY-ESPRIT算法解决非相干信源的二维DOA估计问题,利用酉变换把复值导向矩阵和复协方差矩阵转换为实值计算,因此特征值分解或者奇异值分解仅在实数域下进行,大大降低运算复杂度,而且估计性能优于传统的ESPRIT算法。
    2022-08-19 05:30:42下载
    积分:1
  • numerical algorithm dichotomy
    数值算法 二分法-numerical algorithm dichotomy
    2022-09-26 13:55:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载