Modifier and Type | Method and Description |
---|---|
static List<IntPair> |
LongestCommonSubsequence.getCharacterLCS(String s1,
String s2) |
List<IntPair> |
LongestCommonSubsequence.getLCSMatch(List<T> seq1,
List<T> seq2) |
List<IntPair> |
LongestCommonSubsequence.getLCSMatch(T[] seq1,
T[] seq2) |
Modifier and Type | Field and Description |
---|---|
static Comparator<IntPair> |
IntPair.comparatorFirst |
static Comparator<IntPair> |
IntPair.comparatorSecond |
Modifier and Type | Field and Description |
---|---|
protected IntPair |
Constituent.span |
protected IntPair[] |
AbstractTextAnnotation.tokenCharacterOffsets
The character offsets of the tokens.
|
Modifier and Type | Field and Description |
---|---|
protected gnu.trove.map.TIntObjectMap<ArrayList<IntPair>> |
TextAnnotation.allSpans |
static Comparator<IntPair> |
TextAnnotationUtilities.IntPairComparator |
Modifier and Type | Method and Description |
---|---|
IntPair |
Constituent.getSpan() |
IntPair |
AbstractTextAnnotation.getTokenCharacterOffset(int position)
Get the character offset of the token at position in the raw text.
|
Modifier and Type | Method and Description |
---|---|
List<IntPair> |
TextAnnotation.getSpansMatching(String text) |
Modifier and Type | Method and Description |
---|---|
List<Constituent> |
View.getConstituentsWithSpan(IntPair span) |
void |
Sentence.setTokens(String[] tokens,
IntPair[] tokenCharacterOffsets) |
void |
AbstractTextAnnotation.setTokens(String[] tokens,
IntPair[] tokenCharacterOffsets)
Deprecated.
There is now a TOKENS view that should be used to access the tokens
|
Modifier and Type | Method and Description |
---|---|
protected void |
TreeView.addParseTree(Tree<Pair<String,IntPair>> spanLabeledTree,
Constituent root,
int sentenceStartPosition)
Transforms an unscored input tree into the constituent-relation graph
|
protected void |
TreeView.addScoredParseTree(Tree<Pair<String,IntPair>> spanLabeledTree,
Tree<Double> scores,
Constituent root,
int sentenceStartPosition)
Transforms a scored input tree into the constituent-relation graph
|
Constructor and Description |
---|
TextAnnotation(String corpusId,
String id,
String text,
IntPair[] characterOffsets,
String[] tokens,
int[] sentenceEndPositions) |
Modifier and Type | Field and Description |
---|---|
IntPair |
XmlDocumentProcessor.SpanInfo.spanOffsets |
Modifier and Type | Field and Description |
---|---|
Map<String,Pair<String,IntPair>> |
XmlDocumentProcessor.SpanInfo.attributes |
Modifier and Type | Method and Description |
---|---|
IntPair |
StringTransformation.getOriginalOffsets(int transformStart,
int transformEnd)
given a pair of offsets into the transformed text, retrieve the corresponding offsets in the original text.
|
static IntPair[] |
TokenUtils.getTokenOffsets(String sentence,
String[] tokens)
Takes a string and its tokenizied form, and returns an array of span index pairs.
|
IntPair |
StringTransformation.transformString(int textStart,
int textEnd,
String newStr)
Modify the current version of the transformed text (as returned by getTransformedText()) by replacing the
string between character offsets textStart and textEnd with newStr.
|
Modifier and Type | Method and Description |
---|---|
static Map<IntPair,Set<String>> |
XmlDocumentProcessor.compileAttributeValues(List<XmlDocumentProcessor.SpanInfo> xmlMarkup)
builds a map of attribute value offsets to attribute value to support search for metadata matching
entity mentions
|
static Map<IntPair,XmlDocumentProcessor.SpanInfo> |
XmlDocumentProcessor.compileOffsetSpanMapping(List<XmlDocumentProcessor.SpanInfo> retainedTagInfo)
generate a mapping from span offset to span info
|
Constructor and Description |
---|
SpanInfo(String label,
IntPair spanOffsets,
Map<String,Pair<String,IntPair>> attributes) |
Constructor and Description |
---|
SpanInfo(String label,
IntPair spanOffsets,
Map<String,Pair<String,IntPair>> attributes) |
Modifier and Type | Method and Description |
---|---|
static IntPair |
FeatureCreatorUtil.getWindowSpan(Constituent c,
int windowStart,
int windowEnd,
boolean ignoreSentenceBoundaries)
adjust initial window start/end based on how far word context extends in terms of the
underlying text/sentence (depending on ignoreSentenceBoundaries flag).
|
Modifier and Type | Method and Description |
---|---|
static Tree<Pair<String,IntPair>> |
ParseHelper.getTokenIndexedCleanedParseTreeNodeCovering(Constituent c,
String parseViewName) |
static Tree<Pair<String,IntPair>> |
ParseHelper.getTokenIndexedParseTreeNodeCovering(String parseViewName,
Constituent c) |
static Tree<Pair<String,IntPair>> |
ParseHelper.getTokenIndexedTreeCovering(Tree<String> parse,
int start,
int end)
From a parse tree and a span that is specified with the start and end (exclusive), this
function returns a tree that corresponds to the subtree that covers the span.
|
Modifier and Type | Method and Description |
---|---|
protected IntPair |
ERENerReader.getTokenOffsets(int origStartOffset,
int origEndOffset,
String mentionForm,
XmlTextAnnotation xmlTa)
find the token offsets in the TextAnnotation that correspond to the source character offsets for the given
mention
|
Modifier and Type | Method and Description |
---|---|
IntPair[] |
Tokenizer.Tokenization.getCharacterOffsets() |
Constructor and Description |
---|
Tokenization(String[] tokens,
IntPair[] characterOffsets,
int[] sentenceEndTokenIndexes) |
Modifier and Type | Method and Description |
---|---|
static Tree<Pair<String,IntPair>> |
ParseUtils.getSpanLabeledTree(Tree<String> parseTree)
Transforms a parse tree into a new tree where each node is labeled by the span it covers in
addition to the label of that node from the original parse tree.
|
static Tree<Pair<String,IntPair>> |
ParseUtils.getTokenIndexedCleanedParseTreeNodeCovering(Constituent c,
String parseViewName) |
static Tree<Pair<String,IntPair>> |
ParseUtils.getTokenIndexedParseTreeNodeCovering(String parseViewName,
Constituent c) |
static Tree<Pair<String,IntPair>> |
ParseUtils.getTokenIndexedTreeCovering(Tree<String> parse,
int start,
int end)
From a parse tree and a span that is specified with the start and end (exclusive), this
function returns a tree that corresponds to the subtree that covers the span.
|
Modifier and Type | Method and Description |
---|---|
String |
TemporalChunkerAnnotator.getSentenceTense(TextAnnotation ta,
IntPair currSpan)
Get the tense of a given sentence
|
Modifier and Type | Method and Description |
---|---|
int |
PropbankFields.getPredicateStart(List<Tree<Pair<String,IntPair>>> yield) |
Copyright © 2017. All rights reserved.