|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.naming.DocumentExtractor.Hit
public class DocumentExtractor.Hit
An occurrence of a chemical name in the processed document.
| Field Summary | |
|---|---|
int |
position
Character offset of the name in the document (base 1). |
Molecule |
structure
The chemical structure corresponding to the name. |
java.lang.String |
text
The structure's name occurring in the document. |
| Method Summary | |
|---|---|
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. |
java.lang.String |
getPositionsString()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String text
public final Molecule structure
structure.getName() will return the OCR corrected version of text.
public final int position
| Method Detail |
|---|
public final int[] getAllPositions()
public java.lang.String getPositionsString()
public java.lang.String toString()
toString in class java.lang.Objectpublic int getPageNumber()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||