Modifier and Type | Method and Description |
---|---|
void |
TreeRule.addIntroduction(List<Pair<Integer,T>> introduction) |
void |
TreeRule.addSubstition(List<Pair<Integer,T>> substitution) |
Modifier and Type | Method and Description |
---|---|
Pair<int[],float[]> |
Lexicon.getFeatureVector(Map<String,Float> featureMap)
generate a feature id representation from a feature vector with associated weights
|
Pair<int[],float[]> |
Lexicon.pruneFeaturesByCount(int[] idx,
float[] fs,
int threshold) |
Modifier and Type | Method and Description |
---|---|
protected void |
TreeView.addDependencyTree(Tree<Pair<String,Integer>> depTree,
int sentStart,
Constituent parent) |
protected void |
TreeView.addDependencyTreeWithHack(Tree<Pair<String,Integer>> depTree,
Constituent parent,
int sentenceStart) |
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
|
void |
TreeView.setDependencyTree(int sentenceId,
Tree<Pair<String,Integer>> depTree)
Set the dependency tree of hte
sentenceId th sentence. |
void |
TreeView.setDependencyTree(int sentenceId,
Tree<Pair<String,Integer>> depTree,
double treeScore)
Set the dependency tree for a specified sentence.
|
Modifier and Type | Method and Description |
---|---|
Pair<Table,List<String>> |
ClassificationTester.getConfusionTable() |
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
MathUtilities.max(Collection<T> list)
Find the argmax and max in a list of elements that can are ordered.
|
static Pair<Integer,Double> |
MathUtilities.max(double[] array)
Find the argmax and max in a double array.
|
static Pair<Integer,Integer> |
MathUtilities.max(int[] array)
Find the argmax and max in an int array.
|
static <T,S extends Comparable<S>> |
MathUtilities.max(Map<T,S> map)
Find the argmax and max in a map from items to values.
|
static <T extends Comparable<T>> |
MathUtilities.max(T[] array)
Find the argmax and max in a array of elements that can are ordered.
|
static <T extends Comparable<T>> |
MathUtilities.min(Collection<T> list)
Find the argmin and min in a list of elements that can are ordered.
|
static Pair<Integer,Double> |
MathUtilities.min(double[] array)
Find the argmin and min in a double array.
|
static Pair<Integer,Integer> |
MathUtilities.min(int[] array)
Find the argmin and min in a int array.
|
static <T,S extends Comparable<S>> |
MathUtilities.min(Map<T,S> map)
Find the argmin and min in a map from items to values.
|
static <T extends Comparable<T>> |
MathUtilities.min(T[] array)
Find the argmin and min in a array of elements that can are ordered.
|
Modifier and Type | Method and Description |
---|---|
Pair<T,Double> |
Counter.getMax() |
Pair<T,Double> |
Counter.getMin() |
Modifier and Type | Field and Description |
---|---|
Map<String,Pair<String,IntPair>> |
XmlDocumentProcessor.SpanInfo.attributes |
Modifier and Type | Method and Description |
---|---|
static Pair<Boolean,Character> |
StringTransformationCleanup.fixCharByType(int codepoint)
Attempt to replace an out-of-charset character with something appropriate, so that the resulting
string a) makes sense and b) resembles the original.
|
Pair<StringTransformation,List<XmlDocumentProcessor.SpanInfo>> |
XmlDocumentProcessor.processXml(String xmlText)
This class removes XML markup, for the most part.
|
Constructor and Description |
---|
SpanInfo(String label,
IntPair spanOffsets,
Map<String,Pair<String,IntPair>> attributes) |
Modifier and Type | Method and Description |
---|---|
protected static Pair<Tree<String>,Tree<Double>> |
CuratorDataStructureInterface.getParseTreeScores(String sentenceRawString,
edu.illinois.cs.cogcomp.thrift.base.Tree tree) |
Modifier and Type | Method and Description |
---|---|
protected static Tree<Pair<String,Integer>> |
CuratorDataStructureInterface.makeDependencyTree(TextAnnotation ta,
edu.illinois.cs.cogcomp.thrift.base.Tree tree)
Converts a curator tree into a dependency tree that can be added to a TreeView.
|
Modifier and Type | Method and Description |
---|---|
void |
GazetteerViewGenerator.addFilter(Predicate<Pair<Constituent,SpanLabelView>> filter)
Deprecated.
Add a filter for the labels.
|
Modifier and Type | Method and Description |
---|---|
static Pair<int[],double[]> |
FeatureUtilities.convert(Set<Feature> features,
edu.illinois.cs.cogcomp.lbjava.learn.Lexicon lexicon,
boolean trainingMode)
Convert a feature set into a pair of arrays of integers and doubles by looking up the feature
name in the provided lexicon.
|
Modifier and Type | Method and Description |
---|---|
static <T> Pair<List<Tree<T>>,List<Tree<T>>> |
ParseHelper.getPath(Tree<T> start,
Tree<T> end,
Tree<T> tree,
int maxDepth)
Deprecated.
|
static Pair<List<Constituent>,List<Constituent>> |
PathFeatureHelper.getPathsToCommonAncestor(Constituent start,
Constituent end,
int maxDepth)
Get the paths from two constituents to their common ancestor.
|
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 |
---|---|
static String |
PathFeatureHelper.getPathString(Pair<List<Constituent>,List<Constituent>> paths,
boolean includeConstituentLabel,
boolean includeRelationLabel) |
Modifier and Type | Class and Description |
---|---|
class |
NESimPair<A,B> |
Modifier and Type | Field and Description |
---|---|
List<Pair<String,Paragraph>> |
ACEDocument.paragraphs |
Modifier and Type | Method and Description |
---|---|
Pair<String[],IntPair[]> |
StatefulTokenizer.tokenizeSentence(String sentence) |
Pair<String[],IntPair[]> |
IllinoisTokenizer.tokenizeSentence(String sentence)
Deprecated.
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
Tokenizer.tokenizeSentence(String sentence)
given a sentence, return a set of tokens and their character offsets
|
Modifier and Type | Method and Description |
---|---|
List<Pair<String[],IntPair[]>> |
Tokenizer.Tokenization.getTokenizedSentences()
get a list of pairs, each pair corresponding to a sentence's tokens and their *absolute*
character offsets.
|
Modifier and Type | Field and Description |
---|---|
protected Pair<HeadFinderBase.HeadSearchDirection,String[]> |
HeadFinderBase.defaultRule |
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,List<Pair<HeadFinderBase.HeadSearchDirection,String[]>>> |
CollinsHeadFinder.headFinderInformation |
Modifier and Type | Method and Description |
---|---|
protected Pair<String,Integer> |
CollinsHeadDependencyParser.getEdgeLabel(Constituent parseTreeRoot,
String string,
Constituent child) |
static <T> Pair<List<Tree<T>>,List<Tree<T>>> |
ParseUtils.getPath(Tree<T> start,
Tree<T> end,
Tree<T> tree,
int maxDepth)
Deprecated.
|
protected Pair<Tree<Pair<String,Integer>>,String> |
CollinsHeadDependencyParser.processPPTree(Tree<Pair<String,Integer>> tree) |
Modifier and Type | Method and Description |
---|---|
protected Tree<Pair<String,Integer>> |
CollinsHeadDependencyParser.collapseClitics(Tree<Pair<String,Integer>> tree) |
protected Tree<Pair<String,Integer>> |
CollinsHeadDependencyParser.collapsePrepositionLabels(Tree<Pair<String,Integer>> tree) |
Tree<Pair<String,Integer>> |
CollinsHeadDependencyParser.getLabeledDependencyTree(Constituent parseTreeRoot) |
List<Pair<HeadFinderBase.HeadSearchDirection,String[]>> |
CollinsHeadFinder.getNonterminalHeadInformation(String nonTerminal) |
abstract List<Pair<HeadFinderBase.HeadSearchDirection,String[]>> |
HeadFinderBase.getNonterminalHeadInformation(String nonTerminal)
Return information about how the head is to be computed, given the non-terminal.
|
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.
|
protected Pair<Tree<Pair<String,Integer>>,String> |
CollinsHeadDependencyParser.processPPTree(Tree<Pair<String,Integer>> tree) |
Modifier and Type | Method and Description |
---|---|
protected Tree<Pair<String,Integer>> |
CollinsHeadDependencyParser.collapseClitics(Tree<Pair<String,Integer>> tree) |
protected Tree<Pair<String,Integer>> |
CollinsHeadDependencyParser.collapsePrepositionLabels(Tree<Pair<String,Integer>> tree) |
protected Pair<Tree<Pair<String,Integer>>,String> |
CollinsHeadDependencyParser.processPPTree(Tree<Pair<String,Integer>> tree) |
Modifier and Type | Method and Description |
---|---|
Pair<String[],IntPair[]> |
EnglishTokenizer.tokenizeSentence(String sentence)
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
ChineseTokenizer.tokenizeSentence(String text)
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
CharacterTokenizer.tokenizeSentence(String sentence)
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
WhiteSpaceTokenizer.tokenizeSentence(String sentence)
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
StanfordAnalyzer.tokenizeSentence(String sentenceText)
given a sentence, return a set of tokens and their character offsets
|
Pair<String[],IntPair[]> |
ThaiTokenizer.tokenizeSentence(String text)
given a sentence, return a set of tokens and their character offsets
|
Modifier and Type | Method and Description |
---|---|
Pair<SenseInstance,SenseStructure> |
FeatureVectorCacheFile.next() |
Modifier and Type | Method and Description |
---|---|
Pair<SentenceInstance,SentenceStructure> |
SenseExampleGenerator.getExamples(TextAnnotation ta) |
Modifier and Type | Method and Description |
---|---|
int |
PropbankFields.getPredicateStart(List<Tree<Pair<String,IntPair>>> yield) |
Modifier and Type | Method and Description |
---|---|
protected List<Pair<SenseInstance,SenseStructure>> |
PruningPreExtractor.process(Pair<SenseInstance,SenseStructure> input) |
Modifier and Type | Method and Description |
---|---|
protected void |
PruningPreExtractor.consume(Pair<SenseInstance,SenseStructure> input) |
protected boolean |
PruningPreExtractor.prerequisiteCheck(Pair<SenseInstance,SenseStructure> input) |
protected List<Pair<SenseInstance,SenseStructure>> |
PruningPreExtractor.process(Pair<SenseInstance,SenseStructure> input) |
Modifier and Type | Method and Description |
---|---|
Pair<edu.illinois.cs.cogcomp.sl.core.IStructure,Double> |
MulticlassInference.getLossAugmentedBestStructure(edu.illinois.cs.cogcomp.sl.util.WeightVector weight,
edu.illinois.cs.cogcomp.sl.core.IInstance ins,
edu.illinois.cs.cogcomp.sl.core.IStructure goldStructure) |
Modifier and Type | Method and Description |
---|---|
Pair<DatasetType,DatasetType> |
CrossValidationHelper.DatasetSplitter.getFoldData(DatasetType data,
int foldId) |
Modifier and Type | Method and Description |
---|---|
Iterator<Pair<K,V>> |
ZippedList.iterator() |
Modifier and Type | Method and Description |
---|---|
static Pair<String,Integer> |
BIOTester.joint_inference(Constituent t,
edu.illinois.cs.cogcomp.lbjava.learn.Learner[] candidates) |
Modifier and Type | Method and Description |
---|---|
static List<Pair<Integer,String>> |
BIOFeatureExtractor.getBrownClusterPaths(Constituent c)
Get the brown-clusters representations of a given Constituent
This function checks one word before and two words after it.
|
static List<Pair<Integer,String>> |
BIOFeatureExtractor.getGazetteerFeatures(Constituent c)
Extracts the gazetteers feature for a given constituent
The size of the Constituent should be 1.
|
static List<Pair<String,String>> |
BIOFeatureExtractor.getGazetteerFeaturesHead(Relation r)
This functions works for the extent classifier.
|
static List<Pair<Integer,String>> |
BIOFeatureExtractor.getPOSFeatures(Constituent c)
Extracts Part-of-speech tagging features of a given Constituent
The size of the Constituent should be 1
|
static List<Pair<Integer,String>> |
BIOFeatureExtractor.getWordFormFeatures(Constituent c)
Get the form/lemma features of a given Constituent.
|
static List<Pair<String,Boolean>> |
BIOFeatureExtractor.getWordTypeInformation(Constituent c)
This extracts the special form of a given Constituent (all digits...
|
Copyright © 2017. All rights reserved.