BI-DIRECTIONAL HANDWRITING INSERTION AND CORRECTION
Various technologies and techniques are disclosed for providing bi-directional handwriting recognition and correction. A combined handwriting recognizer is provided that supports left-to-right and right-to-left language recognition by using a combined dictionary. The combined dictionary includes a dictionary from a language in a first direction, along with a backwards version of a dictionary from a language in a second direction. The combined recognizer is used with the combined dictionary to generate a most likely recognition result for mixed direction hand written input received from a user. Character by character correction is provided for mixed left-to-right and right-to-left text. The most likely recognition result is displayed in a visual order. The user can correct a particular character to a different character. When recognized text needs to be sent to a separate application, an inverse bi-directional process is performed to convert the text from the visual order to the logical order.
Latest Microsoft Patents:
- CACHE SERVICE FOR PROVIDING ACCESS TO SECRETS IN CONTAINERIZED CLOUD-COMPUTING ENVIRONMENT
- SELECTIVE JUST-IN-TIME TRANSCODING
- Personalized Branding with Prompt Adaptation in Large Language Models and Visual Language Models
- FAN-IN AND FAN-OUT ARCHITECTURE FOR SUPPLY CHAIN TRACEABILITY
- HIGHLIGHTING EXPRESSIVE PARTICIPANTS IN AN ONLINE MEETING
This application is a continuation of U.S. application Ser. No. 11/811,367, filed on Jun. 8, 2007, entitled “BI-DIRECTIONAL HANDWRITING INSERTION AND CORRECTION,” at least some of which may be incorporated herein.
BACKGROUNDThere are thousands of languages for communication that exist today that have handwritten words, as well as spoken words. Some of these languages, such as English, are written in a left-to-right format. This means that the writer will hand write the desired words in a direction that is from left-to-right. Other languages, such as Hebrew and Arabic, are written in a right-to-left format. This means that the writer will write the desired words in a direction that is from right-to-left. The words in a right-to-left language are thus formed and written in an opposite direction than the words in a left-to-write language, and vice versa. Some languages, such as modern Hebrew, mix right-to-left words with left-to-right numbers.
In the world of pen-based computing, there are numerous computers that can be purchased with pen input capabilities, such as tablet PC's, personal digital assistants, and other similar devices. Handwriting recognizers are included on these pen-based computers to allow a user to input text in a handwritten format for recognition by the computer. A problem with current handwriting recognizers is that they have in general been designed to work in one particular direction, such as left-to-right or right-to-left. This means that a user who is multi-lingual or otherwise wishes to write a combination of mixed text in a left-to-right format along with a right-to-left format is unable to do so.
SUMMARYVarious technologies and techniques are disclosed for providing bi-directional handwriting recognition and correction. A combined handwriting recognizer is provided that supports left-to-right and right-to-left language recognition by using a combined dictionary. The combined dictionary includes a dictionary from a language in a first direction, along with a backwards version of a dictionary from a language in a second direction. The combined recognizer is used with the combined dictionary to generate a most likely recognition result for mixed hand written input received from a user. Character by character correction is provided for mixed left-to-right and right-to-left text. The most likely recognition result is displayed in a visual order. The user can correct a particular character to a different character in the combined dictionary. When recognized and/or corrected text needs to be sent to a separate application, an inverse bi-directional process is performed to convert the text from the visual order to the logical order.
In one implementation, the inverse bi-directional process receives an original visual string for handwriting that has been recognized by a combined recognizer. A beam search is then performed that uses a heuristic cost function to estimate a promise of each node being examined. When the beam search finishes, a best guess is produced for a logical order of the visual string.
This Summary was provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
For the purposes of promoting an understanding of the principles of the invention, reference will now be made to the embodiments illustrated in the drawings and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope is thereby intended. Any alterations and further modifications in the described embodiments, and any further applications of the principles as described herein are contemplated as would normally occur to one skilled in the art.
The system may be described in the general context as an application that supports bi-directional handwriting recognition, but the system also serves other purposes in addition to these. In one implementation, one or more of the techniques described herein can be implemented as features within a handwriting recognizer program, or from any other type of program or service that processes handwriting input and/or converts handwritten input to formats used by other applications.
In one implementation, a system is provided that allows a user to enter text in a mixed format from left-to-right and right-to-left languages in a handwriting input area. The recognizer is able to recognize the characters in both directional languages, and display the results to the user. The user can then perform character by character correction of the recognized results as desired. The user can send the results to another application, such as a word processing program, spreadsheet, etc. When an option to send the recognized text to another application is selected, an inverse bi-directional process is executed in order to convert the visual order of the recognized text into the logical order that is expected by the other application. The Unicode character ordering is an example of a logical ordering, and is the logical ordering that is used in the figures herein. The Unicode display order is an example of a visual ordering, and is the visual ordering that is used in the figures herein.
If a user desires to send the recognized text to another application, an inverse bi-directional process is performed to replace and/or insert the text in the application with the recognized and optionally corrected text present in the handwriting input area. This inverse bi-directional process converts the visual order of the recognized text into the logical order expected by most other applications, as described in further detail in several figures herein, such as
Turning now to
Bi-directional handwriting recognition application 200 includes program logic 204, which is responsible for carrying out some or all of the techniques described herein. Program logic 204 includes logic for creating and/or accessing a combined dictionary 206; logic for providing a combined handwriting recognizer that supports left-to-right and right-to-left language recognition by using a combined dictionary 208; logic for providing a handwriting input area that allows character by character correction of mixed left-to-right and right-to-left text in a visual order 210; logic for providing an inverse bi-directional process that can send mixed text that was recognized and/or corrected to another application in a logical order 212; and other logic for operating the application 220. In one implementation, program logic 204 is operable to be called programmatically from another program, such as using a single call to a procedure in program logic 204.
Turning now to
In one form, the process of
ov=original visual
cv=constructed visual
ol=original logical
cl=constructed logical
When the cost function starts, the current cost is shown 452 (with a starting value of 253), along with various other values, such as the original visual string 454. In this example, the original logical string prior to the correction 456 is also available, but is optional. The constructed visual 458 and the constructed logical 460 as they stand at the current moment are also shown, which are still incorrect because the bi-directional process has just begun. Each time the cost function is called, the current cost is tracked, and the revisions to the constructed visual and constructed logical values are determined based on the best possible result of the ones considered. The example shown in
At some point during the iterations, control characters may be inserted that indicate how the logical string should be displayed. At the point the current cost is 151.1 at point 462 on the diagram, control characters 463 are inserted to indicate that the constructed logical string 470 should have an RLE encoding at the 8th position. Question marks are used in this example to show the formatting characters inserted into the strings, since certain encodings cannot otherwise be displayed in a string. The original visual 464 and the constructed visual 468 have become identical at this point in the calculation. During the last iteration of this example when the current cost is 7 at point 472, there are multiple control characters (473 and 474). These control characters indicate that the RLE encoding should be inserted into the 9th position of the constructed logical strings 480, and that a PDF encoding should be inserted into the 22nd position. This is again shown by the question marks inserted in the string, since these characters cannot easily be displayed.
Note at this last iteration 472, the original visual 475 and the constructed visual 478 are identical, which is a good indication. Furthermore, the original logical string 476 is similar to the constructed logical 480, although they are not identical, because of corrections the user has made. The constructed logical string 480 with the encodings 473 are then converted as appropriate and passed to the other application, such as a word processor or spreadsheet, to allow the user to further work with the data.
Turning now to
As shown in
Additionally, device 540 may also have additional features/functionality. For example, device 540 may also include additional storage (removable and/or non-removable) including, but not limited to, magnetic or optical disks or tape. Such additional storage is illustrated in
Computing device 540 includes one or more communication connections 556 that allow computing device 540 to communicate with other computers/applications 558. Device 540 may also have input device(s) 554 such as keyboard, mouse, pen, voice input device, touch input device, etc. Output device(s) 552 such as a display, speakers, printer, etc. may also be included. These devices are well known in the art and need not be discussed at length here. In one implementation, computing device 540 includes bi-directional handwriting recognition application 200, as described in the earlier figures.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims. All equivalents, changes, and modifications that come within the spirit of the implementations as described herein and/or by the following claims are desired to be protected.
For example, a person of ordinary skill in the computer software art will recognize that the client and/or server arrangements, user interface screen content, and/or data layouts as described in the examples discussed herein could be organized differently on one or more computers to include fewer or additional options or features than as portrayed in the examples.
Claims
1. A method, comprising:
- identifying received text using a combined dictionary comprising a first dictionary for a language written in a left-to-right direction and a second dictionary for a language written in a right-to-left direction.
2. The method of claim 1, one or more directions of one or more entries in the combined dictionary reversed such that one or more terms appear backwards.
3. The method of claim 1, comprising providing a correction feature that supports character by character correction of at least one of left-to-right and right-to-left text in a visual order.
4. The method of claim 3, comprising performing the character by character correction in a handwriting input area.
5. The method of claim 1, comprising converting mixed left-to-right and right-to-left text in a visual order to a logical order using an inverse bi-directional process.
6. The method of claim 5, comprising sending at least some of the mixed text, obtained from a handwriting input area, to an application in the converted logical order.
7. The method of claim 1, comprising estimating respective character breaks for mixed handwritten text if breaks between respective characters of the mixed handwritten text do not comprise whitespace.
8. A system configured to perform the method of claim 1.
9. A computer readable medium comprising instructions that when executed by a microprocessor perform a method, comprising:
- identifying received text using a combined dictionary comprising a first dictionary for a language written in a left-to-right direction and a second dictionary for a language written in a right-to-left direction.
10. The computer readable medium of claim 9, the method comprising receiving input from a user to correct a first character in the identified received text.
11. The computer readable medium of claim 10, the method comprising displaying the corrected first character and a remaining set of one or more uncorrected characters in the identified received text as a second set of identified text.
12. The computer readable medium of claim 11, the method comprising receiving a selection to send the second set of identified text to a separate application.
13. The computer readable medium of claim 12, the method comprising converting the second set of identified text from a visual order to a logical order using an inverse bi-directional process based upon the received selection.
14. The computer readable medium of claim 13, the method comprising sending the second set of identified text in the logical order to the separate application.
15. The computer readable medium of claim 13, the method comprising performing a beam search as part of the inverse bi-directional process.
16. A system, comprising:
- a searching module configured to perform, using a received visual string, a search that uses a heuristic cost function to estimate a promise of respective nodes; and
- an ordering module configured to determine a logical order of the received visual string based upon one or more results of the search.
17. The system of claim 16, the received visual string recognized by a combined recognizer.
18. The system of claim 16, comprising a sending module configured to send the determined logical order of the received visual string to a separate application.
19. The system of claim 18, the separate application configured to receive the determined logical order for manipulation by a user.
20. The system of claim 16, the search comprising a beam search.
Type: Application
Filed: Jan 9, 2012
Publication Date: May 3, 2012
Applicant: Microsoft Corporation (Redmond, WA)
Inventor: David V. Winkler (Seattle, WA)
Application Number: 13/346,548
International Classification: G06F 17/20 (20060101);