public class LlmStringComparator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LLM_THRESHOLD |
static String |
LLM_THRESHOLD |
Constructor and Description |
---|
LlmStringComparator() |
LlmStringComparator(ResourceManager rm_) |
LlmStringComparator(ResourceManager rm_,
edu.illinois.cs.cogcomp.mrcs.comparators.Comparator<String,edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult> comparator_) |
Modifier and Type | Method and Description |
---|---|
edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> |
alignNEStringArrays(String[] ne1_,
String[] ne2_)
determines best lexical level match of two arrays of Name Entity using
NESim.
|
edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> |
alignSentences(String text_,
String hyp_)
convenience method to generate the alignment for two sentences specified
as Strings.
|
edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> |
alignStringArrays(String[] textTokens_,
String[] hypTokens_)
generate a lexical alignment using the comparator specified at
construction, and the
|
double |
compareAnnotation(TextAnnotation source,
TextAnnotation target)
Convenience method to generate a scalar score for two input sentences
passed as TextAnnotation.
|
double |
compareStrings_(String source_,
String target_)
convenience method to generate a scalar score for two input sentences
passed as Strings..
|
edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult |
determineEntailment(String[] textToks_,
String[] hypToks_)
determines best lexical level match of two arrays of String, each
representing a tokenized sentence.
|
edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult |
determineEntailment(String text_,
String hyp_)
convenience method with sentences as Strings.
|
edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult |
scoreAlignment(edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> alignment_)
generate the result (score, label, etc.) for the given alignment using
GreedyAlignmentScorer
|
public static final String LLM_THRESHOLD
public static final String DEFAULT_LLM_THRESHOLD
public LlmStringComparator() throws IOException
IOException
public LlmStringComparator(ResourceManager rm_) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
public LlmStringComparator(ResourceManager rm_, edu.illinois.cs.cogcomp.mrcs.comparators.Comparator<String,edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult> comparator_) throws IOException
IOException
public edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult determineEntailment(String text_, String hyp_) throws Exception
text_
- the Text (typically longer text span)hyp_
- the Hypothesis (intent: is this true, given the Text?)Exception
public edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult determineEntailment(String[] textToks_, String[] hypToks_) throws Exception
textToks_
- hypToks_
- Exception
public edu.illinois.cs.cogcomp.mrcs.dataStructures.EntailmentResult scoreAlignment(edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> alignment_)
alignment_
- public edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> alignSentences(String text_, String hyp_) throws Exception
text_
- hyp_
- Exception
public edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> alignStringArrays(String[] textTokens_, String[] hypTokens_) throws Exception
textTokens_
- hypTokens_
- Exception
public edu.illinois.cs.cogcomp.mrcs.dataStructures.Alignment<String> alignNEStringArrays(String[] ne1_, String[] ne2_) throws Exception
ne1_
- ne2_
- Exception
public double compareAnnotation(TextAnnotation source, TextAnnotation target) throws Exception
source_
- target_
- Exception
Copyright © 2017. All rights reserved.