Skip to content

Commit 995db89

Browse files
authored
Merge pull request #1 from BruinGrowly/fix-harmonizer-bug-and-add-gitignore
Fixed a bug in the `VocabularyManager` that caused an `AttributeError…
2 parents 356d344 + 5e9acec commit 995db89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__pycache__/

src/divine_invitation_engine_V2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,11 @@ def analyze_text(self, text: str) -> Tuple[Coordinates, int]:
193193
self._word_cache[cache_key] = result
194194
return result
195195

196+
@property
197+
def all_keywords(self) -> Set[str]:
198+
"""Returns all unique keywords from the vocabulary."""
199+
return set(self._keyword_map.keys())
200+
196201
@staticmethod
197202
def get_distance(c1: Coordinates, c2: Coordinates) -> float:
198203
"""Optimized Euclidean distance calculation"""

0 commit comments

Comments
 (0)