You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
660 B
44 lines
660 B
2 weeks ago
|
项目目录
|
||
|
|
||
|
```markdown
|
||
|
resume_parser/
|
||
|
│
|
||
|
├── data/
|
||
|
│ ├── train.json # 训练数据
|
||
|
│ ├── val.json # 验证数据
|
||
|
│
|
||
|
├── models/
|
||
|
│ ├── resume_ner_model/ # 保存训练好的模型
|
||
|
│
|
||
|
├── scripts/
|
||
|
│ ├── train.py # 训练脚本
|
||
|
│ ├── predict.py # 预测脚本
|
||
|
│
|
||
|
├── requirements.txt # 依赖文件
|
||
|
├── README.md # 项目说明
|
||
|
|
||
|
|
||
|
```
|
||
|
|
||
|
## 操作:
|
||
|
|
||
|
### 安装依赖:
|
||
|
```shell
|
||
|
pip install -r requirements.txt
|
||
|
```
|
||
|
|
||
|
### 训练模型
|
||
|
|
||
|
```shell
|
||
|
python scripts/train.py
|
||
|
```
|
||
|
|
||
|
### 使用模型解析文本
|
||
|
```shell
|
||
|
python scripts/predict.py
|
||
|
```
|
||
|
|
||
|
保存模型:
|
||
|
|
||
|
|