Closed jesmitty closed 4 years ago
I can't get modules from babelfish to do anything. From python see:
from nltk.misc import babelfish #this part works, did pip install bablefish print babelfish.translate('cookbook', 'english', 'spanish') AttributeError Traceback (most recent call last) in () ----> 1 print babelfish.translate('cookbook', 'english', 'spanish')
from nltk.misc import babelfish #this part works, did pip install bablefish
AttributeError Traceback (most recent call last)
AttributeError: 'module' object has no attribute 'translate'
import inspect inspect.getmembers(babelfish, predicate=inspect.ismethod) [] # no modules loaded from babelfish.
@jesmitty This is not the same babelfish as in nltk.
I can't get modules from babelfish to do anything. From python see:
AttributeError: 'module' object has no attribute 'translate'