Problem while using SharpNLP-1.0.2529-Bin\ToolsExample.exe

Topics: Developer Forum, Project Management Forum, User Forum
Nov 10, 2009 at 4:00 PM

 

I am using “SharpNLP-1.0.2529-Bin\ToolsExample.exe” example. As soon as I click on “POS tagger” button I get following exception:

System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: count
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at SharpEntropy.IO.BinaryGisModelReader.ReadString()
at SharpEntropy.IO.BinaryGisModelReader.ReadPredicates(Int32[][]& outcomePatterns, Dictionary`2& predicates)
at SharpEntropy.IO.GisModelReader.ReadModel()
at SharpEntropy.IO.BinaryGisModelReader..ctor(String fileName)
at OpenNLP.Tools.SentenceDetect.EnglishMaximumEntropySentenceDetector..ctor(String name)
at ToolsExample.MainForm.SplitSentences(String paragraph)
at ToolsExample.MainForm.btnSplit_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Is their any setting I need to do to solve this problem?

Thank you

 

 

Feb 12, 2011 at 10:46 AM

your nbin files is corrupted, please download again and try. I have face this problem during last time.