public class DocContentsFromForwardIndex extends DocContents
Constructor and Description |
---|
DocContentsFromForwardIndex(List<Annotation> annotations,
List<String> tokens)
Construct DocContentsFromForwardIndex object.
|
Modifier and Type | Method and Description |
---|---|
List<Annotation> |
annotations() |
List<String> |
tokens() |
List<String> |
tokens(Annotation annotation)
Get the tokens of a specific annotation
|
String |
xml() |
toString
public DocContentsFromForwardIndex(List<Annotation> annotations, List<String> tokens)
annotations
- the order of annotations in the tokens listtokens
- the tokenspublic List<Annotation> annotations()
public List<String> tokens(Annotation annotation)
annotation
- annotation to get the tokens forpublic String xml()
xml
in class DocContents
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.