public class ContextualizerUtils extends Object
Constructor and Description |
---|
ContextualizerUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getCandidatePosition(org.apache.uima.jcas.tcas.Annotation candidate,
List<Token> tokens) |
static List<String> |
getChangedWords(String edit,
List<String> words,
int offset) |
static String |
getTrigram(String s1,
String s2,
String s3) |
static List<String> |
limitToContextWindow(List<String> words,
int offset,
int windowSize) |
public static int getCandidatePosition(org.apache.uima.jcas.tcas.Annotation candidate, List<Token> tokens)
public static List<String> getChangedWords(String edit, List<String> words, int offset)
public static List<String> limitToContextWindow(List<String> words, int offset, int windowSize)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.