-
-
Notifications
You must be signed in to change notification settings - Fork 9
Installation Guide
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.
-
Install Docker. https://docs.docker.com/engine/installation
-
To use Solr, install and start this Docker with command:
$ 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
Create the turing core into Solr with command:
$ docker exec -it solr bash
$ cd /opt/solr/bin
$ ./solr create -c turing
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
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"/>
Use Gradle to generate a Viglet Turing Fat Jar file.
$ ./gradlew build
To run Viglet Turing Fat Jar file, just execute the following line:
$ java -jar build/libs/turing-0.1.0.jar
- Administration Console http://localhost:2700.
- Semantic Navigation http://localhost:2700/sn.
© 2019 Viglet