def test_transform_only_words(self):
X, y = load_data_and_labels(self.filename)
preprocessor = WordPreprocessor(padding=False)
p = preprocessor.fit(X, y)
X = p.transform(X)
words, chars = X
char, word = chars[0][0][0], words[0][0]
After Change
def test_transform_only_words(self):
X, y = load_data_and_labels(self.filename)
preprocessor = StaticPreprocessor()
p = preprocessor.fit(X, y)
X = p.transform(X)
words, chars = X
char, word = chars[0][0][0], words[0][0]