Skip to content

Installation Guide

Alexandre Oliveira edited this page Feb 14, 2019 · 5 revisions

Installation

Build Status codecov Quality Gate

viglet_logo.png

Viglet Turing is a platform that uses natural language processing (NLP) and machine learning to provide more intelligent data. Choose your favorite NLP as CoreNLP and OpenText Content Analytics, and index your content in Solr with higher added value. Train and manages models for your learning machine like Google Tensorflow.

If you'd like to contribute to Viglet Turing, be sure to review the contribution guidelines.

We use GitHub issues for tracking requests and bugs.

Installation

Docker

$ docker pull solr
$ docker run -d -p 8983:8983 --name solr solr
$ cd TURING_DIR
$ ./gradlew build && docker build -t viglet-turing .
$ docker run -d -p 2700:2700 --name viglet-turing viglet-turing 

Solr

Create Core

Create the turing core into Solr with command:

$ docker exec -it solr bash
$ cd /opt/solr/bin
$ ./solr create -c turing

Create Fields

Create the default fields into Solr with command:

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_PN",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_ON",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_GL",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema
$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_IPTC",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema
$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_ComplexConcepts",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

Highlighting

Solr Highlighting to work requires that the fields that use this feature be text_general type. So add or modify the following fields in /opt/solr/server/solr/turing/conf/managed-schema file.

<field name="text" type="text_general" indexed="true" stored="true"/>
<field name="title" type="text_general" indexed="true" stored="true"/>

Deploy

Generate Fat Jar File

Use Gradle to generate a Viglet Turing Fat Jar file.

$ ./gradlew build

Run

To run Viglet Turing Fat Jar file, just execute the following line:

$ java -jar build/libs/turing-0.1.0.jar

Viglet Turing

For more information

Clone this wiki locally