Human-designed rules are widely used to build industry applications. However, it is infeasible to maintain thousands of such hand-crafted rules. So it is very important to integrate the rule knowledge into neural networks to build a hybrid model that achieves better performance. Specifically, the human-designed rules are formulated as Regular Expressions (REs), from which the equivalent Minimal Deterministic Finite Automatons (MDFAs) are constructed. We propose to use the MDFA as an intermediate model to capture the matched RE patterns as rule-based features for each input sentence and introduce these additional features into neural networks. We evaluate the proposed method on the ATIS intent classification task. The experiment results show that the proposed method achieves the best performance compared to neural networks and four other methods that combine REs and neural networks when the training dataset is relatively small.
翻译:人类设计的规则被广泛用于建立工业应用,然而,保存数千个这种手工制作的规则是不可行的。因此,将规则知识纳入神经网络非常重要,以便建立一个能够取得更好业绩的混合模型。具体地说,人类设计的规则是作为常规表达法(REs)制定的,从中构建了等效的最小确定性硬质自动配方(MDFas),我们建议使用MDFA作为中间模型,将匹配的RE模式作为每个输入句的基于规则的特点,并将这些额外的特征引入神经网络。我们评估了拟议中的ATIS意图分类方法。实验结果表明,与神经网络相比,拟议方法取得了最佳的性能,在培训数据相对小的情况下,将RE和神经网络结合起来的其他四种方法。