epic.parser

models

package models

Visibility
  1. Public
  2. All

Type Members

  1. class AnchoredRuleApproximator[L, W] extends EPProjector[L, W] with Serializable

    Annotations
    @SerialVersionUID()
  2. case class AnnotatedParserInference[L, W](featurizer: RefinedFeaturizer[L, W, Feature], annotator: (BinarizedTree[L], IndexedSeq[W]) ⇒ BinarizedTree[(L, Int)], grammar: Grammar[L, W], constrainer: Factory[L, W]) extends ParserInference[L, W] with Product with Serializable

    Parser inference for parses that have only observed annotations.

    Parser inference for parses that have only observed annotations. Handles Structured, Span, and Lexicalized annotations.

    L
    W

    featurizer
    annotator
    grammar
  3. class DotProductGrammar[L, L2, W, Feature] extends Grammar[L, W]

    Annotations
    @SerialVersionUID()
  4. case class EPParams(maxIterations: Int = 5, pruningThreshold: Double = 15, dropOutFraction: Double = 0.0) extends Product with Serializable

  5. class EPParserModel[L, W] extends EPModel[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]] with ParserExtractable[L, W] with Serializable

    Annotations
    @SerialVersionUID()
  6. case class EPParserModelFactory(ep: EPParams, model: Seq[CompatibleFactory], oldWeights: File = null) extends ParserExtractableModelFactory[AnnotatedLabel, String] with Product with Serializable

  7. trait EPProjector[L, W] extends AnyRef

  8. case class ExtraParams(useHackyLexicalFeatures: Boolean = false, hackyLexicalFeatureDesc: String = "", useMorph: Boolean = false, pathsToMorph: String = "") extends Product with Serializable

  9. class FeaturizedLexicon[L, L2, W] extends TagScorer[L2, W]

  10. class IndexedFeaturizer[L, L2, W] extends RefinedFeaturizer[L, W, Feature] with Encoder[Feature] with Serializable

    epic.parser.models.IndexedFeaturizer are featurizers for "normal" unanchored grammars.

    epic.parser.models.IndexedFeaturizer are featurizers for "normal" unanchored grammars. They define an indexed encoding of the features for each rule and label using indexed rule and indexed labels. Handles epic.parser.ProductionFeaturizer instances

    Annotations
    @SerialVersionUID()
  11. class IndexedLexFeaturizer[L, L2, W] extends RefinedFeaturizer[L, W, Feature] with Serializable

    Indexes and caches features for more efficient access.

    Indexes and caches features for more efficient access. Two kinds of features: features we observed in a gold tree (true Features), and features we haven't. The latter are binned by hashcode into the higher-end of the feature index

    L

    Label

    W

    Word

  12. case class IndexedSpanFeaturizer[L, L2, W](wordFeatureIndex: CrossProductIndex[Feature, Feature], spanFeatureIndex: CrossProductIndex[Feature, Feature], ruleAndSpansFeatureIndex: Index[Feature], labelFeaturizer: RefinedFeaturizer[L, W, Feature], wordFeaturizer: IndexedWordFeaturizer[W], surfaceFeaturizer: IndexedSplitSpanFeaturizer[W], ruleAndSpansFeaturizer: RuleAndSpansFeaturizer[W], refinements: GrammarRefinements[L, L2], grammar: RuleTopology[L]) extends RefinedFeaturizer[L, W, Feature] with Serializable with Product

    Annotations
    @SerialVersionUID()
  13. case class LatentModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = Xbarize(), substates: File = null, splitUselessStates: Boolean = false, numStates: Int = 2, oldWeights: File = null) extends ParserModelFactory[AnnotatedLabel, String] with SafeLogging with Product with Serializable

    Model for latent annotated grammars (Petrov and Klein, 2008).

    Model for latent annotated grammars (Petrov and Klein, 2008).

    annotator
    substates
    numStates
    oldWeights

  14. case class LatentParserInference[L, L2, W](featurizer: RefinedFeaturizer[L, W, Feature], annotator: (BinarizedTree[L], IndexedSeq[W]) ⇒ BinarizedTree[IndexedSeq[L2]], grammar: Grammar[L, W], constrainer: Factory[L, W], projections: GrammarRefinements[L, L2]) extends ParserInference[L, W] with Product with Serializable

  15. class LatentParserModel[L, L3, W] extends ParserModel[L, W]

  16. case class LatentSpanModelFactory(inner: SpanModelFactory, substates: File = null, splitUselessStates: Boolean = false, numStates: Int = 2) extends ParserModelFactory[AnnotatedLabel, String] with LazyLogging with Product with Serializable

  17. final class LexGrammar[L, L2, W] extends Grammar[L, W]

  18. case class LexGrammarBundle[L, L2, W](topology: RuleTopology[L], baseLexicon: Lexicon[L, W], refinedGrammar: RuleTopology[L2], headFinder: HeadFinder[L]) extends Product with Serializable

  19. class LexModel[L, L2, W] extends ParserModel[L, W] with Serializable with ParserExtractable[L, W]

  20. case class LexModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = Xbarize(), oldWeights: File = null, dummyFeats: Double = 1.0, minFeatCutoff: Int = 1, useSpanFeatures: Boolean = false, useBilexRuleFeatures: Boolean = true) extends ParserModelFactory[AnnotatedLabel, String] with SafeLogging with Product with Serializable

  21. case class NeuralModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = Xbarize(), commonWordThreshold: Int = 100, oldWeights: File = null, numOutputs: Int = 100, numHidden: Int = 100, posFeaturizer: Optional[WordFeaturizer[String]] = NotProvided, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = NotProvided, useIdentitySurfaceFeatures: Boolean = false) extends ParserExtractableModelFactory[AnnotatedLabel, String] with Product with Serializable

  22. trait ParserExtractable[L, W] extends AnyRef

  23. trait ParserExtractableModelFactory[L, W] extends AnyRef

  24. trait ParserInference[L, W] extends ProjectableInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]

  25. trait ParserModel[L, W] extends Model[TreeInstance[L, W]] with ParserExtractable[L, W]

    Base trait for "normal" Parser-type models

  26. trait ParserModelFactory[L, W] extends ParserExtractableModelFactory[L, W]

  27. case class ProductParserModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = Xbarize(), substates: File = null, numStates: Int = 2, numModels: Int = 2, oldWeights: File = null, splitFactor: Int = 1) extends ParserModelFactory[AnnotatedLabel, String] with SafeLogging with Product with Serializable

  28. class SpanModel[L, L2, W] extends ParserModel[L, W] with Serializable

    A rather more sophisticated discriminative parser.

    A rather more sophisticated discriminative parser. Uses features on the underlying span.

    Annotations
    @SerialVersionUID()
  29. case class SpanModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = GenerativeParser.defaultAnnotator(), oldWeights: File = null, dummyFeats: Double = 0.5, minFeatCount: Int = 1, pruneRedundantFeatures: Boolean = false, commonWordThreshold: Int = 100, ngramCountThreshold: Int = 5, useShape: Boolean = true, useRichSpanContext: Boolean = false, numSpanContextWords: Int = 1, useNGrams: Boolean = false, maxNGramOrder: Int = 2, useGrammar: Boolean = true, useFullShape: Boolean = false, useSplitShape: Boolean = false, posFeaturizer: Optional[WordFeaturizer[String]] = NotProvided, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = NotProvided, extraParams: ExtraParams = ExtraParams()) extends ParserModelFactory[AnnotatedLabel, String] with SafeLogging with Product with Serializable

  30. class StructModel[L, L2, W] extends ParserModel[L, W] with Serializable

    Model for structural annotations, a la Klein and Manning 2003.

    Model for structural annotations, a la Klein and Manning 2003.

    L
    L2
    W

    Annotations
    @SerialVersionUID()
  31. case class StructModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = KMAnnotator(), oldWeights: File = null, annotatedTreesDumpPath: File = null) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable

  32. class ThreePointModel[L, L2, W] extends ParserModel[L, W]

    TODO

  33. case class ThreePointModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = GenerativeParser.defaultAnnotator(), oldWeights: File = null, dummyFeats: Double = 0.5, commonWordThreshold: Int = 100, ngramCountThreshold: Int = 5, useNGrams: Boolean = false, maxNGramOrder: Int = 2, useGrammar: Boolean = true, rank: Int = 1, posFeaturizer: Optional[WordFeaturizer[String]] = NotProvided, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = NotProvided, extraParams: ExtraParams = ExtraParams()) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable

  34. class TransformModel[L, L2, W] extends ParserModel[L, W]

    TODO

  35. case class TransformModelFactory(annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = GenerativeParser.defaultAnnotator(), oldWeights: File = null, dummyFeats: Double = 0.5, commonWordThreshold: Int = 100, ngramCountThreshold: Int = 5, useNGrams: Boolean = false, maxNGramOrder: Int = 2, useGrammar: Boolean = true, rank: Int = 1, posFeaturizer: Optional[WordFeaturizer[String]] = NotProvided, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = NotProvided, extraParams: ExtraParams = ExtraParams()) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable

Value Members

  1. object EPParserModelFactory extends Serializable

  2. object FeaturizedGrammar

  3. object IndexedFeaturizer extends Serializable

  4. object IndexedLexFeaturizer extends LazyLogging with Serializable

  5. object IndexedSpanFeaturizer extends Serializable

  6. object LatentModelFactory extends Serializable

  7. object ParserTrainer extends ParserPipeline with LazyLogging

    The main entry point for training discriminative parsers.

    The main entry point for training discriminative parsers. Has a main method inherited from ParserPipeline. Use --help to see options, or just look at the Params class.

  8. object SpanModelFactory extends Serializable

  9. object Suffixes extends LazyLogging

  10. object ThreePointModel

  11. object TransformModel

Ungrouped