定向置换
Directed Replacement
摘要:
本文在有限状态演算中引入一族有向替换算子。与Karttunen(ACL-95)中定义的简单替换表达式UPPER -> LOWER相反,如果低级语言由单个字符串组成,则新的定向版本UPPER @-> LOWER会产生明确的转换器。它从左到右转换输入字符串,在每个点上只进行最长的替换。一种新的替换表达式UPPER @-> PREFIX. SUFFIX产生一个转换器,它在作为UPPER实例的字符串周围插入文本。那个符号...表示输入的匹配部分,其本身保持不变。PREFIX和SUFFIX是描述插入的正则表达式。类型UPPER @-> PREFIX. SUFFIX可以用来构成Gross(1989)意义上的“局部语法”的确定性分析器。定向替换的其他有用应用包括文本流的标记化和过滤。
英文摘要:
This paper introduces to the finite-state calculus a family of directed replace operators. In contrast to the simple replace expression, UPPER -> LOWER, defined in Karttunen (ACL-95), the new directed version, UPPER @-> LOWER, yields an unambiguous transducer if the lower language consists of a single string. It transduces the input string from left to right, making only the longest possible replacement at each point. A new type of replacement expression, UPPER @-> PREFIX ... SUFFIX, yields a transducer that inserts text around strings that are instances of UPPER. The symbol ... denotes the matching part of the input which itself remains unchanged. PREFIX and SUFFIX are regular expressions describing the insertions. Expressions of the type UPPER @-> PREFIX ... SUFFIX may be used to compose a deterministic parser for a ``local grammar'' in the sense of Gross (1989). Other useful applications of directed replacement include tokenization and filtering of text streams.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。