-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Error Handling: Added try-except blocks to handle potential errors when loading stop words, reading files, and writing JSON. 2. Logging: Used the logging module to log errors instead of printing them, providing better control over log levels and outputs. 3. Type Annotations: Added type annotations to the bow_locator, build_graph, and get_unique_vocab_lookup methods for clarity. 4. Docstrings: Ensured that all methods have clear docstrings explaining their purpose and return types.
- Loading branch information
1 parent
efee6d7
commit a2edd18
Showing
1 changed file
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters