uk.ac.gla.dcs.renaissance.ir.xmlpos
Class XMLPOSDocumentFactory
java.lang.Object
it.unimi.dsi.mg4j.document.AbstractDocumentFactory
it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
uk.ac.gla.dcs.renaissance.ir.DefaultDocumentFactory
uk.ac.gla.dcs.renaissance.ir.xmlpos.XMLPOSDocumentFactory
- All Implemented Interfaces:
- it.unimi.dsi.lang.FlyweightPrototype<it.unimi.dsi.mg4j.document.DocumentFactory>, it.unimi.dsi.mg4j.document.DocumentFactory, Serializable
public final class XMLPOSDocumentFactory
- extends DefaultDocumentFactory
Produces terms of the form WORD POS LEMMA separated by tabulations
Produces xml tags in the same form, with "XML" has the POS and < or >
as the lemma TAG XML <
TAG XML >
- Author:
- Benjamin Piwowarski
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory |
it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory.MetadataKeys |
Nested classes/interfaces inherited from interface it.unimi.dsi.mg4j.document.DocumentFactory |
it.unimi.dsi.mg4j.document.DocumentFactory.FieldType |
Fields inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory |
defaultMetadata |
Methods inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory |
ensureJustOne, getInstance, getInstance, getInstance, getInstance, parseProperties, parseProperties, parseProperty, resolve, resolve, resolveNotNull, sameKey |
Methods inherited from class it.unimi.dsi.mg4j.document.AbstractDocumentFactory |
ensureFieldIndex |
XMLPOSDocumentFactory
public XMLPOSDocumentFactory(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> metadata)
XMLPOSDocumentFactory
public XMLPOSDocumentFactory()
copy
public it.unimi.dsi.mg4j.document.DocumentFactory copy()
getFields
public DefaultDocumentFactory.Field[] getFields()
- Specified by:
getFields
in class DefaultDocumentFactory
getDocument
public it.unimi.dsi.mg4j.document.Document getDocument(InputStream rawContent,
it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> metadata)
throws IOException
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class it.unimi.dsi.mg4j.document.AbstractDocumentFactory
Copyright © 2011. All Rights Reserved.