Skip to content

Commit

Permalink
#491 and #492 done; #376 refactoring -- removed create_pattern and …
Browse files Browse the repository at this point in the history
…`convert_sample_id_to_opinion_id`.
  • Loading branch information
nicolay-r committed Jul 10, 2023
1 parent b3e62ba commit a1eb5b4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 374 deletions.
11 changes: 0 additions & 11 deletions arekit/common/data/row_ids/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,4 @@ def create_opinion_id(text_opinions_linkage, index_in_linked):
def create_sample_id(linked_opinions, index_in_linked, label_scaler):
raise NotImplementedError()

@staticmethod
def create_pattern(id_value, p_type):
assert(isinstance(id_value, int))
assert(isinstance(p_type, str))
return p_type.format(id_value)

# endregion

@staticmethod
def convert_sample_id_to_opinion_id(sample_id):
assert(isinstance(sample_id, str))
return sample_id[:sample_id.index(BaseIDProvider.INDEX[0])] + BaseIDProvider.INDEX.format(0)
5 changes: 0 additions & 5 deletions arekit/contrib/utils/data/storages/pandas_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,6 @@ def iter_column_values(self, column_name, dtype=None):
def find_by_value(self, column_name, value):
return self.__filter(column_name=column_name, value=value)

def find_first_by_value(self, column_name, value):
# TODO. Return new storage. (Encapsulation)
rows = self.__filter(column_name=column_name, value=value)
return rows.iloc[0]

def init_empty(self, columns_provider):
cols_with_types = columns_provider.get_columns_list_with_types()
self._df = self.__create_empty(cols_with_types)
Expand Down
Empty file.
Empty file.
56 changes: 0 additions & 56 deletions arekit/contrib/utils/data/views/linkages/base.py

This file was deleted.

50 changes: 0 additions & 50 deletions arekit/contrib/utils/data/views/linkages/multilabel.py

This file was deleted.

24 changes: 0 additions & 24 deletions arekit/contrib/utils/data/views/linkages/utils.py

This file was deleted.

14 changes: 0 additions & 14 deletions arekit/contrib/utils/data/views/opinions.py

This file was deleted.

104 changes: 0 additions & 104 deletions arekit/contrib/utils/pipelines/items/to_output.py

This file was deleted.

110 changes: 0 additions & 110 deletions tests/contrib/utils/test_output.py

This file was deleted.

0 comments on commit a1eb5b4

Please sign in to comment.