public class AnnotatedTextDocument extends Object implements AnnotatedDocument
| Constructor and Description |
|---|
AnnotatedTextDocument(TextDocument document,
Set<SemanticAnnotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
Set<SemanticAnnotation> |
getAnnotations()
Returns all annotations of the document.
|
Set<org.semanticweb.owlapi.model.OWLEntity> |
getContainedEntities()
Returns a set of entities which are contained in the document.
|
String |
getContent()
Returns the cleaned content of this document represented as a string.
|
int |
getEntityFrequency(org.semanticweb.owlapi.model.OWLEntity entity)
Returns the number of occurrences of the given entity in this document.
|
String |
getPOSTaggedContent()
Returns the uncleaned content with POS tags in form of word1/pos1 word2/pos2 ...
|
String |
getRawContent()
Returns the uncleaned content, i.e., as originally retrieved, of this document represented as string.
|
String |
toString() |
public AnnotatedTextDocument(TextDocument document, Set<SemanticAnnotation> annotations)
public String getContent()
DocumentDocument.getRawContent().
Methods for retrieving more specialized content formats might be implemented by the actual implementations.getContent in interface Documentpublic String getRawContent()
DocumentgetRawContent in interface Documentpublic String getPOSTaggedContent()
DocumentgetPOSTaggedContent in interface Documentpublic Set<org.semanticweb.owlapi.model.OWLEntity> getContainedEntities()
AnnotatedDocumentgetContainedEntities in interface AnnotatedDocumentpublic Set<SemanticAnnotation> getAnnotations()
AnnotatedDocumentgetAnnotations in interface AnnotatedDocumentpublic int getEntityFrequency(org.semanticweb.owlapi.model.OWLEntity entity)
AnnotatedDocumentgetEntityFrequency in interface AnnotatedDocumententity - the entity to get frequency for
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann