added extra threads again and moved variables to settings file
This commit is contained in:
parent
f891fc272c
commit
21f152e660
@ -45,7 +45,7 @@ public class PipelineJMWESingleton {
|
||||
private static IMWEDetector detector;
|
||||
|
||||
private PipelineJMWESingleton() {
|
||||
String jmweIndexData = "/home/gameservers/autism_bot/lib/mweindex_wordnet3.0_semcor1.6.data"; // ./lib/mweindex_wordnet3.0_semcor1.6.data
|
||||
String jmweIndexData = "/home/nonroot/autism_bot/lib/mweindex_wordnet3.0_semcor1.6.data"; // ./lib/mweindex_wordnet3.0_semcor1.6.data
|
||||
String jmweIndexDataLocalTest = "E:/stationær backup filer/Projects/mweindex_wordnet3.0_semcor1.6.data";
|
||||
File indexFile = new File((String) jmweIndexData);
|
||||
index = new MWEIndex(indexFile);
|
||||
|
@ -68,9 +68,9 @@ public class DiscordHandler extends ListenerAdapter {
|
||||
|
||||
try (DatagramSocket serverSocket = new DatagramSocket(port)) {
|
||||
|
||||
String hostIP = "195.154.53.196";
|
||||
if (port == 48477 || port == 48478) {
|
||||
hostIP = "51.158.20.245";
|
||||
String hostIP = new settings().getHostIP();
|
||||
if (port == new settings().getHostport() || port == new settings().getHostport2()) {
|
||||
hostIP = new settings().getHostIP2();
|
||||
}
|
||||
InetAddress ipAddress = InetAddress.getByName(hostIP);//used ip'
|
||||
while (true) {
|
||||
@ -85,12 +85,11 @@ public class DiscordHandler extends ListenerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static StanfordCoreNLP stanfordCoreNLP;
|
||||
private static Datahandler datahandler;
|
||||
private static StanfordCoreNLP stanfordCoreNLPSentiment;
|
||||
private static ExecutorService executorService = Executors.newFixedThreadPool(1);
|
||||
private static ExecutorService executorServiceIngame = Executors.newFixedThreadPool(2);
|
||||
private static ExecutorService executorService = Executors.newFixedThreadPool(3);
|
||||
private static ExecutorService executorServiceIngame = Executors.newFixedThreadPool(4);
|
||||
|
||||
//TODO add python program that edits the java code. python program just adds test if statements on
|
||||
//variables until the tests pass
|
||||
|
Loading…
Reference in New Issue
Block a user