|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.ontology.text.SimpleDocument
public class SimpleDocument
A simple struct based implementation of a Document
.
Constructor Summary | |
---|---|
SimpleDocument(String corpusName,
String docText,
String originalText,
String key,
long id,
String title,
Set<String> categories)
Constructs a new SimpleDocument using the given data values. |
Method Summary | |
---|---|
Set<String> |
categories()
Returns the set of categories that this document has, if any. |
long |
id()
Returns a unique identifier for this document. |
String |
key()
Returns a string name of this document. |
String |
originalText()
Returns the original, uncleaned text. |
String |
rawText()
Returns the raw text of the corpus. |
String |
sourceCorpus()
Returns the name of the source corpus. |
String |
title()
Returns the title of this document, if any exists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleDocument(String corpusName, String docText, String originalText, String key, long id, String title, Set<String> categories)
SimpleDocument
using the given data values.
corpusName
- the name of the corpus that this document came fromdocText
- the cleaned text for this documentkey
- A string based key for this documentid
- A unique identifier for this keytitle
- A title for the documentMethod Detail |
---|
public String sourceCorpus()
sourceCorpus
in interface Document
public String rawText()
rawText
in interface Document
public String originalText()
originalText
in interface Document
public String key()
key
in interface Document
public long id()
id
in interface Document
public String title()
title
in interface Document
public Set<String> categories()
categories
in interface Document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |