Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-11-2007, 07:00 AM
Michael Resch
Newsgroup Contributor
 
Posts: n/a
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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-11-2007, 07:00 AM
  #2 (permalink)  
Old 06-12-2007, 08:20 AM
Michael Resch
Newsgroup Contributor
 
Posts: n/a
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
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 06-12-2007, 02:31 PM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
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
> >

>
>
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 06-13-2007, 11:30 AM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
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
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 01:56 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0