Skip to content

Commit

Permalink
Update padaos.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Oct 16, 2024
1 parent 56abf91 commit 0f4b21f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ovos_padatious/padaos.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re
from threading import Lock
from typing import Dict, List, Optional, Union
from typing import Dict, List, Optional, Union, Iterator
from ovos_utils.log import LOG


Expand Down Expand Up @@ -207,8 +207,6 @@ def _compile(self) -> None:
}
self.must_compile = False

from typing import Dict, List, Optional, Union, Iterator

def _calc_entities(self, query: str, regexes: List[re.Pattern]) -> Iterator[Dict[str, str]]:
"""
Calculates entities from a given query using the provided regex patterns.
Expand All @@ -228,8 +226,6 @@ def _calc_entities(self, query: str, regexes: List[re.Pattern]) -> Iterator[Dict
for k, v in match.groupdict().items() if v
}

from typing import Dict, List, Optional, Union, Iterator

def calc_intents(self, query: str) -> Iterator[Dict[str, Union[str, Dict[str, str]]]]:
"""
Calculates intents for a given query.
Expand Down

0 comments on commit 0f4b21f

Please sign in to comment.