自动摘要,字数怎么定义?目前只看到定义片段

自动摘要,字数怎么定义?目前只看到定义片段,且返回的可读性不强,不连贯。

可以使用 HanLP 的 getSummary(String document, int max_length) 方法 , 来限制长度 。