Rest interface for NLP