Skip to content

Commit f30d23e

Browse files
committed
Added Maven support
Moved the files a bit to match the maven structure Now it is a runnable app where one can run a Main class
1 parent acaf80c commit f30d23e

18 files changed

+73
-5202
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010

1111
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
1212
hs_err_pid*
13+
.idea/
14+
.settings/

pom.xml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>org.chaiware</groupId>
8+
<artifactId>TextToEmotion</artifactId>
9+
<version>0.6</version>
10+
<name>TextToEmotion</name>
11+
12+
<properties>
13+
<jdk.version>1.8</jdk.version>
14+
</properties>
15+
16+
<packaging>jar</packaging>
17+
18+
<build>
19+
<plugins>
20+
21+
<!-- Set a compiler level -->
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<version>2.3.2</version>
26+
<configuration>
27+
<source>${jdk.version}</source>
28+
<target>${jdk.version}</target>
29+
</configuration>
30+
</plugin>
31+
32+
<!-- Make this jar executable -->
33+
<plugin>
34+
<groupId>org.apache.maven.plugins</groupId>
35+
<artifactId>maven-jar-plugin</artifactId>
36+
<configuration>
37+
<archive>
38+
<manifest>
39+
<!-- Jar file entry point -->
40+
<mainClass>org.chaiware.text2emotion.app.TextToEmotion</mainClass>
41+
</manifest>
42+
</archive>
43+
</configuration>
44+
</plugin>
45+
46+
</plugins>
47+
</build>
48+
49+
</project>

src/data/lex/synesketch_lexicon_backup.txt

-5,123
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/**
2+
* @author Uros Krcadinac
3+
* 18-Sep-10
4+
* @version 0.1
5+
*/
6+
package synesketch.app;
7+
8+
import java.io.IOException;
9+
10+
import synesketch.emotion.EmotionalState;
11+
import synesketch.emotion.Empathyscope;
12+
13+
public class TestSentence {
14+
15+
public static void main(String[] args) throws IOException {
16+
String line = "I love you so very much";
17+
EmotionalState sentenceState = Empathyscope.getInstance().feel(line);
18+
System.out.println(sentenceState.toString());
19+
}
20+
21+
}

src/synesketch/emotion/EmotionalState.java src/main/java/synesketch/emotion/EmotionalState.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import java.util.SortedSet;
2424
import java.util.TreeSet;
2525

26-
import processing.core.PApplet;
27-
2826
import synesketch.SynesketchState;
2927

3028
/**
@@ -38,7 +36,7 @@
3836
* weight, sadness weight, fear weight, anger weight, disgust weight, surprise
3937
* weight. These specific emotions are defined by the class {@link Emotion}.
4038
* <li>Previous {@link EmotionalState} (so that whole emotional history of one
41-
* conversation can be accessed from the Processing applet ({@link PApplet})).
39+
* conversation can be accessed from the Processing applet ).
4240
* </ul>
4341
* <p>
4442
* Weights have values between 0 and 1 (0 for no emotion, 1 for full emotion,
File renamed without changes.

src/synesketch/emotion/SynesthetiatorEmotion.java

-76
This file was deleted.

0 commit comments

Comments
 (0)