UTF-16 Code Units In Python Polyglot
<p>I need to extract the number of UTF-16 code units from the start of the string at which a location name starts from a Python sting. I am using Polyglot NER to tag a location in a Python string. For example, "Obama was born in the United States. But I was born in Alabama", would mark "United States" and "Alabama". The Python Polyglot extractor simply returns to the locations tagged, and the how many words from the front they start. How do I figure out the number of UTF-16 code units from the start of the string the word occurs? </p>

<p>Java interface that requires the information <a href="https://github.com/Berico-Technologies/CLAVIN/blob/master/src/main/java/com/bericotech/clavin/extractor/LocationOccurrence.java" rel="nofollow">https://github.com/Berico-Technologies/CLAVIN/blob/master/src/main/java/com/bericotech/clavin/extractor/LocationOccurrence.java</a></p>