首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 标记文本并将其转换为实例

标记文本并将其转换为实例

  • 资源大小:17.41 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 转换 文本 实例 并将 标记

资 源 简 介

PyGrams converts text to n-grams. Conversion is a three step process. 1) Extract all possible n-grams. Run "form_candidates.py" to create a file containing all possible n-grams. 2) Filter possible n-grams. Run "filter_candidates.py" to find just the n-grams which appear sufficiently frequently in relation to the frequency of their components. 3) Convert documents to n-grams. Run "convert_docs.py" to convert documents into approved n-grams. Sample Input: We introduce a family of rings of symmetric functions depending on an infinite sequence of parameters. Sample Output: introduc famili ring symmetr_function depend infinit_sequenc paramet Additional documentation appears in the README file. Note that this software depends on the porter_stemmer.py module, which is available from http://tartarus.org/~martin/PorterStemmer/python.txt.

文 件 列 表

pygrams
COPYING.LESSER
README
COPYING
src
VIP VIP
0.161021s