Commit
·
312df95
1
Parent(s):
c66e4e5
rename converter method
Browse files- conll2012_ontonotesv5.py +2 -2
conll2012_ontonotesv5.py
CHANGED
@@ -229,7 +229,7 @@ def example_to_document(
|
|
229 |
return doc
|
230 |
|
231 |
|
232 |
-
def
|
233 |
doc: Conll2012OntonotesV5Document,
|
234 |
token_separator: str = " ",
|
235 |
) -> TextDocumentWithLabeledEntitiesAndLabeledPartitions:
|
@@ -294,7 +294,7 @@ class Conll2012Ontonotesv5(pytorch_ie.data.builder.GeneratorBasedBuilder):
|
|
294 |
DOCUMENT_TYPE = Conll2012OntonotesV5Document
|
295 |
|
296 |
DOCUMENT_CONVERTERS = {
|
297 |
-
TextDocumentWithLabeledEntitiesAndLabeledPartitions:
|
298 |
}
|
299 |
|
300 |
BASE_DATASET_PATH = "DFKI-SLT/conll2012_ontonotesv5"
|
|
|
229 |
return doc
|
230 |
|
231 |
|
232 |
+
def convert_to_text_document_with_labeled_entities_and_labeled_partitions(
|
233 |
doc: Conll2012OntonotesV5Document,
|
234 |
token_separator: str = " ",
|
235 |
) -> TextDocumentWithLabeledEntitiesAndLabeledPartitions:
|
|
|
294 |
DOCUMENT_TYPE = Conll2012OntonotesV5Document
|
295 |
|
296 |
DOCUMENT_CONVERTERS = {
|
297 |
+
TextDocumentWithLabeledEntitiesAndLabeledPartitions: convert_to_text_document_with_labeled_entities_and_labeled_partitions
|
298 |
}
|
299 |
|
300 |
BASE_DATASET_PATH = "DFKI-SLT/conll2012_ontonotesv5"
|