Patent ID: 11874860
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 15:
16. A computer-implemented method for creating one or more indexes for information retrieval, the method comprising:
analyzing, by a processor, a document having a first language as its base language to identify one or more tags embedded in the document, each tag identifying a unique expression found in text of the document, each unique expression being a word or phrase that is in a second language that is different than the first language;
determining, by the processor and based on the one or more tags, that an n-gram analysis is to be performed to create indexes for each unique expression in the text;
creating, by the processor in response to identifying an instance of the one or more tags in the text of the document, an index in a first set of indexes for the document by performing the n-gram analysis to index the unique expression in the text of the document;
switching to a morphological analysis to create, by the processor, one or more indexes in a second set of indexes for the document that index one or more sequences of words in the text of the document that are between the instance of the one or more tags and one of a next instance of the one or more tags and an end of the text, wherein the one or more sequences of words do not include the unique expression; and
storing, by the processor, the first and second sets of indexes in a computer memory.