-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added functionality for splitting sentences
- Loading branch information
1 parent
7e8bf11
commit be58cac
Showing
15 changed files
with
1,029 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
65 changes: 65 additions & 0 deletions
65
tests/test_dataset/sentence_splitting/_unused/quickgraph_sentence_splitting_after.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[ | ||
{ | ||
"original": "one three two", | ||
"tokens": ["one", "three", "two"], | ||
"document_index": 0, | ||
"entities": [ | ||
{ | ||
"id": "1", | ||
"start": 0, | ||
"end": 0, | ||
"label": "number" | ||
}, | ||
{ | ||
"id": "2", | ||
"start": 1, | ||
"end": 1, | ||
"label": "number" | ||
}, | ||
{ | ||
"id": "3", | ||
"start": 2, | ||
"end": 2, | ||
"label": "number" | ||
} | ||
], | ||
"relations": [ | ||
{ | ||
"source_id": "2", | ||
"target_id": "1", | ||
"label": "bigger_than" | ||
}, | ||
{ | ||
"source_id": "2", | ||
"target_id": "3", | ||
"label": "bigger_than" | ||
} | ||
] | ||
}, | ||
{ | ||
"original": "six two", | ||
"tokens": ["six", "two"], | ||
"document_index": 0, | ||
"entities": [ | ||
{ | ||
"id": "1", | ||
"start": 0, | ||
"end": 0, | ||
"label": "number" | ||
}, | ||
{ | ||
"id": "2", | ||
"start": 1, | ||
"end": 1, | ||
"label": "number" | ||
} | ||
], | ||
"relations": [ | ||
{ | ||
"source_id": "1", | ||
"target_id": "2", | ||
"label": "bigger_than" | ||
} | ||
] | ||
} | ||
] |
58 changes: 58 additions & 0 deletions
58
tests/test_dataset/sentence_splitting/sentence_splitting_after_spert.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[ | ||
{ | ||
"tokens": ["one", "three", "two"], | ||
"document_index": 0, | ||
"entities": [ | ||
{ | ||
"start": 0, | ||
"end": 1, | ||
"type": "number" | ||
}, | ||
{ | ||
"start": 1, | ||
"end": 2, | ||
"type": "number" | ||
}, | ||
{ | ||
"start": 2, | ||
"end": 3, | ||
"type": "number" | ||
} | ||
], | ||
"relations": [ | ||
{ | ||
"head": 1, | ||
"tail": 0, | ||
"type": "bigger_than" | ||
}, | ||
{ | ||
"head": 1, | ||
"tail": 2, | ||
"type": "bigger_than" | ||
} | ||
] | ||
}, | ||
{ | ||
"tokens": ["six", "two"], | ||
"document_index": 0, | ||
"entities": [ | ||
{ | ||
"start": 0, | ||
"end": 1, | ||
"type": "number" | ||
}, | ||
{ | ||
"start": 1, | ||
"end": 2, | ||
"type": "number" | ||
} | ||
], | ||
"relations": [ | ||
{ | ||
"head": 0, | ||
"tail": 1, | ||
"type": "bigger_than" | ||
} | ||
] | ||
} | ||
] |
Oops, something went wrong.