Class CandidateMention


  • public class CandidateMention
    extends Annotated
    A possible match between a mention and an entity. Contains a set of features, usually generated by a FeatureGenerator.
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Constructor Detail

      • CandidateMention

        public CandidateMention​(Span theMention,
                                Resource theEntity)
    • Method Detail

      • addFeature

        public void addFeature​(java.lang.String theKey,
                               double theValue)
      • feature

        public java.util.Optional<java.lang.Double> feature​(java.lang.String theKey)
      • features

        public java.util.Collection<java.lang.Double> features()
      • mention

        public Span mention()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Annotated