txt_class_template:在Flask上部署的简单文本分类模板

上传者: 42133969 | 上传时间: 2022-04-16 20:02:53 | 文件大小: 1.31MB | 文件类型: ZIP
文本的二进制分类 这是将短信分类为垃圾邮件或非垃圾邮件的示例预热。 这是一个通用实现,可以用作基准和进一步的开发。 该实现包括对文本和Naive Bayes分类器的一些粗略清理。 还可以使用Flask应用程序进行部署。 如何开始 创建环境 我使用conda在Unix环境中创建环境。 $ conda init $ conda create -n ENV_NAME python=3.8.5 $ conda activate ENV_NAME 安装要求 需求已经放在单独的requirements.txt文件中。 要安装它们,请运行以下命令: $ pip install -r requirements.txt 要下载英语的spacy实用程序,请执行以下操作: $ python -m spacy download en_core_web_sm 跑步 要分别训练和创建模型,您应该转到src :

文件下载

资源详情

[{"title":"( 37 个子文件 1.31MB ) txt_class_template:在Flask上部署的简单文本分类模板","children":[{"title":"txt_class_template-master","children":[{"title":"requirements.txt <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"preprocessing.py <span style='color:#111;'> 4.99KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"create_folds.py <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"config.py <span style='color:#111;'> 109B </span>","children":null,"spread":false},{"title":"__pycache__","children":[{"title":"utils.cpython-38.pyc <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"config.cpython-38.pyc <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"preprocessing.cpython-38.pyc <span style='color:#111;'> 4.81KB </span>","children":null,"spread":false}],"spread":true},{"title":"train.py <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"figs","children":[{"title":"home.png <span style='color:#111;'> 14.90KB </span>","children":null,"spread":false},{"title":"result.png <span style='color:#111;'> 7.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"models","children":[{"title":"model_nb_1_count.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_3_tfidf.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_4_count.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_0_tfidf.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"vectorizer_nb_count.pkl <span style='color:#111;'> 67.48KB </span>","children":null,"spread":false},{"title":"model_nb_2_count.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_3_count.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_1_tfidf.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_0_count.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_2_tfidf.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"model_nb_4_tfidf.pkl <span style='color:#111;'> 185.48KB </span>","children":null,"spread":false},{"title":"vectorizer_nb_tfidf.pkl <span style='color:#111;'> 160.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"clasifier_app","children":[{"title":"spam.csv <span style='color:#111;'> 491.86KB </span>","children":null,"spread":false},{"title":"templates","children":[{"title":"layout.html <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"result.html <span style='color:#111;'> 460B </span>","children":null,"spread":false},{"title":"home.html <span style='color:#111;'> 500B </span>","children":null,"spread":false}],"spread":true},{"title":"static","children":[{"title":"style.css <span style='color:#111;'> 858B </span>","children":null,"spread":false}],"spread":true},{"title":"__pycache__","children":[{"title":"forms.cpython-38.pyc <span style='color:#111;'> 625B </span>","children":null,"spread":false}],"spread":true},{"title":"app.py <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"notebooks","children":[{"title":"exploration.ipynb <span style='color:#111;'> 53.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false},{"title":".vscode","children":[{"title":"settings.json <span style='color:#111;'> 86B </span>","children":null,"spread":false}],"spread":true},{"title":"input","children":[{"title":"spam.csv <span style='color:#111;'> 491.86KB </span>","children":null,"spread":false},{"title":"spams_kfolds.csv <span style='color:#111;'> 470.57KB </span>","children":null,"spread":false},{"title":"train.csv <span style='color:#111;'> 229.05KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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