[core] move getSentenceBoundaries from gc_engine to text module