further update to bot being moved to new sys machine

This commit is contained in:
christian 2021-04-04 10:01:54 +02:00
parent 84396ef56c
commit efd3a671c4
13 changed files with 3448 additions and 3448 deletions

View File

@ -118,7 +118,7 @@ public class Datahandler {
props.setProperty("parse.model", shiftReduceParserPath); props.setProperty("parse.model", shiftReduceParserPath);
props.setProperty("parse.maxlen", "90"); props.setProperty("parse.maxlen", "90");
props.setProperty("parse.binaryTrees", "true"); props.setProperty("parse.binaryTrees", "true");
props.setProperty("threads", "25"); props.setProperty("threads", "8");
props.setProperty("pos.maxlen", "90"); props.setProperty("pos.maxlen", "90");
props.setProperty("tokenize.maxlen", "90"); props.setProperty("tokenize.maxlen", "90");
props.setProperty("ssplit.maxlen", "90"); props.setProperty("ssplit.maxlen", "90");
@ -146,7 +146,7 @@ public class Datahandler {
propsSentiment.setProperty("parse.model", lexParserEnglishRNN); propsSentiment.setProperty("parse.model", lexParserEnglishRNN);
propsSentiment.setProperty("sentiment.model", sentimentModel); propsSentiment.setProperty("sentiment.model", sentimentModel);
propsSentiment.setProperty("parse.maxlen", "90"); propsSentiment.setProperty("parse.maxlen", "90");
propsSentiment.setProperty("threads", "25"); propsSentiment.setProperty("threads", "8");
propsSentiment.setProperty("pos.maxlen", "90"); propsSentiment.setProperty("pos.maxlen", "90");
propsSentiment.setProperty("tokenize.maxlen", "90"); propsSentiment.setProperty("tokenize.maxlen", "90");
propsSentiment.setProperty("ssplit.maxlen", "90"); propsSentiment.setProperty("ssplit.maxlen", "90");
@ -464,7 +464,7 @@ public class Datahandler {
double preRelationUserCounters = -155000.0; double preRelationUserCounters = -155000.0;
double zero = 0.0; double zero = 0.0;
double positive_sentence_count = 0.0; double positive_sentence_count = 0.0;
double positive_cap = 500.0; double positive_cap = 55500.0;
List<String> concurrentRelations = new ArrayList(); List<String> concurrentRelations = new ArrayList();
for (String str1 : values_copy) { for (String str1 : values_copy) {
if (!strF.equals(str1)) { if (!strF.equals(str1)) {
@ -498,7 +498,7 @@ public class Datahandler {
} }
StringBuilder SB = new StringBuilder(); StringBuilder SB = new StringBuilder();
double randomLenghtPermit = strF.length() * ((Math.random() * Math.random() * Math.random()) * 100); double randomLenghtPermit = strF.length() * ((Math.random() * Math.random() * Math.random()) * 20);
Collections.reverse(concurrentRelations); Collections.reverse(concurrentRelations);
if (concurrentRelations.isEmpty()) { if (concurrentRelations.isEmpty()) {
return "failure, preventing stuckness"; return "failure, preventing stuckness";

View File

@ -54,7 +54,7 @@ public class PipelineJMWESingleton {
public final ConcurrentMap<String, Annotation> getJMWEAnnotation(Collection<String> strvalues) { public final ConcurrentMap<String, Annotation> getJMWEAnnotation(Collection<String> strvalues) {
boolean verbose = false; boolean verbose = false;
IMWEIndex index; IMWEIndex index;
String jmweIndexData = "/home/javatests/lib/mweindex_wordnet3.0_semcor1.6.data"; // ./lib/mweindex_wordnet3.0_semcor1.6.data String jmweIndexData = "/home/debian/autism_bot/lib/mweindex_wordnet3.0_semcor1.6.data"; // ./lib/mweindex_wordnet3.0_semcor1.6.data
String jmweIndexDataLocalTest = "E:/java8/Projects/mweindex_wordnet3.0_semcor1.6.data"; String jmweIndexDataLocalTest = "E:/java8/Projects/mweindex_wordnet3.0_semcor1.6.data";
File indexFile = new File((String) jmweIndexData); File indexFile = new File((String) jmweIndexData);
index = new MWEIndex(indexFile); index = new MWEIndex(indexFile);