diff --git a/beaky-backend/src/beaky/image_classifier/classifier.py b/beaky-backend/src/beaky/image_classifier/classifier.py index 099760f..5defeab 100644 --- a/beaky-backend/src/beaky/image_classifier/classifier.py +++ b/beaky-backend/src/beaky/image_classifier/classifier.py @@ -148,11 +148,11 @@ def classify(text: str) -> list[Bet]: in_block = False # START trigger: Looks for 'dnes', 'zítra', or 'DD.MM.' - date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera)\b)", re.IGNORECASE) - + # date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera)\b)", re.IGNORECASE) + date_start_pattern = re.compile(r"(\d{1,2}\.\s*\d{1,2}\.|\b(dnes|zítra|zitra|včera|vcera))", re.IGNORECASE) # END trigger: Looks for standard Fortuna sport prefixes - sport_end_pattern = re.compile(r"^(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) - + # sport_end_pattern = re.compile(r"^(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) + sport_end_pattern = re.compile(r"(Fotbal|Hokej|Tenis|Basketbal|Florbal|Volejbal|E-sport|Šipky)\s*/", re.IGNORECASE) for ln in lines: logger.debug("Processing line: '%s'", ln) is_start = date_start_pattern.search(ln)