【发布时间】:2021-07-01 15:24:33
【问题描述】:
我正在尝试从数据集中总结 100 个产品描述。为此,我只是尝试使用总结器
!pip install summarizers -q
from summarizers import Summarizers
import pandas as pd
一次一个句子效果很好。
textpanasonic="The NN-CS89L offers next-level cooking convenience. Its four distinct cooking methods - steaming, baking, grilling and microwaving ensure your meals are cooked or reheated to perfection. Its multi-function capabilities can be combined to save time without compromising taste, texture or nutritional value. It’s the all-in-one kitchen companion designed for people with a busy lifestyle."
summ(textpanasonic)
The NN-CS89L offers next-level cooking convenience.
但是你知道是否可以为每条评论创建一个带有摘要的新列吗?
ValueError:文本输入必须是str(单个示例)、List[str](批量或单个预标记示例)或List[List[str]](预标记示例)类型。
提前谢谢你^^
【问题讨论】:
标签: python nlp bert-language-model summarize