TEIParagraph.java
617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package ipipan.clarin.tei.api.entities;
import java.util.List;
/**
* A single paragraph in TEI corpus text.
*
* @author mlenart
*/
public interface TEIParagraph extends TEIEntity {
public enum ParagraphType {
P, DIV, AB, U
}
ParagraphType getType();
String getId(AnnotationLayer layer);
void setId(AnnotationLayer layer, String id);
String getN();
String getText();
List<TEIParagraph> getSubparagraphs();
TEIParagraph getSubparagraph(String id);
List<TEISentence> getSentences();
void setSentences(List<TEISentence> sents);
List<TEIMorph> getMorphs();
void correctSegmentOffsets();
}