added further tests and adjustments to these for calculations
This commit is contained in:
@@ -23,9 +23,6 @@ import FunctionLayer.SimilarityMatrix;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.logging.FileHandler;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.SimpleFormatter;
|
||||
|
||||
public class junit {
|
||||
|
||||
@@ -173,7 +170,8 @@ public class junit {
|
||||
entityTokenTagsF, entityTokenTags1, nerEntitiesF, nerEntities1, nerEntitiesTypeF,
|
||||
nerEntitiesType1, stopWordTokenF, stopWordToken1, stopWordLemmaF, stopWordLemma1,
|
||||
PairCounterF, PairCounter1);
|
||||
Double score = sentimentAnalyzerTest.callSMX().getDistance();
|
||||
SimilarityMatrix similarityMatrix = sentimentAnalyzerTest.callSMX();
|
||||
Double score = similarityMatrix.getDistance();
|
||||
System.out.println("score: " + score + "\n");
|
||||
return score;
|
||||
}
|
||||
@@ -188,6 +186,7 @@ public class junit {
|
||||
String sent2 = "*NêkØ* Kroaat_West bG <3";
|
||||
double PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < 800.0);
|
||||
|
||||
sent2 = "no thanks but i know some ladyboys here that would";
|
||||
sent1 = "u want head from me :wlenny:";
|
||||
double PerformTestingFitting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
@@ -453,9 +452,9 @@ public class junit {
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < 400.0);
|
||||
sent1 = "what do you want";
|
||||
sent2 = "admun extend";
|
||||
sent2 = "admin extend";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 100.0);
|
||||
Assert.assertTrue(PerformTesting < -2100.0);
|
||||
sent1 = "You are a one large bug";
|
||||
sent2 = "omg you are right";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
@@ -492,6 +491,197 @@ public class junit {
|
||||
sent1 = "fuck";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
|
||||
//NEW tests
|
||||
|
||||
sent1 = "you have your priorities straight. i respect that";
|
||||
sent2 = "I see the bot doesn't want to die he knows depressive ass bot autism fasz eater Amtssprache ist Deutsch :error: &259041609495216129> speak hungarian garantua is the best map";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
sent1 = "Hey that's racist";
|
||||
sent2 = "I love you autismo";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
sent1 = "Guten Morgen, Herr Autismus, kannst du deine Fresse für ein Paar Minuten halten? :moon2SH:";
|
||||
sent2 = ":NM_GunPoint: :NM_GunPoint: :NM_GunPoint: :NM_GunPoint: \"Nesstsuki Szeretem az édes pinat Ness szeretem az edes pinat Ness send lenny\"";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "you don't have a";
|
||||
sent2 = "Yep. semodel. Doesn't work. Plugin for BLender is installed and working. Characters are very well exported.";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = " I LOVE YOU PLEASE TAKE ME BACK I AM SO SORRY IT WAS A DRUNK ACCIDENT";
|
||||
sent2 = "i am not exactly sure how you think renaming them to !autism will cause them to loop over and over again";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "Now look";
|
||||
sent2 = "High foot";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "please wake up again";
|
||||
sent2 = "kind ghost pinát nyal";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "?mute autism 50";
|
||||
sent2 = "have a?";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "no chloroform pls";
|
||||
sent2 = "propper_model myb?";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "yeah so stop inflating, you make these ppl do that";
|
||||
sent2 = "I SAID GOOD NIGHT";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
sent2 = "i am inflating and dont make these ppl do that";
|
||||
PerformTesting1 = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting1 > PerformTesting && PerformTesting < -500);
|
||||
sent1 = "Maybe that's why we have many people who prefer download something from torrents than buying something even it's cheap";
|
||||
sent2 = "yeah stop inflating, you make people do that";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 2400.0);
|
||||
sent1 = "Artificial Autism Generation 3 (STEAM_0:0:610560766) Pressed button: Deathrun_Button";
|
||||
sent2 = "with big ass boss";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "Artificial Autism Generation 3 Pressed button: Deathrun_Button";
|
||||
sent2 = "No ? I SAID GOOD NIGHT";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 3400.0);
|
||||
sent1 = "Explain?";
|
||||
sent2 = "No ? I SAID GOOD NIGHT";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 4400.0);
|
||||
sent1 = "Dolly stop scamming me";
|
||||
sent2 = "Oh hello autims";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
sent1 = "Most importantly, I'm a cat belonging to himself :cooltom:";
|
||||
sent2 = "It already has random bomb sites and random spawns. So it's gameplay ready, but the walls, man.:DDDD";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
System.out.println("PerformTesting: " + PerformTesting);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "you are his woman? ";
|
||||
sent2 = "are you dead again";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 3400.0);
|
||||
sent1 = "I'm not your man";
|
||||
sent2 = "Yep. semodel. Doesn't work. Plugin for BLender is installed and working. Characters are very well exported.";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "shut up";
|
||||
sent2 = "Only champagne";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "right well kill yourself first of all :woa~1:";
|
||||
sent2 = "What is a command prompt:\n" +
|
||||
"\n" +
|
||||
"\n" +
|
||||
"A command prompt allow you to execute .exe files through commands heres a sneak peek : \"we are nothing more to women than an amusement park ride with life insurance\"";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "A";
|
||||
sent2 = "I have neither";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "maybe i tomorow or sunday have an update ready";
|
||||
sent2 = "How dare you calling me baguette woman? I am not lisa and moreover not french:angerynut~1:\n";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "no shut up, why the fuck did you just roast me nigger";
|
||||
sent2 = "with 0, they cant break it by shot or knife but it still makes a sound of breaking possible i think";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "is bot alive again?";
|
||||
sent2 = "tired of spinning in circles?";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "is bot alive again?";
|
||||
sent2 = " yes it is";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 2400.0);
|
||||
sent1 = ":pepelaugh~2:";
|
||||
sent2 = "geci cuki autismo bot pinát nyal eating nice dogs Du hast nichteinmal eine Persönlichkeit";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "spits bót <!>";
|
||||
sent2 = "i been blessed by only meeting nice dogs";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "spits bót <!>";
|
||||
sent2 = "spits faggot";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 5400.0);
|
||||
sent1 = "Hey that's racist";
|
||||
sent2 = "I love you autismo";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "bro fuck you";
|
||||
sent2 = "welp i dont have time any more for focusing on the bot so its just a simple restart";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "nah it's random, it can react to long messages pretty quickly sometiems";
|
||||
sent2 = "i mean there certainly exists models that i could apply for french/german/spanish/chinese/hungarian gay is when you are a guy but have an autistic 2D girl on your profile picture - now this is gay";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "you don't have a";
|
||||
sent2 = "Yep. semodel. Doesn't work. Plugin for BLender is installed and working. Characters are very well exported.";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "finally bot is admin ready";
|
||||
sent2 = "Only champagne";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "Helmstronk stop posting cringe, last warning";
|
||||
sent2 = "finally admin ready";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 4400.0);
|
||||
sent1 = "1pm for me";
|
||||
sent2 = "Helmstronk stop posting cringe, last warning";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "it's 2 PM dude";
|
||||
sent2 = "Nesstsuki Szeretem az édes pinat";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "can i have b?";
|
||||
sent2 = "Dark Silent speak";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "autismo loves to eat pussy?";
|
||||
sent2 = "I have neither";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "autismo loves to eat pussy?";
|
||||
sent2 = "I have sweeto autismo, wake up";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting > 5400.0);
|
||||
sent1 = "Good afternoon acousticheart01815 and have A";
|
||||
sent2 = "master degree in artificial autism carpeting I love to eat pussy \uD83E\uDD23 \uD83E\uDD23 \uD83E\uDD23 \uD83E\uDD23 \uD83E\uDD23 \uD83E\uDD23";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "i certainly planned only to spend time on it one weekend";
|
||||
sent2 = "i am not exactly sure how you think renaming them to !autism will cause them to loop over and over again";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
sent1 = "Who";
|
||||
sent2 = "i have neither";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
sent1 = "feels bad i only have like one hour free time per day for working on the update on you";
|
||||
sent2 = "in func_breakable there setting \"strength\" and in help comment \"Number of points of damage to take before breaking. 0 means don't break.\"";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
|
||||
sent1 = "that sentence is dumb as fuck stop using it";
|
||||
sent2 = "ΣZΣ | jenz you see any bots on here??? 404Trucy look your new friend 1pm for me :loved: :shinogeci: :sbpl: you alive? does shino like fasz? boost the server pls";
|
||||
PerformTesting = testCall(sent1, sent2, stanfordCoreNLP, stanfordCoreNLPSentiment);
|
||||
Assert.assertTrue(PerformTesting < -2400.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user