Salt  3.4.2
A powerful, tagset-independent and theory-neutral meta model and API for storing, manipulating, and representing nearly all types of linguistic data .
org.corpus_tools.salt.util.TokenStartComparator Class Reference

Inherits Comparator< SToken >, and Serializable.

Public Member Functions

SDocumentGraph getDocumentGraph ()
 Returns the SDocumentGraph object which contains the tokens to be compared. More...
 
void setDocumentGraph (SDocumentGraph documentGraph)
 Sets the SDocumentGraph object which contains the tokens to be compared. More...
 
int compare (SToken o1, SToken o2)
 Returns -1 if o1 has less text position than o2, 0 if both have equal positions and 1 if o1 has higher text position than o2.
 

Detailed Description

Author
Florian Zipser

Member Function Documentation

◆ getDocumentGraph()

SDocumentGraph org.corpus_tools.salt.util.TokenStartComparator.getDocumentGraph ( )

Returns the SDocumentGraph object which contains the tokens to be compared.

Returns
documentGraph container graph

◆ setDocumentGraph()

void org.corpus_tools.salt.util.TokenStartComparator.setDocumentGraph ( SDocumentGraph  documentGraph)

Sets the SDocumentGraph object which contains the tokens to be compared.

Parameters
documentGraphcontainer graph