TextGrocery:一个基于LibLinear的简单的短文本分类工具

上传者: 42168230 | 上传时间: 2022-06-22 23:35:22 | 文件大小: 71KB | 文件类型: ZIP
C++
杂货店 基于LibLinear的简单高效的短文本分类工具 嵌入作为默认标记器,以支持中文标记化 其他语言: 表现 火车组合:48个带有32个标签的新闻标题 测试集:带有32个标签的16k新闻标题 与svm和朴素贝叶斯进行比较 分类器 准确性 时间成本 scikit学习(nb) 76.8% 134 scikit学习(svm) 76.9% 121 杂货店 79.6% 49 样例代码 >> > from tgrocery import Grocery # Create a grocery(don't forget to set a name) >> > grocery = Grocery ( 'sample' ) # Train from list >> > train_src = [ ( 'education' , 'Student debt to cost Brit

文件下载

资源详情

[{"title":"( 44 个子文件 71KB ) TextGrocery:一个基于LibLinear的简单的短文本分类工具","children":[{"title":"TextGrocery-master","children":[{"title":"MANIFEST.in <span style='color:#111;'> 75B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 167B </span>","children":null,"spread":false},{"title":"README.rst <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"tgrocery","children":[{"title":"classifier.py <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"learner","children":[{"title":"learner.py <span style='color:#111;'> 17.14KB </span>","children":null,"spread":false},{"title":"test.cpp <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"liblinear","children":[{"title":"linear.def <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"predict.c <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false},{"title":"tron.cpp <span style='color:#111;'> 5.21KB </span>","children":null,"spread":false},{"title":"linear.h <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"python","children":[{"title":"liblinear.py <span style='color:#111;'> 7.88KB </span>","children":null,"spread":false},{"title":"liblinearutil.py <span style='color:#111;'> 9.04KB </span>","children":null,"spread":false},{"title":"README <span style='color:#111;'> 10.29KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 32B </span>","children":null,"spread":false}],"spread":false},{"title":"README <span style='color:#111;'> 17.71KB </span>","children":null,"spread":false},{"title":"train.c <span style='color:#111;'> 9.02KB </span>","children":null,"spread":false},{"title":"heart_scale <span style='color:#111;'> 27.02KB </span>","children":null,"spread":false},{"title":"COPYRIGHT <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"linear.cpp <span style='color:#111;'> 54.96KB </span>","children":null,"spread":false},{"title":"tron.h <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 993B </span>","children":null,"spread":false},{"title":"blas","children":[{"title":"daxpy.c <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"blas.h <span style='color:#111;'> 798B </span>","children":null,"spread":false},{"title":"dnrm2.c <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"dscal.c <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 293B </span>","children":null,"spread":false},{"title":"ddot.c <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"blasp.h <span style='color:#111;'> 17.35KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"__init__.py <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"util.c <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 592B </span>","children":null,"spread":false}],"spread":true},{"title":"converter.py <span style='color:#111;'> 5.67KB </span>","children":null,"spread":false},{"title":"base.py <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"sample","children":[{"title":"test.py <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"custom_tokenize.py <span style='color:#111;'> 628B </span>","children":null,"spread":false},{"title":"classify.py <span style='color:#111;'> 865B </span>","children":null,"spread":false},{"title":"load.py <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":true},{"title":"README_CN.md <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"runtests.py <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 714B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 112B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明