Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Dec 23, 2018
1 parent 45c4930 commit 788cad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cophi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def export(dtm, filepath, format="text"):
format: File format.
"""
if format.lower() in {"plaintext", "text"}:
cophi.model.Corpus.export_plaintext(dtm, filepath)
cophi.model.Corpus.plaintext(dtm, filepath)
elif format.lower() in {"svmlight"}:
cophi.model.Corpus.export_svmlight(dtm, filepath)
cophi.model.Corpus.svmlight(dtm, filepath)
else:
raise ValueError("'{}' is no supported file format.".format(format))

0 comments on commit 788cad5

Please sign in to comment.