Hi there,
I seem to be unable to delete documents from the
corpus. Here's my code:
String docName="Known document name";
int docIndex=corpus.getDocumentIndex(""+archetypeid);
log.info("Document index is "+docIndex);
//log.info("Old document is
"+corpus.getDocumentContent(docIndex));
corpus.deleteDocument(docIndex);
This finds the document, returning an identifier, but
on getDocumentContent() or deleteDocument() throws the
following error:
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at weka.core.FastVector.removeElementAt(Unknown
Source)
at weka.core.Instances.delete(Unknown Source)
at
judge.repository.Corpus.deleteDocument(Corpus.java:1317)
You can reach me on m@orderlysoftware.com - we really
need a fix!
Hope this helps,
Matt.