我希望有人能指引我学习如何从大量文本中分离出动作。
假设我有这样的文本
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 thekids, 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.
在我的搜索中,我没有找到任何专门基于动作的内容。这需要比仅仅挑选动词更智能,因为有时一个动作会与多个动词相关联,例如第二个项目中有’go’、’pick-up’和’get’,但这些都是一个单一动作的一部分。当然,”Tim’s flight”仅通过现在分词暗示了一个动作,动词出现在段落的末尾。
关于如何做这种事情,有什么建议吗?需要注意的事项,推荐的阅读材料等等。
回答:
简单的方法:使用[你喜欢的解析器]解析文本,然后选择那些使用祈使语气的句子或SBAR
短语。恰好斯坦福解析器在其最新版本中增加了“改进的祈使句识别”功能。
除了标准解析器程序中已经包含的机器学习之外,可能不需要额外的机器学习。