0asa / polyglot-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This Dockerfile allows to play with Polyglot, a natural language pipeline with multilingual support.

Install Docker, and run the following commands:

docker pull 0asa/polyglot-docker
docker run -ti 0asa/polyglot-docker python

You'll end up in a Python interpreter where you can play with polyglot awesomeness:

import polyglot
from polyglot.text import Text, Word
text = Text("Hello, my name is Vincent")
for ent in text.entities:
    print(ent.tag, ent)

About