diff --git a/tests/test_text_classifier.py b/tests/test_text_classifier.py index 0a24663..394e6d6 100644 --- a/tests/test_text_classifier.py +++ b/tests/test_text_classifier.py @@ -11,10 +11,9 @@ import os import codecs import numpy as np -from sklearn.cross_validation import train_test_split +from sklearn.model_selection import train_test_split from sklearn.datasets import fetch_20newsgroups sys.path.insert(0, os.path.abspath('..')) - from textar import TextClassifier diff --git a/textar/text_classifier.py b/textar/text_classifier.py index 30488e9..429cced 100644 --- a/textar/text_classifier.py +++ b/textar/text_classifier.py @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- + u"""Módulo de clasificación de textos. Este módulo contiene a los objetos que permiten entrenar un clasificador