摘要 |
A system builds a text fragment database for use in translating fragments of text from a source language into a target language. The system first stores a sentence database in memory, the sentence database comprising a plurality of sentence pairs, each sentence pair including a sentence in the source language and a corresponding sentence in the target language. The system then locates corresponding source and target text fragments in corresponding source and target language sentences, respectively, and stores the source text fragment together with the target text fragment in the text fragment database. The text fragment database can then be used to translate text from the source language into the target language. To this end, the system inputs text in the source language, extracts a text fragment from the input text, and locates the extracted text fragment in the text fragment database. The system then retrieves, from the text fragment database, a text fragment in the target language that corresponds to the extracted text fragment, and outputs the retrieved text fragment.
|