diff --git a/.classpath b/.classpath
index c03168a..83235c0 100644
--- a/.classpath
+++ b/.classpath
@@ -1,12 +1,12 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
index 838bd9d..ace45ce 100644
--- a/.settings/org.eclipse.jdt.core.prefs
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -1,11 +1,12 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/src/engine/CFResourceRecommenderEngine.java b/src/engine/CFResourceRecommenderEngine.java
index 70bf734..ddec366 100644
--- a/src/engine/CFResourceRecommenderEngine.java
+++ b/src/engine/CFResourceRecommenderEngine.java
@@ -64,6 +64,7 @@ public synchronized Map getEntitiesWithLikelihood(String user, S
}
Map resourceMap = new LinkedHashMap<>();
if (this.reader == null || this.calculator == null) {
+ System.out.println("No data has been loaded");
return resourceMap;
}
int userID = -1;
diff --git a/src/engine/ResourceEngineInterface.java b/src/engine/ResourceEngineInterface.java
index ce3a218..9412e78 100644
--- a/src/engine/ResourceEngineInterface.java
+++ b/src/engine/ResourceEngineInterface.java
@@ -25,7 +25,7 @@ License, or (at your option) any later version.
public interface ResourceEngineInterface {
- public void loadFile(String filename) throws Exception;
+ void loadFile(String filename) throws Exception;
- public Map getEntitiesWithLikelihood(String user, String resource, List topics, Integer count, Boolean filterOwnEntities);
+ Map getEntitiesWithLikelihood(String user, String resource, List topics, Integer count, Boolean filterOwnEntities);
}
diff --git a/src/test/Pipeline.java b/src/test/Pipeline.java
index bf9c563..37ed631 100644
--- a/src/test/Pipeline.java
+++ b/src/test/Pipeline.java
@@ -168,7 +168,7 @@ public static void main(String[] args) {
}
System.out.println("TagRec with Topics: " + tagrecEngine.getEntitiesWithLikelihood("41", "545", Arrays.asList("ontology", "conference", "tutorial", "web2.0", "rss", "tools"), 10));
System.out.println("TagRec without Topics: " + tagrecEngine.getEntitiesWithLikelihood("41", "545", null, 10));
- ResourceEngineInterface resrecEngine = new CFResourceRecommenderEngine();
+ final ResourceEngineInterface resrecEngine = new CFResourceRecommenderEngine();
try {
resrecEngine.loadFile(path);
} catch (Exception e2) {
@@ -178,7 +178,6 @@ public static void main(String[] args) {
System.out.println("CF -Filter: " + resrecEngine.getEntitiesWithLikelihood("0", null, null, 20, false));
*/
-
// Commandline Arguments
if (args.length < 3) {
System.out.println("Too few arguments!");
diff --git a/tagrec.jar b/tagrec.jar
index 227d24e..60578f8 100644
Binary files a/tagrec.jar and b/tagrec.jar differ