发明授权
US08676826B2 Method, system and program storage device for automatic incremental learning of programming language grammar
失效
方法,系统和程序存储设备,用于自动增量学习编程语言语法
- 专利标题: Method, system and program storage device for automatic incremental learning of programming language grammar
- 专利标题(中): 方法,系统和程序存储设备,用于自动增量学习编程语言语法
-
申请号: US13170723申请日: 2011-06-28
-
公开(公告)号: US08676826B2公开(公告)日: 2014-03-18
- 发明人: Pankaj Dhoolia , Mangala G. Nanda , Krishna Nandivada Venkata , Diptikalyan Saha
- 申请人: Pankaj Dhoolia , Mangala G. Nanda , Krishna Nandivada Venkata , Diptikalyan Saha
- 申请人地址: US NY Armonk
- 专利权人: International Business Machines Corporation
- 当前专利权人: International Business Machines Corporation
- 当前专利权人地址: US NY Armonk
- 代理机构: Gibb & Riley, LLC
- 主分类号: G06F17/30
- IPC分类号: G06F17/30 ; G06N5/02 ; G06F9/45
摘要:
The embodiments provide for automatic incremental learning of programming language grammar. A corpus (i.e., a text file of software code written in a particular programming language) is parsed based on a set of grammar rules. An unparsed statement from the corpus is identified along with a section thereof, which did not match any of the grammar rules in the set. A subset of the set of grammar rules at fault for the parsing failure is identified. Groups of new grammar rules are developed such that each group comprises at least one new grammar rule, such that each group can parse the unparsed statement, and such that each new grammar rule is a modification of grammar rule(s) in the subset. One specific group can then be selected for possible incorporation into the set of grammar rules. Optionally, before a specific group is selected, the groups can be heuristically pruned and/or ranked.
公开/授权文献
信息查询