问题遇到的现象和发生背景
AttributeError: 'numpy.ndarray' object has no attribute 'split'
问题相关代码,请勿粘贴截图
max_document_length = max([len(x.split(" ")) for x in x_data])
vocab_processor = learn.preprocessing.VocabularyProcessor(max_document_length)
运行结果及报错内容
AttributeError: 'numpy.ndarray' object has no attribute 'split'