public class CategoricalFeatureExtractor
extends java.lang.Object
Constructor and Description |
---|
CategoricalFeatureExtractor(java.util.Properties props,
Dictionaries dictionaries) |
Modifier and Type | Method and Description |
---|---|
static org.ejml.simple.SimpleMatrix |
encodeDistance(int d) |
org.ejml.simple.SimpleMatrix |
getAnaphoricityFeatures(Mention m,
Document document,
java.util.Map<java.lang.Integer,java.util.List<Mention>> mentionsByHeadIndex) |
org.ejml.simple.SimpleMatrix |
getPairFeatures(Pair<java.lang.Integer,java.lang.Integer> pair,
Document document,
java.util.Map<java.lang.Integer,java.util.List<Mention>> mentionsByHeadIndex) |
static java.util.List<java.lang.Integer> |
pairwiseFeatures(Document document,
Mention m1,
Mention m2,
Dictionaries dictionaries) |
public CategoricalFeatureExtractor(java.util.Properties props, Dictionaries dictionaries)
public org.ejml.simple.SimpleMatrix getPairFeatures(Pair<java.lang.Integer,java.lang.Integer> pair, Document document, java.util.Map<java.lang.Integer,java.util.List<Mention>> mentionsByHeadIndex)
public static java.util.List<java.lang.Integer> pairwiseFeatures(Document document, Mention m1, Mention m2, Dictionaries dictionaries)
public org.ejml.simple.SimpleMatrix getAnaphoricityFeatures(Mention m, Document document, java.util.Map<java.lang.Integer,java.util.List<Mention>> mentionsByHeadIndex)
public static org.ejml.simple.SimpleMatrix encodeDistance(int d)