【发布时间】:2021-04-07 06:20:51
【问题描述】:
df 有两列包含文本。我想将它们分别转换为语料库。
df
id | Description 1 |Description 2 |
-----------------------------------------------------------
1 |that book is good | better than book2 |
2 |book 2 is not better than 1 | not good |
. | . | . |
. | . | . |
. | . | . |
考虑描述 1 是文档,描述 2 是查询。
预期输出
Corpus 1: that book is good book 2 is not better than 1..................
Corpus 2: better than book2 not good.....................
【问题讨论】:
-
你能举一个预期结果的例子吗?
-
语料库 1:那本书是好书 2 不比 1 好........ 语料库 2:比书 2 不好.. ....................