The locations or offsets of sentences in a text #892
-
Hi there, This may be another silly question but how to get the offsets of sentences in a text?
With the current code, I can get the three sentences:
And in my case, I need to get the offsets of each sentence in original text. For example:
Currently I am using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
hey Huan - yup you can do that like this: doc.sentences().json({offset:true}) https://runkit.com/spencermountain/61bc982d7cf0930008a200a4 |
Beta Was this translation helpful? Give feedback.
hey Huan - yup you can do that like this:
https://runkit.com/spencermountain/61bc982d7cf0930008a200a4
sorry it's not very clear in the docs right now
cheers