-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
testingCode that hasn't been tested (thoroughly)Code that hasn't been tested (thoroughly)
Description
This piece of code needs to be tested:
tagger-parser/data-scripts/json_to_conll.py
Lines 237 to 253 in 2e5256d
| if args.multi_mode: | |
| # WIP - not yet tested | |
| lineflag = False | |
| with open(args.pred_file, encoding="utf-8") as f: | |
| for line in f: | |
| lineflag = True | |
| j = json.loads(line) | |
| tokens = j["words"] | |
| tags = j["pos"] | |
| heads = j["predicted_heads"] | |
| heads = list(map(str, heads)) | |
| deps = j["predicted_dependencies"] | |
| parsercolumns2conllu(args.out, tokens, tags, heads, deps, filemode="a") | |
| if not lineflag: | |
| raise IOError( | |
| "Empty file" | |
| ) # we want to detect and subsequently delete empty files from the dataset. |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testingCode that hasn't been tested (thoroughly)Code that hasn't been tested (thoroughly)