Revision: 17242
http://sourceforge.net/p/gate/code/17242
Author: valyt
Date: 2014-01-22 15:26:45 +0000 (Wed, 22 Jan 2014)
Log Message:
-----------
Bugfix: the cut-points should be accumulative.
Modified Paths:
--------------
mimir/branches/5.0/mimir-core/src/gate/mimir/index/AtomicIndex.java
Modified: mimir/branches/5.0/mimir-core/src/gate/mimir/index/AtomicIndex.java
===================================================================
--- mimir/branches/5.0/mimir-core/src/gate/mimir/index/AtomicIndex.java
2014-01-21 12:29:02 UTC (rev 17241)
+++ mimir/branches/5.0/mimir-core/src/gate/mimir/index/AtomicIndex.java
2014-01-22 15:26:45 UTC (rev 17242)
@@ -429,7 +429,7 @@
for(MG4JIndex aSubIndex : subIndexes) {
indexes[indexIdx] = aSubIndex.index;
if(indexIdx < cutPoints.length - 1) {
- cutPoints[indexIdx + 1] = aSubIndex.numberOfDocuments;
+ cutPoints[indexIdx + 1] = cutPoints[indexIdx] +
aSubIndex.numberOfDocuments;
}
numberOfTerms += aSubIndex.numberOfTerms;
numberOfDocuments += aSubIndex.numberOfDocuments;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs