Interface Sentence

  • All Known Implementing Classes:
    SentenceImpl

    public interface Sentence
    Interface to access the sentence of a document together with its descriptive features.
    • 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:
      • getTokens

        List<Token> getTokens()
        List of tokens included 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: