add the files about processing DUUIE data#5
Open
Bloodmaster06 wants to merge 1 commit intoAntNLP:masterfrom
Open
add the files about processing DUUIE data#5Bloodmaster06 wants to merge 1 commit intoAntNLP:masterfrom
Bloodmaster06 wants to merge 1 commit intoAntNLP:masterfrom
Conversation
ybwu
reviewed
Dec 4, 2022
| @@ -0,0 +1,12 @@ | |||
| plm_name="/mnt/data1/public/pretrain/mengzi-bert-base-fin" | |||
Collaborator
There was a problem hiding this comment.
- DUEE_FIN_LITE放到data/event 目录下
- 增加README.md, 说明整个过程,包括命令行参数怎么用(参考 data/entity-relation/README.md)
- 这里需要plm做tokenizer? 如果是,在README.md里增加说明
| # python ./transfer.py transfer DUEE_FIN_LITE/00-raw/dev.json DUEE_FIN_LITE/01-change-fields/dev.json | ||
| python ./transfer.py transfer DUEE_FIN_LITE/00-raw/test.json DUEE_FIN_LITE/01-change-fields/test.json | ||
|
|
||
| # python ./process.py process DUEE_FIN_LITE/01-change-fields/train.json DUEE_FIN_LITE/02-matrix/train.json ${plm_name} DUEE_FIN_LITE/ent_rel_file.json |
Collaborator
There was a problem hiding this comment.
ent_rel_file.json 这个文件放在在02-matrix目录下,命名为train.json, dev.json, test.json.
另外,如果要放转换好的文件,那么01, 02两个目录都放进来。也可以不放文件,只放脚本。
| @@ -0,0 +1,117 @@ | |||
| import json | |||
Collaborator
There was a problem hiding this comment.
这里能否直接用entity-relation/process.py?或者import过来?
| sublist_1 = full_list[:offset] | ||
| sublist_2 = full_list[offset:] | ||
| return sublist_1,sublist_2 | ||
| def transfer(input, output): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add the files about processing DUUIE data