Class LinkedSpan<T extends BaseLink>

    • Constructor Detail

      • LinkedSpan

        public LinkedSpan​(ArrayList<T> linkedEntries,
                          int s,
                          int e,
                          String type)
      • LinkedSpan

        public LinkedSpan​(ArrayList<T> linkedEntries,
                          int s,
                          int e,
                          String type,
                          double prob)
      • LinkedSpan

        public LinkedSpan​(ArrayList<T> linkedEntries,
                          int s,
                          int e)
      • LinkedSpan

        public LinkedSpan​(ArrayList<T> linkedEntries,
                          Span span,
                          int offset)
    • Method Detail

      • getLinkedEntries

        public ArrayList<T> getLinkedEntries()
        Returns the n best linked entries from an external data source. For instance, this will hold gazateer entries for a search into a geonames gazateer
        Returns:
      • setLinkedEntries

        public void setLinkedEntries​(ArrayList<T> linkedEntries)
        Sets the n best linked entries from an external data source. For instance, this will hold gazateer entries for a search into a geonames gazateer
      • getSentenceid

        public int getSentenceid()
        Returns the id or index of the sentence from which this span was extracted
        Returns:
      • setSentenceid

        public void setSentenceid​(int sentenceid)
        sets the id or index of the sentence from which this span was extracted
        Parameters:
        sentenceid -
      • getSearchTerm

        public String getSearchTerm()
        Returns the search term that was used to link this span to an external data source
        Returns:
        searchTerm
      • setSearchTerm

        public void setSearchTerm​(String searchTerm)
        sets the search term that is used to link this span to an external data source
        Parameters:
        searchTerm -
      • toString

        public String toString()
        Description copied from class: Span
        Generates a human readable string.
        Overrides:
        toString in class Span
      • hashCode

        public int hashCode()
        Description copied from class: Span
        Generates a hash code of the current span.
        Overrides:
        hashCode in class Span
      • equals

        public boolean equals​(Object obj)
        Description copied from class: Span
        Checks if the specified span is equal to the current span.
        Overrides:
        equals in class Span