摘要 |
PROBLEM TO BE SOLVED: To provide a counting device, a counting program, a computer-readable recording medium with a counting program recorded, and a counting method which are capable of counting the number of times a certain expression is used in a plurality of input sentences.SOLUTION: A counting device 100 comprises a subtree generator 123 for generating a first subtree included in a first sentence and a second subtree included in a second sentence. The counting device 100 also comprises: a categorization unit 125 for categorizing the first subtree and the second subtree into the same group when it is determined that a first expression represented by the first subtree and a second expression represented by the second subtree represent matching content; and an output unit 127 for outputting the number of subtrees categorized into said group, or an expression represented by either a plurality of syntax trees or one of the subtrees categorized into said group. |