Hello,
I have problems about using SourceDocumentInformation in AE.This object
stores detailed information about the original source document.For example,
I want to indentify the last file that client sends by the method
getLastSegment().However,when I deploy a AE in server,and client sends
files using FileCollectionReader,I print information about the method
getLastSegment().It
always displays false even it is the last file.I check the files produced
by the AE.
In the last file,it contains:
<examples:SourceDocumentInformation xmi:id="13" sofa="1" begin="0" end="0"
uri="file:/G:/Project/UIMAAS/apache-uima-
as/data/input/New_IBM_Fellows.txt"
offsetInSource="0" documentSize="3665" lastSegment="true"/>
The lastSegment is true.I print the method geturi(),it is null.Obviously,
it doesn't store information.Can anyone help me?
I use SourceDocumentInformation in AE like this:
SourceDocumentInformation srcDocInfo = new
SourceDocumentInformation(aJCas);
System.out.println(srcDocInfo.getLastSegment());
Is there something wrong?
I am really appreciated if you give me a help.Thank you!
feixiang
>From China