Code Monkey home page Code Monkey logo

data-cleaning's Introduction

data-cleaning Project

Preparations

Prerequisites

  • JDK 11
  • Python 3.8+ (with pip)

Running the model

Download the pretained model & and extract it

cd model
wget https://drive.google.com/file/d/10ayQ4r8VE2EGJvFWEetVyjuuqSILLevj/view?usp=sharing
tar -xzvf ontology-matching-base-uncased.tar.gz

Create virtual environment and install the requirements

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run the model

python serve.py

Run the matcher

Getting Google's Word2Vec model

wget -P data https://dl4jdata.blob.core.windows.net/resources/wordvectors/GoogleNews-vectors-negative300.bin.gz

If you are not using Linux x86 you need to adapt the cpu.arch property in the pom.xml according to your machine.

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

./mvnw compile quarkus:dev -Dquarkus.args="instance -kb data/dbpedia -t 0.5 -wt data/webtables/" -Dquarkus.log.level=WARN

NOTE: If using Word2Vec you need to increase the memory limit of the JVM. E.g. execute with -Xms1024m -Xmx10g -XX:MaxPermSize=2g

Packaging and running the application

The application can be packaged using:

./mvnw package

It produces the quarkus-run.jar file in the target/quarkus-app/ directory. Be aware that it’s not an über-jar as the dependencies are copied into the target/quarkus-app/lib/ directory.

The application is now runnable using java -jar target/quarkus-app/quarkus-run.jar.

If you want to build an über-jar, execute the following command:

./mvnw package -Dquarkus.package.type=uber-jar

Note: Creating an über-jar is time consuming

The application, packaged as an über-jar, is now runnable using java -jar target/*-runner.jar.

Usage

java -jar target/quarkus-app/quarkus-run.jar instance -kb data/dbpedia -wt data/webtables/ -t 0.5

See the provided help command for usage instructions.

data-cleaning's People

Contributors

floriansiepe avatar dependabot[bot] avatar

Watchers

 avatar Kostas Georgiou avatar

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.