Giter VIP home page Giter VIP logo

asapjava's Introduction

ASAPJava

Asynchronous Semantic Ad-hoc Protocol (ASAP) engine for Java

Prerequisites

Maven should be installed on your system

Compile to jar

mvn clean package

..in the ASAPJava directory. This creates a jar file with path ASAPJava/target/ASAPRouter-1.0-SNAPSHOT.jar which can be used for further development. Note that currently the multihop-tests fail with ASAPJava version 0.7.0. Version 0.7.2 is supposed to fix this, but created even more failing tests.

mvn clean package -DskipTests

Use this to skip tests and compile into a jar.

Setup Word space for Disco

If you want to use the SemanticComparator, you need to first setup the required Word space yourself. This chapter will explain how to do so.

Download Text Models

Visit https://github.com/facebookresearch/fastText/blob/master/docs/crawl-vectors.md and download one of the models in text form. In this example we download the German model via this link.

Install DISCO Builder

Visit https://www.linguatools.de/disco/disco-builder.html and follow the instructions to download and install the latest DISCO Builder TLDR: 1) Unpack the tar file 2) cd into the directory 3) you can now run the jar file "DISCOBuilder-1.1.1-all.jar"

Run DISCO Builder

java -Xmx8g -cp DISCOBuilder-1.1.1/DISCOBuilder-1.1.1-all.jar de.linguatools.disco.builder.Import -in cc.de.300.vec -out cc.de.300.col.denseMatrix -wsType COL 

Now you should have a folder called „cc.de.300.vec” with a file „cc.de.300.col.denseMatrix” in it. Next step is to move the file and the folder into the resources folder of this repository.

mv cc.de.300.vec/ PATH/TO/THIS/REPO/src/main/resources

Now you are ready to use the DISCO API within the SemanticComparator

asapjava's People

Contributors

thsc42 avatar mgeldi avatar

Forkers

thsc42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.