摘要 |
<p>PROBLEM TO BE SOLVED: To provide a template generation device capable of easily generating many templates.SOLUTION: A template generation device 100 comprises: a sentence extraction unit 11 extracting a sentence from a learning database 2; a morphological analysis unit 12 dividing the sentence extracted by the sentence extraction unit 11 to a plurality of morphemes and extracting a unique expression from the plurality of morphemes; a unique expression analysis unit 14 substituting the unique expression extracted by the morphological analysis unit 12 for a tag indicating a unique expression type of the unique expression and generating a pattern; and a template extraction unit 3 extracting patterns as a template if the patterns have a set of the same unique expression types and types other than the same unique expression types have the same expression or an edition distance equal to or smaller than a predetermined value.</p> |