gov.sandia.cognition.text.convert
Class CommonDocumentTextualConverterFactory

java.lang.Object
  extended by gov.sandia.cognition.text.convert.CommonDocumentTextualConverterFactory

public class CommonDocumentTextualConverterFactory
extends Object

A utility class for creating common document-text converters.

Since:
3.1
Author:
Justin Basilico

Constructor Summary
CommonDocumentTextualConverterFactory()
           
 
Method Summary
static DocumentSingleFieldConverter createBodyConverter()
          Creates a document text converter that extracts the body field.
static DocumentFieldConcatenator createTitleAuthorBodyConverter()
          Creates a document text converter that puts the title, author, and body fields together.
static DocumentFieldConcatenator createTitleBodyConverter()
          Creates a document text converter that puts the title and body fields together.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonDocumentTextualConverterFactory

public CommonDocumentTextualConverterFactory()
Method Detail

createBodyConverter

public static DocumentSingleFieldConverter createBodyConverter()
Creates a document text converter that extracts the body field.

Returns:
A new document text converter for the body field.

createTitleBodyConverter

public static DocumentFieldConcatenator createTitleBodyConverter()
Creates a document text converter that puts the title and body fields together.

Returns:
A new document text converter for the title and body fields.

createTitleAuthorBodyConverter

public static DocumentFieldConcatenator createTitleAuthorBodyConverter()
Creates a document text converter that puts the title, author, and body fields together.

Returns:
A new document text converter for the title, author, and body fields.