machine-learning - 用于从文本中提取 Action 的 NLP

标签 machine-learning nlp information-extraction sentence pos-tagger

我希望有人能为我指明正确的方向,以了解如何从一堆文本中分离出操作。

假设我有这段文字

Drop off the dry cleaning, and go to the corner store and pick-up a jug of milk and get a pint of strawberries.
Then, go pick up the kids from school. First, get John who is in the daycare next to the library, and then get Sam who is two blocks away. 
By the time you've got the kids, you'll need to stop by the doctors office for the perscription. Tim's flight arrives at 4pm. 
It's American Airlines flight 331 arriving from Dallas. It will be getting close to rush hour, so make sure you leave yourself enough time.

我想把它分成

Drop off the dry cleaning,
 and go to the corner store and pick-up a jug of milk and get a pint of strawberries.
Then, go pick up the kids from school. First, get John who is in the daycare next to the library, and then get Sam who is two blocks away. 
By the time you've got the kids, you'll need to stop by the doctors office for the perscription.
 Tim's flight arrives at 4pm. 
It's American Airlines flight 331 arriving from Dallas. It will be getting close to rush hour, so make sure you leave yourself enough time.

我在搜索中找不到任何专门基于操作的内容。它需要比仅仅挑选动词更聪明,因为有时有多个动词与一个 Action 相关联,例如第二个项目有“go”、“pick-up”和“get”,但这只是全部的一部分单个 Action 的。当然,“蒂姆的飞行”仅表示现在分词的 Action ,动词接近该句段的末尾。

关于在哪里做这种事情有什么建议吗?注意事项、推荐读物等等

最佳答案

简单的方法:使用[您最喜欢的解析器]解析文本,然后选择处于祈使语气的句子或SBAR短语。 Stanford Parser恰巧在其最新版本中“改进了对命令的识别”。

除了标准解析器程序中已经包含的内容之外,可能不需要机器学习。

关于machine-learning - 用于从文本中提取 Action 的 NLP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8183891/

相关文章:

mysql - 哪个数据库可以用来存储NLP引擎处理过的数据

metadata - 使用条件随机字段进行命名实体识别

python - 是否可以训练 AI 仅使用一张图像对图像进行分类?

python - 使用 Keras 进行字符嵌入

nlp - WordNet 中的 "derivationally related forms"是什么?

python - 如何对相似的类别进行分组?

python - 使用斯坦福 NLP for python 进行信息提取和关系提取

lua - 数据源与 torch/dp 库的正确用法是什么

machine-learning - 了解生成对抗网络

machine-learning - keras中的util.generic_utils.deserialize_keras_object()函数有什么作用