Skip to content

Commit 2455f38

Browse files
fix imports
1 parent 231e310 commit 2455f38

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/main/python/systemds/scuro/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
OverlappingSplitIndices,
117117
)
118118
from systemds.scuro.representations.elmo import ELMoRepresentation
119-
from systemds.scuro.representations.mlp_sampling import MLPSampling
119+
120120

121121
__all__ = [
122122
"BaseLoader",
@@ -200,5 +200,6 @@
200200
"SentenceBoundarySplit",
201201
"OverlappingSplit",
202202
"ELMoRepresentation",
203-
"MLPSampling",
203+
"SentenceBoundarySplitIndices",
204+
"OverlappingSplitIndices",
204205
]

src/main/python/systemds/scuro/drsearch/unimodal_optimizer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ def _get_not_self_contained_reps(self, modality_type):
9090
def _get_context_operators(self, modality_type):
9191
return self.operator_registry.get_context_operators(modality_type)
9292

93-
9493
def store_results(self, file_name=None):
9594
if file_name is None:
9695
import time

src/main/python/systemds/scuro/representations/text_context_with_indices.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def _extract_text(instance: Any) -> str:
7575
return text
7676

7777

78-
@register_context_operator(ModalityType.TEXT)
79-
class WordCountSplit(Context):
78+
# @register_context_operator(ModalityType.TEXT)
79+
class WordCountSplitIndices(Context):
8080
"""
8181
Splits text after a fixed number of words.
8282
@@ -135,7 +135,7 @@ def execute(self, modality):
135135

136136

137137
@register_context_operator(ModalityType.TEXT)
138-
class SentenceBoundarySplit(Context):
138+
class SentenceBoundarySplitIndices(Context):
139139
"""
140140
Splits text at sentence boundaries while respecting maximum word count.
141141
@@ -231,7 +231,7 @@ def execute(self, modality):
231231

232232

233233
@register_context_operator(ModalityType.TEXT)
234-
class OverlappingSplit(Context):
234+
class OverlappingSplitIndices(Context):
235235
"""
236236
Splits text with overlapping chunks using a sliding window approach.
237237

0 commit comments

Comments
 (0)