A method is provided for controlling a device based on acquired text data. The method includes acquiring the text data indicating a voice spoken by a user, and analyzing a meaning of the text data based on a table, in which a word and a vector representing a meaning of the word in a vector space of predetermined dimensions are associated. The method also includes generating a command to control the device based on the analyzed meaning of the text data. The table is generated by performing a learning process by assigning to a first word a first vector representing a meaning of the first word in the vector space, and by assigning to a second word a second vector representing a meaning of the second word in the vector space, in accordance with an arrangement of a word string in a first text corpus and a second text corpus.
展开▼