Package com.complexible.stardog.docs.nlp
Class CandidateMention
- java.lang.Object
-
- com.complexible.stardog.docs.nlp.Annotated
-
- com.complexible.stardog.docs.nlp.CandidateMention
-
public class CandidateMention extends Annotated
A possible match between amention
and anentity
. Contains a set of features, usually generated by aFeatureGenerator
.- Since:
- 5.2
- Version:
- 5.2
- Author:
- Pedro Oliveira
-
-
Field Summary
-
Fields inherited from class com.complexible.stardog.docs.nlp.Annotated
mAnnotations
-
-
Constructor Summary
Constructors Constructor Description CandidateMention(Span theMention, Resource theEntity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFeature(java.lang.String theKey, double theValue)
Resource
entity()
java.util.Optional<java.lang.Double>
feature(java.lang.String theKey)
java.util.Collection<java.lang.Double>
features()
Span
mention()
java.lang.String
toString()
-
-
-
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()
-
entity
public Resource entity()
-
-