diasks2 / pragmatic_segmenter

Pragmatic Segmenter is a rule-based sentence boundary detection gem that works out-of-the-box across many languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run as a Service?

jeffrschneider opened this issue · comments

I'd like to use the segmenter with a large Java application and would prefer not to use JRuby, etc. I'd prefer to run the segmenter as a light-weight JSON service. Apologies, I don't know Ruby or I would read the code, but can you run this project as an always-on service?

@jeffrschneider Yes, indeed it is possible to run this project as a service - with slight modifications. However, it does not work out-of-the-box, you have to do wrap it in a service. We successfully use an existing .NET port of the project inside a dockerized ASP.CORE service which is called from Java. I'm sure, the same approach works with the original implementation.