Method and device for establishing example sentence index and method and device for indexing example sentences
暂无分享,去创建一个
The invention provides a method and a device for establishing an example sentence index and a method and a device for indexing example sentences. A special index is established for the example sentences by performing text analysis on the example sentences in an example sentence library; when a user inputs a grammar-based advanced search requirement, the search requirement input by the user is resolved; search results of respective inquiry items are acquired according to resolved inquiry items; and the search results of the respective inquiry items are integrated and processed according to a logic relation of the resolved inquiry items. The established index and the inquiry items are at least one of the following combinations: a combination of terms in the example sentences and parts of speech corresponding to the terms, a combination of terms in the example sentences and types of named entities corresponding to the terms, a combination of terms in the example sentences and syntactic roles corresponding to the terms, and a combination of terms in the example sentences. According to the methods and the devices, the grammar-based advanced search can be realized, so that the search effect can be improved.