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()
Document
Document.getRawContent()
.
Methods for retrieving more specialized content formats might be implemented by the actual implementations.getContent
in interface Document
public String getRawContent()
Document
getRawContent
in interface Document
public String getPOSTaggedContent()
Document
getPOSTaggedContent
in interface Document
public Set<org.semanticweb.owlapi.model.OWLEntity> getContainedEntities()
AnnotatedDocument
getContainedEntities
in interface AnnotatedDocument
public Set<SemanticAnnotation> getAnnotations()
AnnotatedDocument
getAnnotations
in interface AnnotatedDocument
public int getEntityFrequency(org.semanticweb.owlapi.model.OWLEntity entity)
AnnotatedDocument
getEntityFrequency
in interface AnnotatedDocument
entity
- the entity to get frequency for DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann