Skip to content

Instantly share code, notes, and snippets.

$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
$ mvn -version
Apache Maven 2.2.1 (rdebian-8)
Java version: 1.6.0_27
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
@rotzbouw
rotzbouw / log
Created November 20, 2013 20:25
postgresql table information & log of 3 consecutive runs on same file with different settings.
aida=# \d entity_keywords
Table "public.entity_keywords"
Column | Type | Modifiers
---------+------------------+-------------
entity | integer |
keyword | integer |
count | integer |
tf | integer |
weight | double precision | default 0.0
Indexes:
@rotzbouw
rotzbouw / aida.java
Last active December 28, 2015 20:49
public static void main(String[] args) throws Exception {
System.out.println(new Date() + "\tStart");
System.out.println("---> Disambiguating <---");
Logger wsdLogger = Logger.getAnonymousLogger();
File[] files = ConfigProperties.getInstance().getTestData().listFiles(MMAX2FilenameFilter.FILTER_INSTANCE);
String dataId = ConfigProperties.getInstance().getTestDataId();
Arrays.sort(files);
PreparationSettings prepSettings = new StanfordHybridPreparationSettings();
@rotzbouw
rotzbouw / log
Created November 19, 2013 09:12
AIDA output with own output defined as "System.out.println(rm.getMention() + "(" + rm.getCharacterOffset() + ") -> " + re.getEntity() + " (" + AidaManager.getWikipediaUrl(re) + ")");".
Mon Nov 18 00:07:36 CET 2013 Start
---> Disambiguating <---
Nov 18, 2013 12:07:36 AM elkfed.knowledge.yago.wsd.AIDA main
INFO: Loading a2e_0000_part_00.mmax [1]
108 [main] WARN mpi.aida.AidaManager - Could not read cache file, reading from DB.
java.io.FileNotFoundException: database_aida.cache (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at mpi.aida.AidaManager.createAndLoadCache(AidaManager.java:164)
at mpi.aida.AidaManager.initWordExpansion(AidaManager.java:144)
@rotzbouw
rotzbouw / jreen.diff
Created November 15, 2013 11:59
fix jreen compilation
--- libjreen-1.1.1/cmake/jreenMacros.cmake 2013-01-06 19:49:31.000000000 +0400
+++ libjreen-1.1.1-fix/cmake/jreenMacros.cmake 2013-10-14 12:14:09.117863475 +0400
@@ -18,9 +18,10 @@
MACRO (JREEN_WRAP_CPP outfiles )
# get include dirs
QT4_GET_MOC_FLAGS(moc_flags)
- QT4_EXTRACT_OPTIONS(moc_files moc_options ${ARGN})
+ #QT4_EXTRACT_OPTIONS(moc_files moc_options ${ARGN})
+ QT4_EXTRACT_OPTIONS(moc_files moc_options moc_target ${ARGN})
@rotzbouw
rotzbouw / clucene.patch
Created November 13, 2013 20:18
Fixes CLucene compilation on OS X 10.9
diff --git a/src/shared/CLucene/LuceneThreads.h b/src/shared/CLucene/LuceneThreads.h
index 97072ee..297cdef 100644
--- a/src/shared/CLucene/LuceneThreads.h
+++ b/src/shared/CLucene/LuceneThreads.h
@@ -7,6 +7,9 @@
#ifndef _LuceneThreads_h
#define _LuceneThreads_h
+#if defined(_CL_HAVE_PTHREAD)
+ #include <pthread.h>