Skip to content

Commit

Permalink
remove Item unuseful model
Browse files Browse the repository at this point in the history
  • Loading branch information
DanteOnline committed Nov 10, 2023
1 parent 03876bb commit 07938ce
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
1 change: 0 additions & 1 deletion find_similar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
"""
from .core import find_similar
from .calc_functions import calc_cosine_similarity_opt, get_tokens, TokenText
from .calc_models import Item
18 changes: 0 additions & 18 deletions find_similar/calc_models.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
"""
Models for calculation and compare
"""
from typing import Optional
from pydantic import BaseModel # pylint: disable=no-name-in-module


class Item(BaseModel):
"""
Item
"""
id: Optional[int] # pylint: disable=invalid-name
label: str
part_number: str
id_shop: int
id_base_item: Optional[int]
cos: Optional[float] = 0
token_set: Optional[set] = {}

def __eq__(self, other):
return self.id == other.id_base_item


class TokenizeException(Exception):
Expand Down
33 changes: 0 additions & 33 deletions testing/test_algorithm/test_calc_models.py

This file was deleted.

0 comments on commit 07938ce

Please sign in to comment.