further updates to check hlstats collection instead of empty string cache, hopefully saving data again now
This commit is contained in:
@@ -318,8 +318,15 @@ public class Datahandler {
|
||||
SentimentValueCache sentimentCacheStr = sentimentCachingMap.getOrDefault(strCollection, null);
|
||||
List<SimilarityMatrix> smxReturnList = new ArrayList();
|
||||
List<String> randomIterationComparision = new ArrayList();
|
||||
int iteratecap = strCacheLocal.size() > prefix_size ? strCacheLocal.size() - prefix_size : strCacheLocal.size();
|
||||
int iteratecap = strCacheLocal.size() > prefix_size ? strCacheLocal.size() - prefix_size : strCollection.size() - 1;
|
||||
int iterator = ThreadLocalRandom.current().nextInt(0, iteratecap);
|
||||
if (strCacheLocal.size() < prefix_size)
|
||||
{
|
||||
for (String colStr : strCollection)
|
||||
{
|
||||
strCacheLocal.put(strCacheLocal.size(), colStr);
|
||||
}
|
||||
}
|
||||
int iterated = 0;
|
||||
for (String str1 : strCacheLocal.values()) {
|
||||
if (iterated >= iterator && iterated < iterator + prefix_size) {
|
||||
@@ -390,7 +397,6 @@ public class Datahandler {
|
||||
//System.out.println("strmap siuze: " + strmap.size());
|
||||
List<SimilarityMatrix> StrComparringNoSentenceRelationMap = StrComparringNoSentenceRelationMap(strCacheLocal, strmap.values(),
|
||||
localJMWEMap, localPipelineAnnotation, localPipelineSentimentAnnotation, localCoreDocumentMap);
|
||||
System.out.println("StrComparringNoSentenceRelationMap size: " + StrComparringNoSentenceRelationMap.size());
|
||||
Collections.sort(StrComparringNoSentenceRelationMap, (e1, e2) -> e1.getPrimaryString().compareTo(e2.getPrimaryString()));
|
||||
ConcurrentMap<Integer, String> strmapreturn = futuresReturnOverallEvaluation(StrComparringNoSentenceRelationMap);
|
||||
//System.out.println("strmapreturn size: " + strmapreturn.size());
|
||||
|
||||
Reference in New Issue
Block a user