Skip to content

Commit

Permalink
Merge pull request #105 from OpenPecha/remove_loading_trie_message
Browse files Browse the repository at this point in the history
Remove unnecessary print messages
  • Loading branch information
mikkokotila committed Jul 29, 2023
2 parents 90bf27e + d654ea3 commit ea8a8ef
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions botok/tries/trie.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def load_or_build_trie(self, build=False):
self.tmp_inflected = dict()

def _load_trie(self):
print("Loading Trie...", end=" ", flush=True)
start = time.time()
with self.pickled_file.open("rb") as f:
self.head = pickle.load(f)
version = self.head.data["_"]["version"]
Expand All @@ -50,8 +48,6 @@ def _load_trie(self):
f"\nThe trie was build for botok {version}. Current version: {__version__}"
)
self._build_trie()
end = time.time()
print("({:.0f}s.)".format(end - start), flush=True)

def _build_trie(self):
"""
Expand Down

0 comments on commit ea8a8ef

Please sign in to comment.