INFORMATION ACQUISITION APPARATUS, INFORMATION ACQUISITION METHOD, AND INFORMATION ACQUISITION PROGRAM
An information acquisition apparatus ( 100 ) includes an acquisition unit ( 121 ), a classification unit ( 122 ), a determination unit ( 123 ), and a registration unit ( 124 ). The acquisition unit ( 121 ) acquires tree information representing information of a system screen by a plurality of nodes having a tree structure. The classification unit ( 122 ) classifies the plurality of nodes having a tree structure into an operable component and a label component based on the tree information. The determination unit ( 123 ) determines whether the label component indicates a name of the operable component based on a distance between the operable component and the label component. The registration unit ( 124 ) registers a correspondence between a text corresponding to the label component and specifying information for specifying the operable component in a case where the determination unit ( 123 ) determines that the label component indicates a name of the operable component.
1 . An information acquisition apparatus comprising:
a memory; and
a processor coupled to the memory and configured to perform operations comprising:
acquiring tree information representing information of a system screen by a plurality of nodes having a tree structure;
classifying the plurality of nodes having a tree structure into an operable component and a label component based on the tree information;
determining whether the label component indicates a name of the operable component based on a distance between the operable component and the label component; and
in response to determining that the label component indicates a name of the operable component, a registering a correspondence between a text corresponding to the label component and specifying information for specifying the operable component.
2 . The information acquisition apparatus of claim 1 , wherein determining whether the label component indicates a name of the operable component includes determining whether the label component indicates a name of the operable component based on a distance between a position at which the operable component is displayed and a position at which the label component is displayed.
3 . The information acquisition apparatus of claim 1 , wherein determining whether the label component indicates a name of the operable component includes determining whether the label component indicates a name of the operable component based on a distance between a node corresponding to the operable component and a node corresponding to the label component.
4 . The information acquisition apparatus of claim 1 , wherein classifying the plurality of nodes based on the tree information includes:
acquiring property information of the plurality of nodes from the tree information; and
classifying the plurality of nodes into an operable component and a label component based on the acquired property information.
5 . The information acquisition apparatus according to claim 4 , wherein classifying the plurality of nodes based on the acquired property information includes:
converting the acquired property information into a vector; and
classifying the plurality of nodes into an operable component and a label component by inputting the property information converted into the vector to a classifier, wherein the classifier is learned to classify a vector corresponding to property information of a UI component into an operable component and a label component.
6 . The information acquisition apparatus of claim 1 , wherein registering a correspondence between a text corresponding to the label component and the specifying information includes:
acquiring property information of a node corresponding to the label component from the tree information;
acquiring a text corresponding to the label component from the acquired property information; and
registering a correspondence between the acquired text and the specifying information.
7 . An information acquisition method performed by a computer, the method comprising:
acquiring tree information representing information of a system screen by a plurality of nodes having a tree structure;
classifying the plurality of nodes having a tree structure into an operable component and a label component based on the tree information;
determining whether the label component indicates a name of the operable component based on a distance between the operable component and the label component; and
in response to determining that the label component indicates a name of the operable component, registering a correspondence between a text corresponding to the label component and specifying information for specifying the operable component.
8 . A non-transitory computer readable storage medium having a information acquisition program stored thereon that, when executed by a processor, causes the processor to perform operations comprising:
acquiring tree information representing information of a system screen by a plurality of nodes having a tree structure;
classifying the plurality of nodes having a tree structure into an operable component and a label component based on the tree information;
determining whether the label component indicates a name of the operable component based on a distance between the operable component and the label component; and
in response to determining that the label component indicates a name of the operable component, registering a correspondence between a text corresponding to the label component and specifying information for specifying the operable component.