将多个句子合并为一个句子

ytr*_*ewq 8 nlp summary nltk stanford-nlp

给定以下句子,例如:

A cat is on a bed.
The color of the cat is brown.
The bed is small.
Run Code Online (Sandbox Code Playgroud)

有没有办法将句子组合/总结成一个句子,例如:

A brown cat is on a small bed.
Run Code Online (Sandbox Code Playgroud)

我不了解摘要提取/生成,但是否有希望将其用于此目的?

Cha*_*Woo 2

我一直在致力于一个名为 DLTR(Do Little Things Right)的项目,其演示可以在这里找到: https: //nlp.1theta.com/

有一个名为的部分BridgeBlend,我想知道这是否是您要找的内容?

BridgeBlend Demo

Input Statement-1
John loves eating pizza.

Input Statement-2
pizza is a food made using cheese.

Output:
John loves eating pizza, a food made using cheese.
Run Code Online (Sandbox Code Playgroud)

至于你的例子:

Input Statement-1
The color of the cat is brown.

Input Statement-2
The cat is on a bed.

Input Statement-3
The bed is small.

Output:
The cat is on a small bed and its color is brown.
Run Code Online (Sandbox Code Playgroud)