用于从文本中提取动作的 NLP

发布于 2024-12-16 22:34:31 字数 1367 浏览 0 评论 0原文

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

假设我有这个文本,

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.

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

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

I'm hoping somebody can point me in the right direction to learn about separating out actions from a bunch of text.

Suppose I have this text

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.

I'm trying to have it split up into

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.

I haven't been able to find anything in my searches that is specifically action based. It would need to be smarter than just picking out verbs, as there are multiple verbs that are sometimes associated with one action for, instance the second item has 'go','pick-up' and 'get', but that is all part of a single action. Of course, "Tim's flight" is only suggests an action with the present participle, with the verb coming toward the end of the segment.

Any suggestions on where to look to do this kind of thing? Things to watch-out for, recommended readings, etc. etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情绪 2024-12-23 22:34:31

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

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

Simple approach: parse the text using [your favorite parser], then select the sentences or SBAR phrases that are in the imperative mood. The Stanford Parser just so happens to have "Improved recognition of imperatives" in its very latest release.

There's probably no need for machine learning beyond what is already incorporated in standard parser programs.

望喜 2024-12-23 22:34:31

该域称为信息提取

句子理解的一般方法是:

  • 提取词性标记的解析树(Python spaCy.io、nltk、CoreNLP 等)
  • 提取词向量(例如 word2vec)

This domain is called Information Extraction.

The general approach to sentence understanding is either:

  • extract a Part-Of-Speech tagged parse-tree (Python spaCy.io, nltk, CoreNLP etc.)
  • extract a word-vector (e.g. word2vec)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文