Menu

#1 Corpus getDocumentContent and deleteDocument broken.

open
nobody
None
5
2005-03-02
2005-03-02
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.