public class DocumentExtractor.Hit extends Object
Modifier and Type | Field and Description |
---|---|
int |
position
Character offset of the name in the document (base 1).
|
Molecule |
structure
The chemical structure corresponding to the name.
|
String |
text
The structure's name occurring in the document.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getAllPositions() |
int |
getPageNumber()
For document formats that have a notion of page (for instance PDF),
this method returns the page the hit occurs on.
|
String |
getPositionsString() |
String |
toString() |
public final String text
public final Molecule structure
structure.getName()
will return the OCR corrected version of text
.public final int position
public final int[] getAllPositions()
public String getPositionsString()
public int getPageNumber()