Я очень новичок в анализе настроений. Попытка использовать Стэнфордские настроения Treebank (SST) и столкнулся с ошибкой.from nltk.tree import Tree
import os
import sst
trees = "C:\\Users\m\data\trees"
tree, score = next(sst.train_reader(trees))
< /code>
[output]: < /p>
AttributeError Traceback (most recent call last)
in ()
----> 1 tree, score = next(sst.train_reader(trees))
AttributeError: module 'sst' has no attribute 'train_reader'
Подробнее здесь: https://stackoverflow.com/questions/605 ... ain-reader
AttrubtError: у модуля 'sst' нет атрибута 'train_reader' ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение