Skip to content

Commit

Permalink
Change language_model.__str__ to __repr__
Browse files Browse the repository at this point in the history
Witiko committed Jan 24, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
Witiko Vít Starý Novotný
1 parent d2b4498 commit ce3e36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language_model.py
Original file line number Diff line number Diff line change
@@ -56,7 +56,7 @@ def training_duration(self) -> float:
self._train_model()
return self._load_training_duration()

def __str__(self) -> str:
def __repr__(self) -> str:
return '<<{} {}>>'.format(self.__class__.__name__, self.name)

def _bare_model_path(self) -> Path:

0 comments on commit ce3e36f

Please sign in to comment.