摘 要:状态机是采取某种操作来响应一个外部事件。具体采取的操作不仅能取决于接收到的事件,还能取决于各个事件的相对发生顺序,之所以能做到这一点,是因为机器能跟踪一个内部状态,它会在收到事件后进行更新。
单一英文语句运用状态机实现的好处其实很多,最主要的是当你发现一些新规则时,可以直接在状态机内部机制里添加修改,不需要重新开始,避免了很多繁琐的工作。
本文主要介绍了运用英语句子的语法规则库构建有限状态机的内部机制,通过状态机的内部机制来判断英语句子的合理性,并且输出英语句子所对应的各个语法成分,如:主语、谓语、宾语、表语等。
关键词: 状态机,句法分析,语义分析,语法规则
Use The Finite State Machine To Solve The Semantic Analysis Of Sentence
Abstract : 本文来自辣'文.论^文·网原文请找腾讯32.49114
The finite state machine takes some operations to react an external event. Taking operations concretely not only depend on the events which are received, but also depend on the sequence of the events, why it can do that, because the machine can track an internal status, it will be updated after the events are received .
There are many benefits if the English sentences use the finite state machine to achieve for the judging the sentences. The most important thing is that when you find some the new grammar rules you can add or amend the internal mechanism directly, you should not start from scratch again, and avoid some tedious work from the finite state machine.论文网http://www.751com.cn/
The major of the thesis will introduce how to construct the internal mechanism of the finite state machine by using the grammar rules library of English. The purpose of using the internal mechanism of the finite state machine is that we can judge the rationale of the sentences in English, and export the corresponding grammar composition of the sentences in English, such as: subject, predicate, object, predicative, etc.
Key Words : finite state machine, syntactic analysis , semantic analysis , grammar rules
1.引言
从目前的理论和技术现状看,通用的、高质量的自然语言处理系统,仍然是较长期的努力目标,但是针对一定应用,具有相当自然语言处理能力的实用系统已经出现,有些已商品化,甚至开始产业化[1]。如果要直接从自然语言的处理着手,让计算机直接与人类进行交谈,并且拥有计算机自己的思想,其复杂性可想而知。计算机只是一种机器,它还不能直接理解人类的自然语言。尽管当今社会已经研制出一些可以做简单语句分析的机器人,但是仍然是由于人们事先输入的代码控制它的行为,而且其行为只能简单。自然语言是人类特有的属性,所以要让计算机识别人类语言是很有意义和研究性的2327
[1] [2] [3] [4] [5] [6] [7] [8] 下一页