The present invention relates to a speech translation device and a computer readable medium, and more particularly to a speech translation device that leads the user's utterance, suitable for use in a portable translator for overseas travel or the like, and a recording medium for implementing the same.
Conventional translation devices are generally classified into two types. A first type of translation device is a device which translates an arbitrarily inputted sentence (hereinafter referred to as the “machine translation device”), and a second type of translator device is a device which searches previously prepared bilingual examples stored therein in accordance with a specific situation or a keyword to translate retrieved examples (hereinafter referred to as the “table look-up translation device”).
As the first machine translation device, a number of text-based machine translation systems have already been used in practice. A translation method widely employed by these translation systems is a rule-based translation which translates based on a dictionary and grammatical rules. However, investigations have also been made on an example-based translation which utilizes examples since the rule-based translation encounters difficulties in describing a rule when it is fed with new sentence expressions (linguistic phenomena) which cannot be handled satisfactorily with grammatical rules.
On the other hand, a speech-based translation device has a problem in that a correct translation result is not provided unless speech recognition is correctly performed anyway. To solve this problem, JP-A-8-328585, for example, shows a method which calculates linguistic similarities between an inputted speech and all examples contained in an example database to select the most likely solution from a plurality of candidates resulting from the speech recognition.
As the second table look-up translation device, JP-A-56-88564, for example, describes a portable translation device which responds to a category specified by the user to display relevant examples, and then accepts a sentence selected by the user from the displayed examples to audibly output a translation of the selected sentence.
In a scene of overseas travel, conversations with other people are often short and relatively routinary such as requests, questions and so on. However, since travel is an unusual situation, specific contents to be spoken, and suitable expressions or vocabularies may not immediately occur to travelers even in their mother languages, when they intend to speak. For this reason, the first machine translation device may not sufficiently accomplish its object of supporting conversations in foreign languages during travels because of the user's inability of immediately remembering a sentence to input. For example, when a traveler asks where to receive his baggage checked in the plane, and presents his baggage-claim tickets to a personnel after he has got off an airplane, he cannot always remember appropriate Japanese sentences such as “Where can I receive my baggage from Flight No. 121 of American Air Line?”, “My baggage has not yet come out. Here are my baggage-claim tickets” in complete forms. If he directly speaks with a party who understands Japanese, i.e., his mother language, they may come to mutual understanding between them, while feeing out the other party's reactions, through such conversation as “The baggage I left at the counter when I checked in at the airport are . . . , let me see, where . . . , the flight number? No. 121 of American Air.”, “I'm afraid my baggage has not yet come out . . . Baggage-claim ticket? That's, . . . The copy I received when I left the baggage? Here you are.” and so on. However, for translation into a foreign language with a machine translator, complete sentences such as “Where can I receive baggage from Flight No. 121 of American Air Line?” or “My baggage has not come out yet. Here are baggage-claim tickets” must be inputted for the machine translator to output satisfactory translations. In addition, unlike conversation in the mother language, even if the other party asks back to him such as “What is your flight number?”, “Please show me your baggage-claim ticket.”, or the like, he may not be able to understand, so that he must communicate sentences including sufficient information to the other party when he first speaks to the other party.
On the other hand, the second table look-up translation device which searches previously prepared bilingual examples can avoid the problem of the first translation device involved in the arbitrary sentence input. In addition, the simple processing of the second translation device makes it more feasible to implement it as a portable translator. However, a conventional method of searching examples classified in accordance with scenes in response to a selection on a menu has its inherent problem, when a large number of examples are retrieved from a search, in that a long time is taken to find a suitable example the user wants to use, because the user must narrow down scenes over again by repetitively pressing selection buttons, or scroll many examples retrieved for a single scene on a rather small display. Also, a conventional method of finding substitution candidates for a word in an example through such a means as scrolling or the like has a problem of poor operability when many substitution candidates are provided for a word. For example, when a traveler asks where to receive baggages in the aforementioned scene, it is tedious for him that once he finds a sentence “Where can I receive baggage from Flight No. 753 of Japan Air Line?”, he should replace the flight number in the sentence with “Flight No. 121 of American Air Line” by scrolling the display and pressing buttons required for the replacement.
It is an object of the present invention to realize a translation device which provides both advantages of a table look-up translation device and advantages of a machine translation device by displaying a sentence template suitable for a user's intent of speech to lead the user's utterance.
To achieve the above object, the present invention provides a translation device which comprises a sentence file for storing a plurality of sentence templates, a speech recognition unit for recognizing an inputted speech, means for replacing an expression within a sentence template similar to the speech based on the speech, and for translating a resulting sentence, and a voice output unit for audibly outputting a translated sentence or a display for displaying the translated sentence. In addition, the present invention provides a computer readable recording medium having recorded thereon a program for causing a computer to operate as a translation device, wherein the program comprises the steps of recognizing a first speech by speech recognition means, retrieving sentence templates related to the first speech and displaying the retrieved sentence templates on a display, recognizing a second speech by the speech recognition device, replacing an expression within one of the retrieved sentence templates based on the second speech and translating a resulting sentence, and displaying the translation result on the display or audibly outputting the translation result.
In the translation device, for example, which retrieves previously prepared sentences, the sentences stored in the sentence file are described as sentence templates including a portion in which an expression can be replaced (hereinafter referred to as a “slot”). Each sentence template includes, as information related to a slot specified therein, a category code (for example, information such as place, date, or the like) and a representative example for any expression which may appear in the slot. Each sentence template is given keywords or a keyword (for example, information such as reservation, flight, ticket, or the like). Keywords may be not only specific words but also category codes.
A dictionary contained in the translation device of the present invention describes pronunciation information and a category code for each word, as information used to retrieve sentence templates with an orally inputted keyword. In addition, the dictionary describes grammatical information and a translated word for each entry, and grammatical information for the translated word, as information used to perform template translation.
As means for retrieving sentence templates, the translation device includes means for word recognition for recognizing an orally inputted keyword, means for retrieving sentence templates which includes keyword information that describes a recognized word and its category code, and means for displaying a plurality of sentence templates on a screen.
As means for performing the template translation, the translation device includes means for recognizing spoken sentences which selects sentence templates with high similarities to an orally inputted sentence from a plurality of sentence templates, means for recognizing spoken words which references phonetic information in the dictionary to recognize an expression inserted in a slot, means for referencing the dictionary and translation rules to determine a translated word and its form for the expression inserted in the slot, and means for generating a translated sentence by combining information on a translated sentence of the sentence template and a translation of an expression inserted in the slot.
When the user orally inputs a word, the translation device recognizes the inputted word and its category code by referencing the phonetic information in the dictionary. Then, the translation device retrieves sentence templates which have the word and the category code described in their keyword information, and displays retrieved sentence templates on the screen. As information on a slot included in a sentence, a representative example of an expression which may appear in the slot is described in a sentence template. Thus, for displaying sentence templates on the screen, the translation device displays each sentence template together with a representative example inserted in the slot.
While one or more sentence templates are being displayed on the screen, the user orally inputs a sentence which is composed of a sentence template and a desired expression inserted in a slot of the sentence template. Responsively, the translation device executes translation of the orally inputted sentence based on a sentence template with a high similarity of the sentence templates displayed on the screen, and displays a translated sentence. For example, when the user orally inputs a word “telephone”, the translation device retrieves sentence templates which have the word “telephone” described in the keyword information. Displayed on the screen are such sentence templates as “Where is [a telephone]?”, “Please tell me how to place a [local call].”, “I'd like to place a [collect call] to [Japan].”, and so on. The bracketed portions represents slots. The user, scrolling the screen, looks for a usable sentence. When the user finds a usable sentence, for example, “I'd like to place a [collect call] to [Japan].”, he may orally input a sentence “I'd like to place an international call to Canada.”. Responsively, the translation device recognizes that the user has used the sentence template “I'd like to place a [collect call] to [Japan].”, also recognizes that “Japan” and “collect call” have been replaced with “Canada” and “international call”, and executes the template translation.
These and other objects, features and advantages of the present invention will become more apparent in view of the following detailed description of the preferred embodiments in conjunction with accompanying drawings.
An embodiment of the present invention will hereinafter be described with reference to FIGS. 1 to 14. This embodiment provides a portable speech translation device which is intended for use by a user who speaks Japanese as the mother language when he travels in English-spoken countries.
Generally, the speech translation device of this embodiment is configured to retrieve and display sentence templates in response to a keyword orally inputted by the user. When the user utters a different word in place of a replaceable word within a sentence template, the speech translation device recognizes which sentence template was used and which word was replaced with which word, and displays and pronounces a translated sentence for the inputted sentence.
Next, an outer appearance of the translation device of this embodiment will be described with reference to
Next, the hardware configuration of the translation device according to this embodiment will be described with reference to
Next, the contents of the sentence file will be described with reference to
Sentences in the sentence file 205 include basic sentences such as I'd like to make a reservation), and detailed sentences such as (Please find out the earliest available flight.). For a basic sentence, sentence numbers of detailed sentences corresponding thereto are described in the list of detailed sentence numbers 603. For a detailed sentence, sentence numbers of basic sentences corresponding thereto are described in the list of basic sentence numbers 602.
When a keyword is used to retrieve sentences, basic sentences are displayed in an upper portion of the screen. As the user selects (I'd like to make a reservation) to instruct the translation device to display detailed sentences, detailed sentences such as (Please find out the earliest available flight.) are displayed. In the sentence template 605 in the source language and the sentence template 607 in the target language, any replaceable expression is represented by a slot.
For displaying on the screen, a word in the representative example 6092 is embedded in a slot of a sentence template in the source language, and the sentence template in the source language is displayed with this word embedded in the slot. When the user instructs the translation device to display or pronounce a translated sentence without replacing any word, the translation device displays the translated sentence embedded with the translation 6093 of the representative example, and pronounces the pronunciation information 608 for the translated sentence embedded with the pronunciation information 6094 of the representative example.
The semantic information 6095 for a slot may be described in the form of list such as “round-trip ticket; one-way ticket; ticket” or by using a category code such as “<place>”. When a slot can be replaced with any word, no condition is described.
Sentences having a category code such as “<place>” described in the keyword 604 are retrieved from all words having the category code. For example, when the user inputs, as a keyword, a word having a category code “<place>” such as (“post office”), (“bus stop”) or (“bank”), or a sentence 1356 <S1> (“Where is the <S1>nearest from here?”) is retrieved and displayed.
Next, the contents of the dictionary 204 will be described with reference to
Next, the operation of the speech translation device according to this embodiment will be described with reference to
Next, the keyword speech recognition will be described with reference to
An example of a word candidate display screen will now be described with reference to
Turning back to
It should be noted that the word candidate display screen is provided for the user to confirm the result of the spoken keyword recognition, this may be used also as a bilingual dictionary since translated words are displayed together with word candidates. In addition, the speech translation device may be adapted to generate the pronunciation when the user selects a word and presses the execution button. While translated words are not displayed for homonyms on the word candidate display screen, the speech translation device may be adapted to proceed to the next screen on which translated words and relevant sentences are displayed as the user selects one from homonyms and presses the execution button.
Referring again to
Next, narrowing of sentences will be described referring again to
When the user selects a sentence without replaceable word, the user may select a sentence by moving the cursor with the scroll keys (312-314). As the user selects a sentence and presses the execution key, the speech translation device executes translation (322).
Next, a detailed sentence display will be described with reference to
Next, the spoken sentence recognition will be described referring back to
A model for a portion associated with a slot is created on the basis of pronunciation information on words that may be inputted in the slot. For creating this model, the speech translation device first references the semantic information 6095 in the slot information 609 within the sentence file (504) to recognize which of words registered in the dictionary can be inputted in the slot. Such words that can be inputted in the slot are assumed in the following manner: when words are listed in the semantic information 6095 of the slot, the listed words are designated (505); when a category code is specified, those words that have the specified category code are designated (506); and when nothing is specified, words registered in the dictionary are designated (507). A model for each word is created on the basis of the pronunciation information 704 of the word described in the dictionary (508).
Once the finite state automaton has been created for the sentence template displayed on the screen (509), the speech translation device performs the speech recognition for an input sentence in accordance with the continuous speech recognition algorithm using HMMs, and stores the most likely ten words as candidate words for each slot (510).
It should be noted that while the user is speaking a sentence viewing a sentence template, the user may put pauses before and/or after a slot, and/or immediately after a clause including a slot. Therefore, the speech translation device may be configured to create, for each sentence template, finite state automatons for phrases that are marked off at positions at which a pause is likely to be placed in addition to the finite state automaton for the entire sentence, resulting in a higher recognition accuracy. In the foregoing example, finite state automatons may be created for phrases as (the nearest), (bus stop), (where is?), and so on in addition to (where is the nearest bus stop?), and corresponded to sentence templates which include these phrases. It is further contemplated that the pause may be actively introduced in the speech recognition. For example, when a pause is placed after (the nearest), the speech translation device may display that this matches the portion (the nearest) in <s1> (where is the nearest <s1>?) so as to lead the user to speak the sequel of the sentence after confirmation.
While in this embodiment, a word inserted in a slot is recognized within the range of words registered in the dictionary, all words cannot be previously registered in the dictionary. Particularly, nouns such as proper nouns, local special products and so on cannot be covered by the dictionary, although they are rather important for conversations during travels. Nevertheless, when the user wants to use such a word, he may often know the word in the original language, and therefore he can mimic anyhow the pronunciation of the word, if only word, in many cases. Keeping the foregoing assumption in mind, it is contemplated that when the user orally inputs an expression within a slot while holding down a particular button, the speech translation device outputs a translated sentence embedded with the pronunciation inputted by the user as it is in a portion associated with the slot. As described above, with the employment of the method of creating finite state automatons corresponding to phrases, and corresponding the created finite state automatons to sentence templates including the phrases, it is possible to identify a sentence template from phrases before and after a portion spoken by the user as he holds down the particular button. In this way, it is possible to use a sentence template such as (How many minutes do I have to wait for [this attraction]?) to speak ┌Back to the future (How many minutes do I have to wait for Back to the future?). In addition, with respect to a particular slot such as <S1> in <s1> (My name is <S1>.), the pronunciation inputted by the user as it is may be embedded in a portion associated with the slot in a translated sentence.
While in this embodiment, sentence templates compared with a spoken sentence are limited to those displayed on the screen, all sentence templates retrieved with a keyword may be compared with the spoken sentence. Alternatively, sentence templates previously selected by the user or most recently used sentence templates may be stored in a “user sentence template file” such that these sentence templates are compared with a spoken sentence.
When using the method of creating finite state automatons corresponding to phrases, and corresponding the created finite state automatons to sentence templates including the phrases, it is contemplated that when a sentence template is displayed, a portion of the sentence template which requires a voice input may be marked with a wave line or the like so as to indicate the user that the user need not speak the entire sentence. This method can improve the usability of the speech translation device. For example, with a sentence (Please find out the earliest available flight.), the user may only speak a part of the sentence such as (Find out the earliest available flight) or (the earliest available flight), whereby the user is less burdened with the voice input.
Next, how to display and correct a sentence recognition result will be described referring again to
Next, the translation will be described continuously referring to
At a translation result display step (323), the speech translation device displays a translation result display screen as illustrated in
While the present invention has been described in the context of an embodiment as a portable speech translation device, the present invention may also be a recording medium which has recorded thereon the flows illustrated in
Also, in another form of translation device, an alternative user interface may be envisaged. For example, it is contemplated that a speech translation device installed at the reception of a hospital, a public office, a hotel or the like may be provided with a touch panel screen such that the speech translation device only generates a word which is replaced by a person touching a slot with a finger. While the foregoing embodiment is configured to retrieve sentence templates with an orally inputted keyword in consideration of a reduction in the size of the display screen and one-hand held operability, it is also possible to classify sentence templates in accordance with a scene or a purpose of speech (question, request, explanation, or the like) and narrow down the sentence templates by displaying a menu showing such options so that the user may select any option from the menu.
While the foregoing embodiment has been described for a speech translation device for translating from Japanese to English, the present invention can be applied to any pair of other languages. Also, in the bilingual sentence template of the foregoing embodiment, information for recognition is described for the sentence template in the source language, while information for generation is described for the sentence template in the target language. Alternatively, when information for recognition and information for generation are described for both the template sentences in the source and target languages, the translation may be bi-directionally executed. For performing such bi-directional translation, it is effective to correspond a sentence template for a question sentence to sentence templates for answer sentences in a manner similar to that used to correspond a basic sentence to detailed sentences in the foregoing embodiment.
According to the present invention, it is possible to rapidly retrieve sentence templates matching the user's intent of speech from an orally inputted keyword to lead the user's utterance. Since the user speaks viewing the sentence templates, the user can speak what he wants to say in the form of complete sentence. In addition, since the user can input and speak an arbitrary expression in a slot of a sentence template, the user is free from a troublesome manipulation for replacing a word in the slot. Thus, the present invention can realize a translation device which provides both advantages of a table look-up translation device and advantages of a machine translation device.
While the present invention has been described above in connection with the preferred embodiments, one of ordinary skill in the art would be enabled by this disclosure to make various modifications to this embodiment and still be within the scope and spirit of the invention as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
11-001669 | Jan 1999 | JP | national |
Number | Date | Country | |
---|---|---|---|
Parent | 09478336 | Jan 2000 | US |
Child | 11042147 | Jan 2005 | US |