Sign inSign up

antoinebriand/aida-ner-server

By antoinebriand

•Updated about 9 years ago

AIDA Named entities disambiguation system image that expose a Ready to Use REST API

Image
1

126

antoinebriand/aida-ner-server repository overview

⁠AIDA (https://github.com/yago-naga/aida#setting-up-the-entity-repository⁠)

AIDA is the named entity disambiguation system created by the Databases and Information Systems Department at the Max Planck Institute for Informatics in Saarbücken, Germany. It identifies mentions of named entities (persons, organizations, locations, songs, products, ...) in English language text and links them to a unique identifier. Most names are ambiguous, especially family names, and AIDA resolves this ambiguity. See the EMNLP 2011 publication [EMNLP2011] for a detailed description of how it works and the VLDB 2011 publication [VLDB2011] for a description of our Web demo. Read on for a more in-depth introduction and hands-on examples of how to use AIDA.

⁠How to Run

⁠Setup the disambiguation database

First, you need to setup a Postgres Database with the YAGO disambiguation database. To do so, refers to the author guide : https://github.com/yago-naga/aida#setting-up-the-entity-repository⁠. You can also create a Postgres container and restore the database inside it.

⁠Run the container


docker run -p 8080:8080 -e AIDA_MAX_MEMORY=10G -e DATASOURCE_SERVER_NAME="192.168.1.1" -e DATASOURCE_DATABASE_NAME="aidaservice" -e DATASOURCE_USER="aida" -e DATASOURCE_PASSWORD="p3ssword" antoinebriand/aida-nser-server:1.0.0

⁠Available Vars :


DATASOURCE_CLASSNAME="org.postgresql.ds.PGSimpleDataSource"
DATASOURCE_SERVER_NAME="postgres"
DATASOURCE_DATABASE_NAME="aida"
DATASOURCE_USER="aida"
DATASOURCE_PASSWORD="password"
DATASOURCE_MAXIMUM_POOL_SIZE=5

⁠Using docker-compose

You can run the service using a docker-compose.yml file. You must restore the database into the Postgres container in order to AIDA to work.


version: "3"
services:
  postgres:
    image: postgres:9.6.3-alpine
    environment:
      POSTGRES_PASSWORD: aida
    volumes:
      - aidapostgres_data:/var/lib/postgresql/data

  aida:
    image: antoinebriand/aida-ner-server:1.0.0
    depends_on:
     - postgres
    ports:
     - 8000:8080
    volumes:
     - aidamaven_data:/root/.m2
     - aida_data:/aida
    environment:
     - AIDA_MAX_MEMORY=5G
     - DATASOURCE_SERVER_NAME="postgres"
     - DATASOURCE_DATABASE_NAME="aida"
     - DATASOURCE_USER="aida"
     - DATASOURCE_PASSWORD="password"

volumes:
  aidapostgres_data:
  aidamaven_data:
  aida_data:

Tag summary

Content type

Image

Digest

Size

80.6 MB

Last updated

about 9 years ago

docker pull antoinebriand/aida-ner-server:1.0.0