gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 08:23:35 24 4
gpt4 key购买 nike

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

假设我有这段文字

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com