Class StructuredAbstractParser
- java.lang.Object
-
- de.julielab.jcore.reader.xmlmapper.mapper.StructuredAbstractParser
-
- All Implemented Interfaces:
DocumentTextPartParser
public class StructuredAbstractParser extends Object implements DocumentTextPartParser
This class expects a MEDLINE structured abstract pointed to by thePartOfDocumentgiven to theparseDocumentPart(VTDNav, PartOfDocument, int, JCas, byte[])method or just plain text at the XPath location. It parses the abstract sections and creates the text as well as abstract section annotations and the AbstractText annotation itself, containing all its sections. The section titles are also created as annotations but not added to the text. This should be done by a consuming component, if required.
NOTE: Using this parser, the AbstractText annotation is already created and should not be set in the mapping file.- Author:
- faessler
-
-
Constructor Summary
Constructors Constructor Description StructuredAbstractParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>parseDocumentPart(com.ximpleware.VTDNav vn, PartOfDocument docTextPart, int offset, org.apache.uima.jcas.JCas jCas, byte[] identifier)
-
-
-
Method Detail
-
parseDocumentPart
public List<String> parseDocumentPart(com.ximpleware.VTDNav vn, PartOfDocument docTextPart, int offset, org.apache.uima.jcas.JCas jCas, byte[] identifier)
- Specified by:
parseDocumentPartin interfaceDocumentTextPartParser
-
-