原项目地址:https://github.com/JansonKong/spam_filtering
使用了 textdetox/xlmr-large-toxicity-classifier-v2 模型对原项目重新进行毒性文本分类。
raw_data 目录为原项目的原始数据,processed_data 目录下为使用模型分类后的结果。
processed_data/normal/output0 为 raw_data/normal/0.txt 分类后的结果,processed_data/normal/output1 为 raw_data/normal/1.txt 分类后的结果,以此类推。
src/detect_toxic.py 是一个使用模型的简单示例脚本,运行该脚本可以对 raw_data 目录下的文本进行分类。
Python
100.0%
原项目地址:https://github.com/JansonKong/spam_filtering
使用了 textdetox/xlmr-large-toxicity-classifier-v2 模型对原项目重新进行毒性文本分类。
raw_data 目录为原项目的原始数据,processed_data 目录下为使用模型分类后的结果。
processed_data/normal/output0 为 raw_data/normal/0.txt 分类后的结果,processed_data/normal/output1 为 raw_data/normal/1.txt 分类后的结果,以此类推。
src/detect_toxic.py 是一个使用模型的简单示例脚本,运行该脚本可以对 raw_data 目录下的文本进行分类。
Python
100.0%