NLP用于从文本中提取动作

我希望有人能指引我学习如何从大量文本中分离出动作。

假设我有这样的文本

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短语。恰好斯坦福解析器在其最新版本中增加了“改进的祈使句识别”功能。

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

Related Posts

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注