-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add _add_sentences dataset helper config
- Loading branch information
1 parent
76b0454
commit ddf4a88
Showing
1 changed file
with
10 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Note: This requires documents to be of type pytorch_ie.documents.TextDocumentWithLabeledPartitions, so it | ||
# may be necessary to convert the documents first, e.g. by using _convert_documents.yaml with a respective | ||
# document_type (e.g. pytorch_ie.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions). | ||
|
||
add_sentences: | ||
_processor_: pie_datasets.DatasetDict.map | ||
function: | ||
# see this for further information and options: | ||
# https://github.com/ArneBinder/pie-datasets/blob/main/src/pie_datasets/document/processing/nltk_sentence_splitter.py | ||
_target_: pie_modules.document.processing.NltkSentenceSplitter |