Browse Source

增加训练模型代码

master
Viviman 2 weeks ago
parent
commit
9697ed64a2
  1. 0
      .gitignore
  2. 116
      data/train.json
  3. 0
      data/val.json
  4. 0
      main.py
  5. 0
      models/resume_ner_model/.gitkeep
  6. 0
      requirements.txt
  7. 0
      scripts/predict.py
  8. 0
      scripts/train.py
  9. 0
      说明.md

0
.gitignore

116
data/train.json

@ -15,7 +15,121 @@
{"start": 0, "end": 7, "label": "TIME"}, {"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"}, {"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 28, "label": "ORG"}, {"start": 18, "end": 28, "label": "ORG"},
{"start": 29, "end": 33, "label": "ORG"} {"start": 29, "end": 33, "label": "DEPT"}
]
},
{
"text": "2021.04-- 枣庄市生态环境保护综合执法支队滕州市生态环境保护综合执法大队一级行政执法员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 49, "label": "ORG"},
{"start": 29, "end": 33, "label": "DEPT"}
]
},
{
"text": "2001.09--2005.07 佳木斯大学中文系汉语言文学专业学生",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 22, "label": "ORG"},
{"start": 23, "end": 26, "label": "DEPT"},
{"start": 27, "end": 34, "label": "MAJOR"}
]
},
{
"text": "2005.07--2006.07 黑龙江省大庆市工商行政管理局机关党委试用期人员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 34, "label": "ORG"},
{"start": 35, "end": 39, "label": "DEPT"}
]
},
{
"text": "2006.07--2006.11 黑龙江省大庆市工商行政管理局机关党委科员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 34, "label": "ORG"},
{"start": 35, "end": 39, "label": "DEPT"},
{"start": 40, "end": 42, "label": "TITLE"}
]
},
{
"text": "2006.11--2007.06 黑龙江省大庆市工商行政管理局工业品批发市场管理所科员(挂职锻炼)",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 34, "label": "ORG"},
{"start": 35, "end": 50, "label": "DEPT"},
{"start": 51, "end": 53, "label": "TITLE"}
]
},
{
"text": "2007.06--2015.08 黑龙江省大庆市工商行政管理局机关党委科员(其间:2009.03--2011.06在黑龙江大学公共管理专业在职研究生学习,获公共管理硕士学位)",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 34, "label": "ORG"},
{"start": 35, "end": 39, "label": "DEPT"},
{"start": 40, "end": 42, "label": "TITLE"},
{"start": 45, "end": 52, "label": "TIME"},
{"start": 54, "end": 61, "label": "TIME"},
{"start": 62, "end": 66, "label": "SCHOOL"},
{"start": 67, "end": 75, "label": "MAJOR"},
{"start": 87, "end": 95, "label": "DEGREE"}
]
},
{
"text": "2015.08--2017.10 黑龙江省大庆市市场监督管理局机关党委科员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 34, "label": "ORG"},
{"start": 35, "end": 39, "label": "DEPT"},
{"start": 40, "end": 42, "label": "TITLE"}
]
},
{
"text": "2017.10--2017.12 中共黑龙江省大庆市直属机关工作委员会办公室科员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 38, "label": "ORG"},
{"start": 39, "end": 42, "label": "DEPT"},
{"start": 43, "end": 45, "label": "TITLE"}
]
},
{
"text": "2017.12--2020.05 中共黑龙江省大庆市直属机关工作委员会工会女工部部长(副科级)",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 38, "label": "ORG"},
{"start": 39, "end": 47, "label": "DEPT"},
{"start": 48, "end": 50, "label": "TITLE"}
]
},
{
"text": "2020.05--2022.07 中共黑龙江省大庆市直属机关工作委员会办公室主任",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 38, "label": "ORG"},
{"start": 39, "end": 42, "label": "DEPT"},
{"start": 43, "end": 47, "label": "TITLE"}
]
},
{
"text": "2022.07--2023.01 中共黑龙江省大庆市直属机关工作委员会办公室主任、一级主任科员",
"labels": [
{"start": 0, "end": 7, "label": "TIME"},
{"start": 9, "end": 16, "label": "TIME"},
{"start": 18, "end": 38, "label": "ORG"},
{"start": 39, "end": 42, "label": "DEPT"},
{"start": 43, "end": 47, "label": "TITLE"},
{"start": 48, "end": 56, "label": "TITLE"}
] ]
} }
] ]

0
data/val.json

0
main.py

0
models/resume_ner_model/.gitkeep

0
requirements.txt

0
scripts/predict.py

0
scripts/train.py

0
说明.md

Loading…
Cancel
Save