Practical architecture of the rule-based system for NLP applications