A sentence structure vectorization method executed by a computer, the method comprising:
- generating a plurality of morphemes by performing morphological analysis on an input sentence;
- generating a dependence structure graph regarding the plurality of morphemes by performing dependency parsing on the plurality of morphemes;
- and
- generating a sentence structure vector by extracting a plurality of pieces of partial structure information from the dependence structure graph and converting a morpheme string corresponding to the plurality of pieces of partial structure information into a numerical sequence made up of a plurality of vector values, wherein
- each of the plurality of vector values is the number of appearances of a morpheme structure number in each of a plurality of dimensions corresponding to the plurality of pieces of partial structure information,
- the morpheme structure number is obtained based on morpheme structure information associating a dependency relationship between N morphemes where N is greater than or equal to 1, and a plurality of morpheme structure numbers, and
- the number of the appearances is 1 in a case where the morpheme structure number in each of the plurality of dimensions exists in the morpheme structure information, and the number of the appearances is 0 or information on the number of the appearances is omitted in a case where the morpheme structure number in each of the plurality of dimensions does not exist in the morpheme structure information.