Skip to content

Mywayking/XF2019_APP_Classify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

大数据应用分类标注挑战赛深度学习模型Baseline

两个模型随便使用。

比赛链接:

keras模型训练方式

使用bert提取特征,Bidirectional 训练模型,可以达到 74.39565。需要一定的内存。

pip install keras
pip install keras_bert

# 指定数据目录,
data_dir = './data/'
# 将bert预训练数据放到改目录
# https://storage.googleapis.com/bert_models/2018_11_03/chinese_L-12_H-768_A-12.zip
BERT_PRETRAINED_DIR = './chinese_L-12_H-768_A-12/'
# 运行
python3 xf_bert_v2.py

kears TextCNN 模型使用方式

  • 下载好数据存放/data文件夹下,创建data/xfyun文件夹
  • 数据预处理生成数据集python xunfei/pre_classify.py
  • 训练模型python xunfei_classify.py -d ./data/xfyun -n xunfei -m train
  • 预测模型python xunfei_classify.py -d ./data/xfyun -n xunfei -m predict

参考资料

@Galen20190717

About

讯飞大数据应用分类标注挑战赛深度学习模型Baseline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages