计算机科学 ›› 2010, Vol. 37 ›› Issue (1): 229-232.

• 人工智能 • 上一篇    下一篇

采用预测策略的Earley算法

谷波,李茹,刘开瑛   

  1. (山西大学计算机与信息技术学院 太原030006);(计算智能与中文信息处理教育部重点实验室 太原030006)
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受国家863计划(2006AAO1Z142),国家自然科学基金项目(60873128)资助。

Earley Algorithm Using Prediction Strategies

GU Bo,LI Ru,LIU Kai-ying   

  • Online:2018-12-01 Published:2018-12-01

摘要: 在自然语言处理中,句法分析主要有基于统计的方法和基于规则的方法。Earley算法是一种基于规则的方法,可以分析任意上下文无关文法(CFU),而不需要对文法进行修改。详细分析了Earley算法的特点。在通常的Earley算法中增加了多种预测机制,这些预测机制借鉴了LL,LR以及SLR等确定性分析算法的一些思想,并对这几种不同的预测机制及其组合在相同条件下进行了中文句法分析实验。结果显示,引入这些预测机制通常可以减少产生项目的数量,从而节省存储空间,减少运行时间。

关键词: 上下文无关文法,句法分析,Earley算法

Abstract: There are two kinds of parsing algorithms in nature language processing: one based on statistics and the other based on grammar rules. Earley algorithm is based on grammar rules. It can parse any context free grammar (CFG) without changing the grammar. This paper used several predictive strategies in Earley algorithm. These strategies come from LL, SLR and LR algorithms. Experiments were made for these strategies and their combinations. Results indicate that these strategics can usually reduce number of items and make parsing faster.

Key words: Context free grammar, Parsing, Earley algorithm

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!