Commit 7b95e31e1b261de933aca28935cb1b0bdb0757f2

Authored by Mateusz Kopeć
1 parent 821bc7d1

added deployment info

.gitignore
... ... @@ -2,3 +2,5 @@
2 2 .project
3 3 .classpath
4 4 .settings
  5 +.idea
  6 +*.iml
5 7 \ No newline at end of file
... ...
... ... @@ -58,7 +58,7 @@
58 58 </configuration>
59 59 </plugin>
60 60 <plugin>
61   - <groupId>org.dstovall</groupId>
  61 + <groupId>com.jolira</groupId>
62 62 <artifactId>onejar-maven-plugin</artifactId>
63 63 <version>1.4.4</version>
64 64 <executions>
... ... @@ -75,11 +75,15 @@
75 75 </plugins>
76 76 </build>
77 77  
78   - <pluginRepositories>
79   - <pluginRepository>
80   - <id>onejar-maven-plugin.googlecode.com</id>
81   - <url>http://onejar-maven-plugin.googlecode.com/svn/mavenrepo</url>
82   - </pluginRepository>
83   - </pluginRepositories>
  78 + <distributionManagement>
  79 + <repository>
  80 + <id>deployment</id>
  81 + <url>http://maven.nlp.ipipan.waw.pl/content/repositories/releases/</url>
  82 + </repository>
  83 + <snapshotRepository>
  84 + <id>deployment</id>
  85 + <url>http://maven.nlp.ipipan.waw.pl/content/repositories/snapshots/</url>
  86 + </snapshotRepository>
  87 + </distributionManagement>
84 88  
85 89 </project>
86 90 \ No newline at end of file
... ...
src/main/java/pl/waw/ipipan/zil/summ/eval/Main.java
... ... @@ -43,9 +43,17 @@ public class Main {
43 43 Map<String, Set<File>> id2goldSummaryFiles = loadFiles(goldDir);
44 44 Map<String, Set<File>> id2sysSummaryFiles = loadFiles(sysDir);
45 45 if (!id2goldSummaryFiles.keySet().equals(id2sysSummaryFiles.keySet())) {
46   - LOG.error("Different text ids in gold and sys dirs!");
47   - LOG.error(id2goldSummaryFiles.size() + " gold ids, " + id2sysSummaryFiles.size() + " sys ids.");
48   - return;
  46 + LOG.warn("Different text ids in gold and sys dirs!");
  47 + LOG.warn(id2goldSummaryFiles.size() + " gold ids, " + id2sysSummaryFiles.size() + " sys ids.");
  48 +
  49 + LOG.warn("Will try to evaluate only common ids.");
  50 + id2sysSummaryFiles.keySet().retainAll(id2goldSummaryFiles.keySet());
  51 + id2goldSummaryFiles.keySet().retainAll(id2sysSummaryFiles.keySet());
  52 +
  53 + if (id2goldSummaryFiles.isEmpty()) {
  54 + LOG.error("No texts to compare!");
  55 + return;
  56 + }
49 57 }
50 58 LOG.info(id2goldSummaryFiles.size() + " gold and sys text(s) loaded.");
51 59  
... ...