The present application relates to a device and a method adapted for translation. In particular the application relates to a device and a method adapted for translation using a flexible phrase.
Many contemporary devices offer translation capabilities such as computers, portable and stationary, personal digital assistants, PDAs and mobile communication terminals. This can be done in many ways like for example word by word, sentence by sentence or paragraph by paragraph using intelligent semantic analysis or phrase by phrase. These all suffer from disadvantages. Word by word translation often lose track of the semantic meaning and end up making little or no sense. Translation using intelligent semantic analysis is often difficult to implement correctly and requires lots of memory space and computing power which in practice makes it very slow and/or expensive. If you use and knows what he wants to stay in the different language he can use a phrase dictionary where common phrases are stored in both languages. Manually, the user chooses the phrase most closely resembling what he wants to say and this phrase is then translated then into the other language. This works well for a small group of phrases but it requires that the phrases are looked for manually or input exactly as they are stored. This becomes cumbersome for large texts and also requires a great many phrases to be stored to receive a good accuracy for the translations.
Thus there exists a need for a translation engine that is easy to use, but gives accurate translations, but does not require a lot of CPU power or a large storage space.
On this background, it would be advantageous to provide a device that overcomes or at least reduces the drawbacks indicated above.
In one embodiment, this can be achieved having flexible phrases that have fields that can be filled-in.
In another embodiment, this can be achieved by providing a device comprising a memory and a processor, wherein said device is configured to identify a flexible phrase having at least one empty field, receive input corresponding to at least one field value and insert said at least one field value into said at least one empty filed thereby completing said flexible phrase.
By providing a phrase with empty fields that can be filled in a more flexible phrase is achieved which do not need to be exactly stated.
A device may be further configured to identify said flexible phrase from a first phrase in a first language wherein said flexible phrase is in a second language. The flexible phrase can advantageously be used for translating a phrase in one language into another language.
A device may be further configured to receive said first phrase through a keypad. This allows a user to input a phrase he wants to have translated into a device. The keypad can be both mechanical and virtual. It should also be noted that the input could also be done via Speech recognition (such as ASR), pen input (such as Hand writing recognition HWR) or optical recognition (such as OCR) using a scanner, a camera or an image stored in the device.
A device may be further configured to receive said first phrase through a data stream. This allows for translating one or more phrases that are being streamed to or by other means sent to the device.
A device may be further configured to receive said first phrase through a data collection stored in said memory. This allows for translating at least one phrase or a text body that is stored in said device or in a medium associated with the device such as magnetic or optical memory.
A device may be further configured to receive at least one field value through user input. This allows a user to complete the phrase and thus control what phrase he would like to have translated.
A device may be further configured to receive at least one field value by extracting said at least one field value from said first phrase. This allows for a more automated translation of at least one phrase without too much user interaction. This can be done by parsing for names and/or numbers as said at least one field value.
A device may be further configured to identify said flexible phrase by comparing said first phrase to at least one of a plurality of possible flexible phrases. This provides the device with a possibility to search for a flexible phrase in another language that matches a phrase received and that is to be translated, i.e. the first phrase.
A device may be further configured to perform a word by word comparison of said first phrase to said at least one of said plurality of possible flexible phrases. This is a very easy way to compare between a number of phrases and it is easy to implement. Naturally these possible flexible phrase would consist of a pair of phrases one for each language or the comparison would have little effect.
A device may be further configured to calculate a hit rate indicating how well a said first phrase compares to a possible flexible phrase. By calculating a hit rate the device will obtain a measurement of how good the comparison is and make it easier to identify the appropriate flexible phrase, especially if the comparison does not produce an exact match. The calculation can be weighted of similarities between words possibly also including synonyms and/or be weighted according to displacement of a word in one phrase to the corresponding word in another phrase.
A device may be further configured to identify a possible flexible phrase having a highest hit rate as said flexible phrase. If a total or exact match can not be found the device can choose the possible flexible phrase that has the highest hit rate which would be the one most resembling the sought for flexible phrase.
A device may be further configured to display on a display the possible phrases having highest hit rates for user identification of a possible flexible phrase as said flexible phrase. This allows a user to make the final decision as to which flexible phrase should be used if no exact match is found. Naturally the possible flexible phrases displayed are displayed in the same language as the first phrase is in as the user might otherwise not understand what phrases are being proposed.
A device may be further configured to regard at least one of said at least one possible flexible phrases as matches when said hit rate is above a threshold value. Using a threshold allows for both determining more exactly when a match is a match and also easier deciding which possible phrases should be displayed.
A device may be further configured to parse said first phrase to identify words being one of names or numbers and to ignore these identified words when comparing said first phrase to said at least one of said plurality of said possible flexible phrases. As a phrase could be uttered with many different names or numbers which still wouldn't affect the general underlying phrase memory space can be save by ignoring these words and thereby not having to store all phrases in all possible combinations.
A device may further have said plurality of possible flexible phrases stored in a dictionary in said memory. This allows for a fast access to said possible flexible phrases which enables a fast translation.
A device may be further configured to store said plurality of possible flexible phrases at least partially in one or more of a message inbox, a phonebook, a calendar or a game application stored in said memory. Using also other applications and their associated data can save storage space as some of the data in these applications may supplement the data in a specified dictionary which would in turn reduce the amount of redundant memory use.
A device may be further configured to download said plurality of possible flexible phrases from a remote memory. By allowing download of possible flexible phrases (and their paired phrase in another language) memory space at a local site can be spared.
A device may be further configured to store said plurality of possible flexible phrases in a remote memory at a remote location and said comparing is performed at said remote location. In doing this the device can make use of a potentially faster processor, a larger memory space and be freed to be used for other tasks while the translation is taking place.
A device as above may be a server.
A device such as above may be a mobile communications terminal.
In one embodiment the above may also be achieved by a method comprising identifying a flexible phrase having at least one empty field, receiving at least one field value and inserting said at least one field value into said at least one empty filed and thereby completing said flexible phrase.
This method and the methods below have the same or similar advantages as explained above for a device.
A method may further be used on a flexible phrase that corresponds to a first phrase in a first language wherein said flexible phrase is in a second language.
A method may further comprise receiving said first phrase through a keypad either virtual or mechanic. It should also be noted that the input could also be done via Speech recognition (such as ASR), pen input (such as Hand writing recognition HWR) or optical recognition (such as OCR) using a scanner, a camera or an image stored in the device.
A method may further comprise receiving said first phrase through a data stream.
A method may further comprise receiving said first phrase through a data collection stored in a memory.
An alternative is a method wherein receiving at least one field value comprises receiving said at least one field value through user input.
An alternative is a method wherein receiving at least one field value comprises extracting said at least one field value from said first phrase.
An alternative is a method wherein said extracting comprises parsing for names and/or numbers as said at least one field value.
An alternative is a method wherein identifying said flexible phrase comprises comparing said first phrase to at least one of a plurality of possible flexible phrases.
An alternative is a method wherein said comparing comprises a word by word comparison of said first phrase to said at least one of said plurality of possible flexible phrases.
An alternative is a method wherein said comparing comprising calculating a hit rate indicating how well a said first phrase compares to a possible flexible phrase.
An alternative is a method wherein said identifying comprises selecting a possible flexible phrase having a highest hit rate as said flexible phrase.
An alternative is a method wherein said identifying comprises displaying at least one possible phrase having a highest hit rate for user selection of a possible flexible phrase as said flexible phrase.
An alternative is a method wherein said identifying comprises regarding at least one of said at least one possible flexible phrase as matches when said at least one possible flexible phrase has a hit rate that is above a threshold value.
An alternative is a method wherein said comparing comprises parsing said first phrase to identify words being one of names or numbers and
ignoring said identified words when comparing said first phrase to said at least one of said plurality of said possible flexible phrases.
An alternative is a method wherein said comparing comprises fetching said plurality of possible flexible phrases from a local memory.
An alternative is a method wherein said comparing comprises fetching at least a part of said plurality of possible flexible phrases from one or more of a message inbox, a phonebook, a calendar or a game application stored in said local memory.
An alternative is a method wherein said comparing comprises fetching said plurality of possible flexible phrases from a remote memory.
An alternative is a method wherein said comparing comprises sending said first phrase to a remote location and comparing at said remote location.
In another embodiment the above can be achieved by providing a computer readable medium including at least computer program code for controlling a device comprising a memory and a display, said computer readable medium comprising software code for identifying a flexible phrase having at least one empty field, software code for receiving at least one field value and software code for inserting said at least one field value into said at least one empty field thereby completing said flexible phrase. By using program code such as this it would be possible to automate a device giving it the advantages as discussed above.
In a further embodiment, the above object is also achieved by providing a computer readable medium including at least computer program code for controlling a device to represent a flexible phrase having at least one empty field. This provides for a possibility of storing and using flexible phrases as described above in various terminals and also to send or transfer them between different devices.
A computer readable medium may further include computer program code for controlling a device to further represent a first phrase to said flexible phrase. This allows for storing, using or transferring of the first phrases on different devices.
A computer readable medium may further be a signal which enables the program code to be transferred more easily between different devices either through wired or wireless transmission.
In another embodiment the above is also achieved by providing a server arranged to receive a first phrase, identify a flexible phrase corresponding to said first phrase, return said flexible phrase, and wherein said flexible phrase comprises at least one empty field, which empty field is supplemented with a field value so as to form a complete flexible phrase.
In one embodiment, the above is also achieved by providing a system comprising a server as above and a terminal wherein said terminal is arranged to receive a first phrase,
upload said first phrase to said server and receive a flexible phrase corresponding to said first phrase from said server, and wherein said server is arranged to receive said first phrase from said terminal, identify said flexible phrase corresponding to said first phrase and return said flexible phrase to said terminal, and wherein said flexible phrase comprises at least one empty field, which empty field is supplemented with a field value so as to form a complete flexible phrase. This enables a quick and efficient translation in a terminal without setting too high demands on the terminal that may be low cost as the computationally heavy comparison and memory consuming storage of possible flexible phrases is performed at a larger server. This provides for cheaper terminals that can also execute other tasks while waiting for a translation to be done by the server.
An alternative system is a system wherein said terminal is arranged to provide said field value. This enables the terminal to provide the server with the field values as the server might not have knowledge of these from either user input or application data. This could be done through a user input
An alternative system is a system wherein said server is arranged to provide said field value. This makes it possible for the terminal to provide the fields without requiring user attention or consuming processor power from the terminal. This can be done by extracting said field value from said first phrase.
Another aspect of the disclosed embodiments is met by a method and a device as below.
The aspects of the disclosed embodiments provide a method comprising displaying a first phrase having at least one first field and a second phrase having at least one second field, wherein said first phrase is in one language and said second phrase is in another language and said at least one first field is associated to said at least one second field. This enables phrases that have corresponding phrases in other languages to be used in a very flexible and easy to use manner.
An alternative method further comprises updating said at least one first fields and at the same time updating said at least one second fields or updating said at least one second fields and at the same time updating said at least one first fields. By associating fields and updating associated fields at the same time here meaning either concurrently, simultaneously or followed shortly thereafter, it is easy for a user to fill in the values correctly as the associated fields in the first and second phrase might be in different order.
In a further alternative the fields are translated into the other language as they are updated in the associated field.
The above mentioned aspects and the above mentioned advantages are also met by and obtained by providing a device comprising a display and keypad configured to display a first phrase having at least one first field and to display a second phrase having at least one second field, wherein said first phrase is in one language and said second phrase is in another language and said at least one first field is associated to said at least one second field.
An alternative device is configured to update said at least one first fields and at the same time update said at least one second fields or
to update said at least one second fields and at the same time update said at least one first fields.
In a further alternative the fields are translated into the other language as they are updated in the associated field.
The above mentioned aspects and the above mentioned advantages are also met by and obtained by providing a user interface comprising a display and keypad configured to display a first phrase having at least one first field and to display a second phrase having at least one second field, wherein said first phrase is in one language and said second phrase is in another language and said at least one first field is associated to said at least one second field.
An alternative user interface is configured to update said at least one first fields and at the same time update said at least one second fields or
to update said at least one second fields and at the same time update said at least one first fields.
In a further alternative the fields are displayed as translated into the other language as they are updated in the associated field.
Further aspects, features, advantages and properties of the touchpad, method and computer readable medium according to the disclosed embodiments will become apparent from the detailed description.
In the following detailed portion of the present description, the disclosed embodiments will be explained in more detail with reference to the exemplary embodiments shown in the drawings, in which:
In the following detailed description, the device, the method and the software product according to the teachings for this application in the form of a cellular/mobile phone will be described by the embodiments. It should be noted that although only a mobile phone is described the teachings of this application can also be used in any electronic device and preferably in portable electronic devices such as laptops, Personal digital assistants (PDAs), mobile communication terminals, electronic books and notepads and other electronic devices such as dictionaries and word books.
Non vocal user input is mainly via a keypad 7 with discrete mechanical keys 9, 10, and 13. The screen 3 is typically made of an LCD with back lighting, such as a TFT matrix capable of displaying color images. The screen or display 3 can also be a touch screen. If said screen 3 is a touch screen it could be arranged to implement one or more of the mechanical keys 9, 10 or 13 or the keypad 7. It should also be noted that the input could also be done via Speech recognition (such as ASR), pen input (such as Hand writing recognition HWR) or optical recognition (such as OCR) using a scanner, a camera or an image stored in the device. The various input methods mentioned in this application, i.e. keypad, both virtual and mechanical, touch input, speech input, camera input or image analysis can be used for any of the different inputs mentioned in this application and in any combination. For example could a phrase be identified using an image (either stored in the device or taken with a camera) whereby the phrase is marked by a user and a field value could then be input using speech input. This would make the idea of this application more usable in many more situations and also adaptable to users with potential handicaps or in situations where use of fingers or hands is restricted. Another example is to speak the phrase and then add a field value by typing it which would enable input of a phrase and a field value that might be difficult to pronounce as is common with foreign languages. Using a camera would also enable input of characters that are not known to the user or possible to input using the keypad or touch pad on the device. One example of this is a Dutch user traveling in china and wanting to translate a phrase stating that he is staying at a certain hotel, but he can not pronounce the hotel name correctly, doesn't not know how to type it using pin yin so he takes a picture of the Hotel logo and identifies the character which is then used with the translated phrase. This last example is also a good example of when a server would be beneficial to identify said phrase and to construct the resulting phrase. This because a mobile communications terminal such as a phone might not be able to interpret the image taken by the camera, but the use would then simply send the image and the phrase to be translated to a server and the server, having greater resources, would then more likely be able to extract the character from the image and interpret it into a usable character code (such as the UNI code) and return the ready made translated flexible phrase.
The keys 9, 10 & 13 are used for, for example, dialing phone numbers or entering text The keypad 7 includes a four-way navigation plus select key 10 that is used for navigation and for selection of the function indicated in the label in the display screen 3 above the navigation key 10, the left soft key 9 and the right softkey 9 that are used for selecting function indicated in the respective label in the display screen 3 above the soft keys 9. Call handling is performed with an off hook key 11 for accepting incoming calls and for initiating a new call and the on hook key 12 is used for rejecting incoming calls and for ending ongoing calls. The labels above the soft keys 9 and above the navigation key 10 are adapted to the current mode of the phone.
The keypad 7 could also be a virtual keypad implemented on a touch screen which may be the same screen as screen 3.
The processor 18 also forms the interface for some of the peripheral units of the device, including a Flash Read Only Memory (ROM) 16, the screen 3, the mechanical keypad 7, and an FM radio 26.
A device and a method will now be simultaneously described with reference to
The identification step 400 can be executed in a number of ways. One example is shown in
The library could either be stored locally in the device or remotely.
One alternative is to receive a starting phrase, or first phrase, in step 410 see
It can also be done by letting the CPU 17 calculate a hit rate in step 430, see
Before the comparison is made in step 420, see
It should be noted that the plurality of possible flexible phrases could both be stored locally in the device or remotely. If stored locally it could both be stored in a special dictionary or parts of it could be stored in data storages belonging to various applications such as the message in and outboxes, the phonebook, games and calendar applications as these applications often have long text strings containing many useful phrases. This would help save storage space as some phrases would not need to be stored twice in the same device.
When the plurality of possible flexible phrases is stored remotely the comparison could also be done remotely. This would save time and bandwidth as only the first phrase and the resulting flexible phrase would be needed to be communicated. The device could then have a processor 17 of lower processing power, a smaller memory space 15 and 16 and also be left to perform other tasks while the comparison is taking place.
It should be noted that the first phrase and the start phrase are the same according to the teachings of this application. It should also be noted that the second phrase and the flexible phrase are also the same according to the teachings of this application.
Another embodiment will now be described with reference to
The phrase can now be used for its intended purpose, whether it is to be spoken, written down, stored or used by some other application.
The updating of the associated fields is described above to be done at the same time. This could be done so that they are either updated simultaneously character by character or after a field has been accepted or finished. In other words the updating can be either simultaneously, concurrently or shortly thereafter.
It should be noted that before arriving at the screen shot 61 of
One other possibility is that the user simply inputs what he wants to say and the device finds a phrase that resembles what the user input and displays this first phrase 62 and/or the corresponding flexible phrase 63.
Although the teaching of this application has been described in detail for purpose of illustration, it is understood that such detail is solely for that purpose, and variations can be made therein by those skilled in the art without departing from the scope of the teaching of this application.
For example, although the teaching of this application has been described in terms of a mobile phone, it should be appreciated that the disclosed embodiments may also be applied to other types of electronic devices, such as cameras, video recorders, music players, palmtop computers, PDAs, electronic devices such as dictionaries and word books and the like. It should also be noted that there are many alternative ways of implementing the methods and apparatuses of the teaching of this application. For example, a user might want to input the Icelandic version of “Aye Caramba! Johnny fell down in a glacier!” and add it to a video clip showing a person climbing out of a glacier.
The term “comprising” as used in the claims does not exclude other elements or steps. The term “a” or “an” as used in the claims does not exclude a plurality. The single processor or other unit may fulfill the functions of several means recited in the claims.