uk.ac.gla.dcs.renaissance.ir.xmlpos
Class XMLPOSDocumentFactory

java.lang.Object
  extended by it.unimi.dsi.mg4j.document.AbstractDocumentFactory
      extended by it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
          extended by uk.ac.gla.dcs.renaissance.ir.DefaultDocumentFactory
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from class uk.ac.gla.dcs.renaissance.ir.DefaultDocumentFactory
DefaultDocumentFactory.Field
 
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
 
Field Summary
 
Fields inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
defaultMetadata
 
Constructor Summary
XMLPOSDocumentFactory()
           
XMLPOSDocumentFactory(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> metadata)
           
 
Method Summary
 it.unimi.dsi.mg4j.document.DocumentFactory copy()
           
 it.unimi.dsi.mg4j.document.Document getDocument(InputStream rawContent, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> metadata)
           
 DefaultDocumentFactory.Field[] getFields()
           
 String toString()
           
 
Methods inherited from class uk.ac.gla.dcs.renaissance.ir.DefaultDocumentFactory
fieldIndex, fieldName, fieldType, numberOfFields
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLPOSDocumentFactory

public XMLPOSDocumentFactory(it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enum<?>,Object> metadata)

XMLPOSDocumentFactory

public XMLPOSDocumentFactory()
Method Detail

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.