1. A non-transitory computer-readable medium storing a program for searching a translation memory and displaying retrieved translations, the program causing a computer to function as: a parallel text memory storing a plurality of parallel texts each being a text in a source language together with a translation thereof in a target language, the parallel texts including: (a) sentence-class parallel texts each being a source sentence together with a translation thereof, and (b) segment-class parallel texts each being a source segment together with a translation thereof, the source segment being a part of the source sentence; a relation link memory storing relation links representing containment relationships between the source sentences and source segments, wherein a containing text and a contained text are located respectively at an upper level and a lower level in a containment hierarchy; an input text receiver that receives an input text as an object to be analyzed and translated; a search processor that searches the parallel text memory using the input text as a search key to retrieve parallel texts whose source sentences or source segments are relevant to the input text; a match rate calculator that calculates a match rate of each parallel text retrieved by the search processor, the match rate representing the number of common characters found in both the input text and the source sentence or source segment of each parallel text; a link adder that adds a downward link to each retrieved sentence-class parallel text by consulting the relation link memory so as to link that sentence-class parallel text to a segment-class parallel text, as well as adding an upward link to each retrieved segment-class parallel text by consulting the relation link memory so as to link that segment-class parallel text to a sentence-class parallel text; a result screen generator that produces a search result screen showing a segment-class parallel text with a highest match rate, which is selected out of all the retrieved segment-class parallel texts; and a view range selector that replaces the currently displayed segment-class parallel text with a sentence-class parallel text pointed at by the upward link added to the currently displayed segment-class parallel text, in response to an expand command.
1. A non-transitory computer-readable medium storing a program for searching a translation memory and displaying retrieved translations, the program causing a computer to function as: a parallel text memory storing a plurality of parallel texts each being a text in a source language together with a translation thereof in a target language, the parallel texts including: (a) sentence-class parallel texts each being a source sentence together with a translation thereof, and (b) segment-class parallel texts each being a source segment together with a translation thereof, the source segment being a part of the source sentence; a relation link memory storing relation links representing containment relationships between the source sentences and source segments, wherein a containing text and a contained text are located respectively at an upper level and a lower level in a containment hierarchy; an input text receiver that receives an input text as an object to be analyzed and translated; a search processor that searches the parallel text memory using the input text as a search key to retrieve parallel texts whose source sentences or source segments are relevant to the input text; a match rate calculator that calculates a match rate of each parallel text retrieved by the search processor, the match rate representing the number of common characters found in both the input text and the source sentence or source segment of each parallel text; a link adder that adds a downward link to each retrieved sentence-class parallel text by consulting the relation link memory so as to link that sentence-class parallel text to a segment-class parallel text, as well as adding an upward link to each retrieved segment-class parallel text by consulting the relation link memory so as to link that segment-class parallel text to a sentence-class parallel text; a result screen generator that produces a search result screen showing a segment-class parallel text with a highest match rate, which is selected out of all the retrieved segment-class parallel texts; and a view range selector that replaces the currently displayed segment-class parallel text with a sentence-class parallel text pointed at by the upward link added to the currently displayed segment-class parallel text, in response to an expand command. 2. The non-transitory computer-readable medium according to claim 1 , wherein the search processor retrieves a parallel text whose source-language text has at least one common character that is also found in the input text.