/** * Given a parse tree, derived from the text, an instance of this interface can measure * the gap between it and the hypothesis parse tree. This measure is a single real number, * which can be used as the h(x) function in search algorithms. * <P> * An instance of this interface is part of {@link GapToolInstances}, which is * constructed in the <code>init()</code> method of {@link InitializationTextTreesProcessor}. * * @see GapToolInstances * * @author Asher Stern * @since Aug 1, 2013 * */ @NotThreadSafe public interface GapHeuristicMeasure<I, S extends AbstractNode<I, S>> { public double measure(TreeAndParentMap<I, S> tree, Map<Integer, Double> featureVector, GapEnvironment<I, S> environment) throws GapException; }
/** * A container of rule-bases and plug-ins. * Note that an {@link OperationsScript} is a rule-bases-and-plug-ins container. * * * @see OperationsScript * * @author Asher Stern * @since Apr 3, 2011 * */ @NotThreadSafe public abstract class RuleBasesAndPluginsContainer<I,S extends AbstractNode<I, S>> { public abstract LinkedHashSet<String> getRuleBasesNames(); public abstract ByLemmaPosLexicalRuleBase<LexicalRule> getByLemmaPosLexicalRuleBase(String name) throws OperationException; public abstract ByLemmaLexicalRuleBase getByLemmaLexicalRuleBase(String name) throws OperationException; public abstract RuleBaseEnvelope<I, S> getRuleBaseEnvelope(String name) throws OperationException; public abstract RuleBaseEnvelope<I, S> getMetaRuleBaseEnvelope(String metaRuleBaseName) throws OperationException; public abstract Plugin getPlugin(String pluginId) throws TeEngineMlException; }
@NotThreadSafe public class OperationsScriptGetter
@NotThreadSafe public class AlignmentCalculator extends AbstractAlignmentCalculator<ExtendedInfo, ExtendedNode>
@NotThreadSafe public abstract class Plugin
@NotThreadSafe public abstract class InstanceBasedPlugin extends Plugin
@NotThreadSafe public class GapToolInstances<I, S extends AbstractNode<I, S>>
@NotThreadSafe public interface SentenceAnnotator
@NotThreadSafe public abstract class ByLemmaPosLexicalRuleBaseWithCache<T extends LexicalRule> extends ByLemmaPosLexicalRuleBase<T>
@NotThreadSafe public interface GapFeaturesUpdate<I, S extends AbstractNode<I, S>>
@NotThreadSafe public class SubstitutionMultiWordUnderlyingFinder
@NotThreadSafe public abstract class OperationsScriptForBuiltinKnowledgeAndPlugins extends OperationsScriptForBuiltinKnowledge
@NotThreadSafe public class PastaBasedV2GapTools<I extends Info, S extends AbstractNode<I, S>> extends AbstractPastaBasedGapTools<I,S, PastaGapFeaturesV2Calculator<I, S>>
@NotThreadSafe public abstract class PerformFactory<T extends Specification>
@NotThreadSafe public class GapBaselineV1Tools implements GapFeaturesUpdate<ExtendedInfo, ExtendedNode>, GapHeuristicMeasure<ExtendedInfo, ExtendedNode>, GapDescriptionGenerator<ExtendedInfo, ExtendedNode>
@NotThreadSafe public abstract class AbstractAlignmentCalculator<T, S extends AbstractNode<T, S>>
@NotThreadSafe public class DefaultOperationScript extends OperationsScriptForBuiltinKnowledgeAndPlugins
@NotThreadSafe public abstract class OperationsScript<I,S extends AbstractNode<I, S>> extends RuleBasesAndPluginsContainer<I,S>
@NotThreadSafe public class PerformFactoryFactory
@NotThreadSafe public abstract class OperationsScriptForBuiltinKnowledge extends OperationsScript<Info, BasicNode>