textractor.didyoumean
Class DidYouMeanDocumentFactory
java.lang.Object
it.unimi.dsi.mg4j.document.AbstractDocumentFactory
it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory
textractor.didyoumean.DidYouMeanDocumentFactory
- All Implemented Interfaces:
- DocumentFactory, FlyweightPrototype<DocumentFactory>, Serializable
public final class DidYouMeanDocumentFactory
- extends PropertyBasedDocumentFactory
User: campagne
Date: Nov 8, 2005
Time: 3:11:43 PM
- See Also:
- Serialized Form
| Methods inherited from class it.unimi.dsi.mg4j.document.PropertyBasedDocumentFactory |
ensureJustOne, getInstance, getInstance, getInstance, getInstance, parseProperties, parseProperties, parseProperty, resolve, resolve, resolveNotNull, sameKey |
WORD
public static final int WORD
- See Also:
- Constant Field Values
GRAM3
public static final int GRAM3
- See Also:
- Constant Field Values
GRAM4
public static final int GRAM4
- See Also:
- Constant Field Values
THREE_START
public static final int THREE_START
- See Also:
- Constant Field Values
THREE_END
public static final int THREE_END
- See Also:
- Constant Field Values
FOUR_START
public static final int FOUR_START
- See Also:
- Constant Field Values
FOUR_END
public static final int FOUR_END
- See Also:
- Constant Field Values
GRAM2
public static final int GRAM2
- See Also:
- Constant Field Values
DidYouMeanDocumentFactory
public DidYouMeanDocumentFactory()
numberOfFields
public int numberOfFields()
- Returns the number of fields present in the documents produced by this
factory.
- Returns:
- the number of fields present in the documents produced by this
factory.
fieldName
public String fieldName(int field)
- Returns the symbolic name of a field.
- Parameters:
field - the index of a field (between 0 inclusive and
numberOfFields() exclusive}).
- Returns:
- the symbolic name of the
field-th field.
fieldIndex
public int fieldIndex(String fieldName)
- Returns the index of a field, given its symbolic name.
- Parameters:
fieldName - the name of a field of this factory.
- Returns:
- the corresponding index, or -1 if there is no field with name
fieldName.
fieldType
public DocumentFactory.FieldType fieldType(int field)
copy
public DocumentFactory copy()
getDocument
public Document getDocument(InputStream rawContent,
Reference2ObjectMap<Enum<?>,Object> metadata)
Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.