Skip to content

Commit

Permalink
Fix metodo __str__
Browse files Browse the repository at this point in the history
  • Loading branch information
iheredia committed Nov 25, 2016
1 parent 7067979 commit 82fd195
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions textar/text_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ def __init__(self, texts, ids, vocabulary=None, encoding='utf-8'):

def __str__(self):
"""Representacion en str del objeto."""
string = """ Clasificador de textos con {:d} textos almacenados, \
""".format(len(self.ids))
return string
base_string = """Clasificador de textos con {:d} textos almacenados"""
return base_string.format(len(self.ids))

def make_classifier(self, name, ids, labels):
"""Entrenar un clasificador SVM sobre los textos cargados.
Expand Down

0 comments on commit 82fd195

Please sign in to comment.