Last time I calculated, the lowest cost way to run spaCy in the cloud was on Google Compute Engine ns1-standard pre-emptable instances. It should be over 100x cheaper per document than using Google, Amazon or Microsoft's cloud NLP APIs. Accuracy will depend on your problem, but if you have your own training data, performance should be similar.
I'm referring to best price per word when the service is continually active. Like, if you want to parse a web dump, what type of instance do you provision a bunch of?
GCE's pre-emptable instances are so much easier to use and manage compared to AWS's spot instances. I made a rule to make stateless services only just to leverage these.
So spacy has support for these languages [1] and wordnet has support for these [2], but neuralcoref (pronoun resolution endpoint) is available only for english.
This current docker image is not exposing those other languages but I can expose them in an update if it helps a lot of people.
That example is a tweet, which the syntax and NER models haven't been trained on. You can make calls to `nlp.update()` to improve it on your own data. We also have an annotation tool, https://prodi.gy , to more quickly create training data.
(I'm the author of spaCy, not this Docker container.)
27 comments
[ 1.2 ms ] story [ 50.6 ms ] threadRelevant links for anyone interested:
* spaCy on Github: https://github.com/explosion/spacy
* NER demo: https://demos.explosion.ai/displacy-ent/
* Neural coref by HuggingFace: https://huggingface.co/coref/
* Accuracy of built-in spaCy models: https://spacy.io/usage/facts-figures
Last time I calculated, the lowest cost way to run spaCy in the cloud was on Google Compute Engine ns1-standard pre-emptable instances. It should be over 100x cheaper per document than using Google, Amazon or Microsoft's cloud NLP APIs. Accuracy will depend on your problem, but if you have your own training data, performance should be similar.
[1] https://goo.gl/JnS95x
[2] https://goo.gl/k5YRjN
Also, it would be useful to see the Dockerfile or script that generated this img.
Added GPU would probably help both spacy and neuralcoref in performance.
> Also, it would be useful to see the Dockerfile or script that generated this img.
Will put it on github shortly.
This current docker image is not exposing those other languages but I can expose them in an update if it helps a lot of people.
[1] https://spacy.io/usage/models [2] http://compling.hss.ntu.edu.sg/omw/
FastText for example has pretrained embeddings for 294 languages: https://github.com/facebookresearch/fastText/blob/master/pre...
Google's Parsey McParseface handles POS tagging for 53 languages: https://github.com/tensorflow/models/blob/f87a58cd96d45de73c...
"Donald Trump's administration" is not a person.
In the following example, "The currency" is not a subject and "India" is not an object.
I don't know how much useful information is extracted by this system.
(I'm the author of spaCy, not this Docker container.)
I just wish the author of this docker container chose demo sentences that advertised it better.
But "subject" and "object" is for indicating the Subject-Verb-Predicate (object) of the sentence and not as in literal object ?
Also that issue is in my code (poor naming choice). Will put up the code on github soon. Hope that will help.
[1] https://spacy.io/models/en [2] https://github.com/huggingface/neuralcoref/tree/bee05b1b55e3...
https://github.com/artpar/languagecrunch