johndpope / DockerParseyMcParsefaceAPI

DEPRECATED use https://github.com/tensorflow/models/blob/master/syntaxnet/g3doc/CLOUD.md
Apache License 2.0
13 stars 8 forks source link
docker parsey-mcparseface syntaxnet

HELP WANTED

FYI - this will clone / build docker parsey - it can take > 60 mins to compile.
If you're intention is to simply tokenize sentences - you may get a lot of mileage out of NLTK.
http://www.nltk.org/

After faffing around for weeks getting this to compile - I think a smarter way forward is to spit out a binary and include in this repo as opposed to building all sources.

If someone can help script this downloading / pegged to a git commit I'd welcome this as a PR.

Docker Parsey McParseface - gRPC - API

Animation

https://2.bp.blogspot.com/-fqtmVS97tOs/VzTEAI9BQ8I/AAAAAAAAA_U/xPj0Av64sGseS0rF4Z1BbhmS77J-HuEvwCLcB/s640/image04.gif

Installation

https://docs.docker.com/engine/installation/

make start

Troubles?

make rebuild-all

Will build a version of parsey mcparseface with patches to expose protobuffers on http://0.0.0.0:9000

Proto format

https://github.com/johndpope/DockerParseyMcParsefaceAPI/blob/master/clients/node_client/api/syntaxnet/sentence.proto

syntax = "proto3";

package cali.nlp;

import "syntaxnet/sentence.proto";

message ParseyRequest {
  repeated string text = 1;
};

message ParseyResponse {
  repeated syntaxnet.Sentence result = 1;
};

service ParseyService {
  rpc Parse(ParseyRequest) returns (ParseyResponse);
}

OSX - Node Client

Alt text

https://github.com/johndpope/DockerParseyAPI/tree/master/clients/node_client

ios - Client

https://github.com/johndpope/DockerParseyAPI/tree/master/clients/ios_client

Credits

Dockerfile for Myungchul Shin patches on syntaxnet https://github.com/dsindex/syntaxnet/blob/master/README_api.md

Original API work from David Mansfield https://github.com/dmansfield/parsey-mcparseface-api

TensorFlow

https://github.com/tensorflow/tensorflow/

Parsey McParseface / Syntaxnet

https://github.com/tensorflow/models/tree/master/syntaxnet

Protocol Buffers

https://developers.google.com/protocol-buffers/

Docker

https://www.docker.com/

NLTK API Server

https://github.com/vipul-sharma20/nltk-api-server