Learning Restricted Deterministic Regular Expressions with Counting

被引:0
|
作者
Wang, Xiaofan [1 ,2 ]
Chen, Haiming [1 ]
机构
[1] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Beijing 100190, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
基金
中国国家自然科学基金;
关键词
Schema inference; Regular expressions; Counting; Descriptive generalization;
D O I
10.1007/978-3-030-34223-4_7
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Regular expressions are widely used in various fields. Learning regular expressions from sequence data is still a popular topic. Since many XML documents are not accompanied by a schema, or a valid schema, learning regular expressions from XML documents becomes an essential work. In this paper, we propose a restricted subclass of single-occurrence regular expressions with counting (RCsores) and give a learning algorithm of RCsores. First, we learn a single-occurrence regular expressions (SORE). Then, we construct an equivalent countable finite automaton (CFA). Next, the CFA runs on the given finite sample to obtain an updated CFA, which contains counting operators occurring in an RCsore. Finally we transform the updated CFA to an RCsore. More-over, our algorithm can ensure the result is a minimal generalization (such generalization is called descriptive) of the given finite sample.
引用
收藏
页码:98 / 114
页数:17
相关论文
共 50 条