|
| | |||||||
| Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications. |
| | LinkBack | Thread Tools |
| |||
| InkAnalyzer - SetStrokesLanguageId Hello, as discussed earlier in this group, the MS HWR engine does not provide confidence values for german language. In the case of restricting the result to digits, of course we could switch to english recognition language for getting confidence values. using(InkAnalyzer analyzer = new InkAnalyzer(tempInk,invisibleForm)) { AnalysisHintNode hintNode = analyzer.CreateAnalysisHint(); ...set factoid, coerce... RecognizerGuide myGuide = new RecognizerGuide(); analyzer.AddStrokes(tempInk.Strokes); analyzer.SetStrokesLanguageId(tempInk.Strokes,getC ountryID(Languages.English_United_Kingdom.ToString ())); AnalysisStatus status = analyzer.Analyze(); ... } Traversing the results I see, that only for a "Microsoft.Ink.AnalysisHintNode" I get the confidence value (but I don't get a result there...) Can anyone give me a hint? The result in a xml structure I receive is: <icr_response successful="True" message="Started."> <element type="Microsoft.Ink.RootNode"> <rectangle /> <results> <result text="17" confidence="Unknown"> <shape shapeType="" /> </result> </results> <element type="Microsoft.Ink.WritingRegionNode"> <rectangle> <upperleft x="3386" y="5280" /> <lowerright x="3588" y="5455" /> </rectangle> <results> <result text="17" confidence="Unknown"> <shape shapeType="" /> </result> </results> <element type="Microsoft.Ink.ParagraphNode"> <rectangle> <upperleft x="3386" y="5280" /> <lowerright x="3588" y="5455" /> </rectangle> <results> <result text="17" confidence="Unknown"> <shape shapeType="" /> </result> </results> <element type="Microsoft.Ink.LineNode"> <rectangle> <upperleft x="3386" y="5280" /> <lowerright x="3588" y="5455" /> </rectangle> <results> <result text="17" confidence="Unknown"> <shape shapeType="" /> </result> </results> <element type="Microsoft.Ink.InkWordNode"> <rectangle> <upperleft x="3386" y="5280" /> <lowerright x="3588" y="5455" /> </rectangle> <results> <result text="17" confidence="Unknown"> <shape shapeType="" /> </result> </results> </element> </element> </element> </element> <element type="Microsoft.Ink.AnalysisHintNode"> <rectangle /> <results> <result text="" confidence="Strong"> <shape shapeType="" /> </result> </results> </element> </element> </icr> Best regards, Michael |
| |||
| Re: InkAnalyzer - SetStrokesLanguageId The problem is solved: The "Microsoft English (UK) Handwriting Recognizer, 2057" seems not to support confidence values, too. But the "Microsoft English (US) Handwriting Recognizer, 1033" does. Best regards, Michael "Michael Resch" <joboe@gmx.de> schrieb im Newsbeitrag news:5d52ohF32a802U1@mid.individual.net... > Hello, > > as discussed earlier in this group, the MS HWR engine does not provide > confidence values for german language. In the case of restricting the > result to digits, of course we could switch to english recognition > language for getting confidence values. > > using(InkAnalyzer analyzer = new InkAnalyzer(tempInk,invisibleForm)) > { > > AnalysisHintNode hintNode = analyzer.CreateAnalysisHint(); > > ...set factoid, coerce... > > RecognizerGuide myGuide = new RecognizerGuide(); > > analyzer.AddStrokes(tempInk.Strokes); > > analyzer.SetStrokesLanguageId(tempInk.Strokes,getC ountryID(Languages.English_United_Kingdom.ToString ())); > AnalysisStatus status = analyzer.Analyze(); > > ... > } > > Traversing the results I see, that only for a > "Microsoft.Ink.AnalysisHintNode" I get the confidence value (but I don't > get a result there...) > > Can anyone give me a hint? > > The result in a xml structure I receive is: > > <icr_response successful="True" message="Started."> > <element type="Microsoft.Ink.RootNode"> > <rectangle /> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.WritingRegionNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.ParagraphNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.LineNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.InkWordNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > </element> > </element> > </element> > </element> > <element type="Microsoft.Ink.AnalysisHintNode"> > <rectangle /> > <results> > <result text="" confidence="Strong"> > <shape shapeType="" /> > </result> > </results> > </element> > </element> > </icr> > > Best regards, > > Michael > |
| |||
| Re: InkAnalyzer - SetStrokesLanguageId That's correct - only the US English handwriting recognizer provides confidence information about the recognition results. Thanks, Stefan Wick "Michael Resch" wrote: > The problem is solved: > > The "Microsoft English (UK) Handwriting Recognizer, 2057" seems not to > support confidence values, too. But the "Microsoft English (US) Handwriting > Recognizer, 1033" does. > > Best regards, > > Michael > > "Michael Resch" <joboe@gmx.de> schrieb im Newsbeitrag > news:5d52ohF32a802U1@mid.individual.net... > > Hello, > > > > as discussed earlier in this group, the MS HWR engine does not provide > > confidence values for german language. In the case of restricting the > > result to digits, of course we could switch to english recognition > > language for getting confidence values. > > > > using(InkAnalyzer analyzer = new InkAnalyzer(tempInk,invisibleForm)) > > { > > > > AnalysisHintNode hintNode = analyzer.CreateAnalysisHint(); > > > > ...set factoid, coerce... > > > > RecognizerGuide myGuide = new RecognizerGuide(); > > > > analyzer.AddStrokes(tempInk.Strokes); > > > > analyzer.SetStrokesLanguageId(tempInk.Strokes,getC ountryID(Languages.English_United_Kingdom.ToString ())); > > AnalysisStatus status = analyzer.Analyze(); > > > > ... > > } > > > > Traversing the results I see, that only for a > > "Microsoft.Ink.AnalysisHintNode" I get the confidence value (but I don't > > get a result there...) > > > > Can anyone give me a hint? > > > > The result in a xml structure I receive is: > > > > <icr_response successful="True" message="Started."> > > <element type="Microsoft.Ink.RootNode"> > > <rectangle /> > > <results> > > <result text="17" confidence="Unknown"> > > <shape shapeType="" /> > > </result> > > </results> > > <element type="Microsoft.Ink.WritingRegionNode"> > > <rectangle> > > <upperleft x="3386" y="5280" /> > > <lowerright x="3588" y="5455" /> > > </rectangle> > > <results> > > <result text="17" confidence="Unknown"> > > <shape shapeType="" /> > > </result> > > </results> > > <element type="Microsoft.Ink.ParagraphNode"> > > <rectangle> > > <upperleft x="3386" y="5280" /> > > <lowerright x="3588" y="5455" /> > > </rectangle> > > <results> > > <result text="17" confidence="Unknown"> > > <shape shapeType="" /> > > </result> > > </results> > > <element type="Microsoft.Ink.LineNode"> > > <rectangle> > > <upperleft x="3386" y="5280" /> > > <lowerright x="3588" y="5455" /> > > </rectangle> > > <results> > > <result text="17" confidence="Unknown"> > > <shape shapeType="" /> > > </result> > > </results> > > <element type="Microsoft.Ink.InkWordNode"> > > <rectangle> > > <upperleft x="3386" y="5280" /> > > <lowerright x="3588" y="5455" /> > > </rectangle> > > <results> > > <result text="17" confidence="Unknown"> > > <shape shapeType="" /> > > </result> > > </results> > > </element> > > </element> > > </element> > > </element> > > <element type="Microsoft.Ink.AnalysisHintNode"> > > <rectangle /> > > <results> > > <result text="" confidence="Strong"> > > <shape shapeType="" /> > > </result> > > </results> > > </element> > > </element> > > </icr> > > > > Best regards, > > > > Michael > > > > > |
| |||
| Re: InkAnalyzer - SetStrokesLanguageId Hi Michael, good to see your problem is resolved. I wanted to recommend that you download my Ink Analyzer Explorer application at www.einsteintech.net which will let you experiment with the Ink Analyzer and see how it responds to certain properties and also lets you interactively explore the context node tree. http://www.einsteintech.net/apps/Dis...app=IAExplorer -- Josh Einstein (Tablet PC MVP) Einstein Technologies Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com "Michael Resch" <joboe@gmx.de> wrote in message news:5d52ohF32a802U1@mid.individual.net... > Hello, > > as discussed earlier in this group, the MS HWR engine does not provide > confidence values for german language. In the case of restricting the > result to digits, of course we could switch to english recognition > language for getting confidence values. > > using(InkAnalyzer analyzer = new InkAnalyzer(tempInk,invisibleForm)) > { > > AnalysisHintNode hintNode = analyzer.CreateAnalysisHint(); > > ...set factoid, coerce... > > RecognizerGuide myGuide = new RecognizerGuide(); > > analyzer.AddStrokes(tempInk.Strokes); > > analyzer.SetStrokesLanguageId(tempInk.Strokes,getC ountryID(Languages.English_United_Kingdom.ToString ())); > AnalysisStatus status = analyzer.Analyze(); > > ... > } > > Traversing the results I see, that only for a > "Microsoft.Ink.AnalysisHintNode" I get the confidence value (but I don't > get a result there...) > > Can anyone give me a hint? > > The result in a xml structure I receive is: > > <icr_response successful="True" message="Started."> > <element type="Microsoft.Ink.RootNode"> > <rectangle /> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.WritingRegionNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.ParagraphNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.LineNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > <element type="Microsoft.Ink.InkWordNode"> > <rectangle> > <upperleft x="3386" y="5280" /> > <lowerright x="3588" y="5455" /> > </rectangle> > <results> > <result text="17" confidence="Unknown"> > <shape shapeType="" /> > </result> > </results> > </element> > </element> > </element> > </element> > <element type="Microsoft.Ink.AnalysisHintNode"> > <rectangle /> > <results> > <result text="" confidence="Strong"> > <shape shapeType="" /> > </result> > </results> > </element> > </element> > </icr> > > Best regards, > > Michael > |
| Bookmarks |
| Thread Tools | |
| |
| New To Technology Questions? | Do You Need Help with Your Computer or Device? | Do You Need Help with this site? |