I solve the problem using the uima jre. I had the problem using the sun jdk 1.4.2.
Gianluca > -----Messaggio originale----- > Da: Gianluca Mameli [mailto:[EMAIL PROTECTED] > Inviato: lunedì 26 febbraio 2007 9.24 > A: [email protected] > Oggetto: R: Problema with Document Analyzer > > > What versions of UIMA and Java are you using, and what is your OS? > > Java version is 1.4.2_13-b06. > > OS is Windows XP Professional SP2 > > UIMA version is UIMA_SDK_2_0_2 (I downloaded it from the > http://www.alphaworks.ibm.com/tech/uima/download site). > > Gianluca > > > This may be an issue with the Swing JTextArea widget used in the > > DocumentAnalyzer not dealing with newlines properly. The sample text > > files have CRLF newlines but the viewer may count these as just 1 > > character for purposes of computing offsets. I've heard of simliar > > problems before on older versions of Java. > > Are there anyone that solve this problem? > > Gianluca > > > > -----Messaggio originale----- > > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Adam Lally > > Inviato: venerdì 23 febbraio 2007 19.44 > > A: [email protected]; Gianluca Mameli > > Oggetto: Re: Problema with Document Analyzer > > > > Hi Gianluca, > > > > In general you need to be subscribed to the list in order to post, but > > I've manually allowed this message through. To subscribe send mail to > > [EMAIL PROTECTED] > > > > On 2/23/07, Gianluca Mameli <[EMAIL PROTECTED]> wrote: > > > <snip/> > > > I tried to parse the text in the process method (method of > > > JCasAnnotator_ImplBase implementation) using my annotation (begin and > > > end and java indexOf String method etc). It find the exact text, but > > > when document analyzer show me the result it does not a correct > > > annotation (highlight text with some offset). > > > > > > > What versions of UIMA and Java are you using, and what is your OS? > > > > This may be an issue with the Swing JTextArea widget used in the > > DocumentAnalyzer not dealing with newlines properly. The sample text > > files have CRLF newlines but the viewer may count these as just 1 > > character for purposes of computing offsets. I've heard of simliar > > problems before on older versions of Java. > > > > Regards, > > -Adam
