Package org.languagetool.dev.wikipedia
Class PlainTextMapping
java.lang.Object
org.languagetool.dev.wikipedia.PlainTextMapping
The result of a text extraction: plain text plus a mapping from plain text
positions to corresponding positions in the original markup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionxtc.tree.LocationgetOriginalTextPositionFor(int plainTextPosition)
-
Constructor Details
-
PlainTextMapping
-
-
Method Details
-
getPlainText
-
getMapping
-
getOriginalTextPositionFor
public xtc.tree.Location getOriginalTextPositionFor(int plainTextPosition) - Parameters:
plainTextPosition- not zero-based - smallest value is 1!
-