Package edu.upf.taln.dri.lib.model.ext
Interface Sentence
-
- All Known Implementing Classes:
SentenceImpl
public interface Sentence
Interface to access the sentence of a document together with its descriptive features.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
asString(boolean compactOutput)
String representation of the objectInteger
getAbstractId()
Return the ID of the abstract the sentence belongs to.List<BabelSynsetOcc>
getBabelSynsetsOcc()
List of candidate Babelnet synset occurrences spotted in the sentenceList<CandidateTermOcc>
getCandidateTerms()
List of candidate terms included in the sentenceList<CitationMarker>
getCitationMarkers()
List of citation markers included in the sentenceSection
getContainingSection()
Containing sectionInteger
getId()
Document-wide unambiguous sentence IdLangENUM
getLanguage()
Get the language of the sentenceRhetoricalClassENUM
getRhetoricalClass()
Rhetorical class of the sentenceMap<String,MetaEntityTypeENUM>
getSpottedEntities()
It the sentence is an acknowledgment (in the current version only acknowledgment sentences may contain spotted entities)String
getText()
Text of the sentenceList<Token>
getTokens()
List of tokens included in the sentenceboolean
isAcknowledgment()
Check if a sentence is an acknowledgment
-
-
-
Method Detail
-
getId
Integer getId()
Document-wide unambiguous sentence Id- Returns:
-
getAbstractId
Integer getAbstractId()
Return the ID of the abstract the sentence belongs to. For papers having only one abstract, if the sentence is included in the abstract, its abstract ID is equal to 1. For papers having more than one abstract (one per language for instance), if the sentence is included in the first abstract, its abstract ID is equal to 1, otherwise its abstract ID is equal to 2. Sentences that are not part of the abstract of the paper have the abstract ID value set to -1.- Returns:
-
getText
String getText()
Text of the sentence- Returns:
-
getRhetoricalClass
RhetoricalClassENUM getRhetoricalClass()
Rhetorical class of the sentence- Returns:
-
getContainingSection
Section getContainingSection()
Containing section- Returns:
-
getCitationMarkers
List<CitationMarker> getCitationMarkers()
List of citation markers included in the sentence- Returns:
-
getCandidateTerms
List<CandidateTermOcc> getCandidateTerms()
List of candidate terms included in the sentence- Returns:
-
getBabelSynsetsOcc
List<BabelSynsetOcc> getBabelSynsetsOcc()
List of candidate Babelnet synset occurrences spotted in the sentence- Returns:
-
getLanguage
LangENUM getLanguage()
Get the language of the sentence- Returns:
-
isAcknowledgment
boolean isAcknowledgment()
Check if a sentence is an acknowledgment- Returns:
-
getSpottedEntities
Map<String,MetaEntityTypeENUM> getSpottedEntities()
It the sentence is an acknowledgment (in the current version only acknowledgment sentences may contain spotted entities)- Returns:
-
asString
String asString(boolean compactOutput)
String representation of the object- Returns:
-
-