p

epic.parser

models

package models

Ordering
  1. Alphabetic
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.

  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 ExtraPNMParams (embeddingType: String = "normal", useSparseLfsuf: Boolean = true, useSparseBrown: Boolean = false, useMostSparseIndicators: Boolean = false, vectorRescaling: Double = 1.0, outputEmbedding: Boolean = false, outputEmbeddingDim: Int = 20, coarsenByRoot: Boolean = false, decoupleTransforms: Boolean = false, useRootLabel: Boolean = false, randomizeUnks: Boolean = false) extends Product with Serializable

    Less-used parameters

  9. case class ExtraPNMSparseParams (useNGrams: Boolean = false, maxNGramOrder: Int = 2, ngramCountThreshold: Int = 1, useTagSpanShape: Boolean = false) extends Product with Serializable
  10. case class ExtraParams (useHackyLexicalFeatures: Boolean = false, hackyLexicalFeatureDesc: String = "", useMorph: Boolean = false, useTagSpanShape: Boolean = false, pathsToMorph: String = "") extends Product with Serializable
    Annotations
    @SerialVersionUID()
  11. class FeaturizedLexicon [L, L2, W] extends TagScorer[L2, W]

  12. 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()
  13. 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

  14. 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()
  15. 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 SerializableLogging with Product with Serializable

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

  16. 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
  17. class LatentParserModel [L, L3, W] extends ParserModel[L, W]
  18. case class LatentSpanModelFactory (inner: SpanModelFactory, substates: File = null, splitUselessStates: Boolean = false, numStates: Int = 2) extends ParserModelFactory[AnnotatedLabel, String] with SerializableLogging with Product with Serializable
  19. case class LeftChildFeature (f: Feature) extends Feature with Product with Serializable
  20. final class LexGrammar [L, L2, W] extends Grammar[L, W]
  21. case class LexGrammarBundle [L, L2, W](topology: RuleTopology[L], baseLexicon: Lexicon[L, W], refinedGrammar: RuleTopology[L2], headFinder: HeadFinder[L]) extends Product with Serializable
  22. class LexModel [L, L2, W] extends ParserModel[L, W] with Serializable with ParserExtractable[L, W]
  23. 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 SerializableLogging with Product with Serializable
  24. 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]] = None, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = None, useIdentitySurfaceFeatures: Boolean = false) extends ParserExtractableModelFactory[AnnotatedLabel, String] with Product with Serializable
  25. case class ParentFeature (f: Feature) extends Feature with Product with Serializable
  26. trait ParserExtractable [L, W] extends AnyRef

  27. trait ParserExtractableModelFactory [L, W] extends AnyRef
  28. trait ParserInference [L, W] extends ProjectableInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]
  29. trait ParserModel [L, W] extends Model[TreeInstance[L, W]] with ParserExtractable[L, W]

    Base trait for "normal" Parser-type models

  30. trait ParserModelFactory [L, W] extends ParserExtractableModelFactory[L, W]
  31. class PositionalNeuralModel [L, L2, W] extends ParserModel[L, W] with Serializable

    Main neural CRF parser class.

    Main neural CRF parser class.

    Annotations
    @SerialVersionUID()
  32. case class PositionalNeuralModelFactory (annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = GenerativeParser.defaultAnnotator(), dummyFeats: Double = 0.5, commonWordThreshold: Int = 100, useSparseFeatures: Boolean = true, nonLinType: String = "relu", backpropIntoEmbeddings: Boolean = false, dropoutRate: Double = 0.0, numHidden: Int = 200, numHiddenLayers: Int = 1, neuralSurfaceWordsToUse: String = "most", word2vecPath: String = "", vocFile: String = "", lowercasedVectors: Boolean = false, extraPNMParams: ExtraPNMParams = ExtraPNMParams(), extraPNMSparseParams: ExtraPNMSparseParams = ExtraPNMSparseParams()) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable
  33. 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 SerializableLogging with Product with Serializable

  34. case class RightChildFeature (f: Feature) extends Feature with Product with Serializable
  35. 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()
  36. 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, useChildFeats: Boolean = false, useFullShape: Boolean = false, useSplitShape: Boolean = false, posFeaturizer: Optional[WordFeaturizer[String]] = None, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = None, extraParams: ExtraParams = ExtraParams()) extends ParserModelFactory[AnnotatedLabel, String] with SerializableLogging with Product with Serializable
    Annotations
    @SerialVersionUID()
  37. 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.

    Annotations
    @SerialVersionUID()
  38. case class StructModelFactory (annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = KMAnnotator(), oldWeights: File = null, annotatedTreesDumpPath: File = null) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable
  39. class ThreePointModel [L, L2, W] extends ParserModel[L, W]

    TODO

  40. 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]] = None, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = None, extraParams: ExtraParams = ExtraParams()) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable
  41. class TransformModel [L, L2, W] extends ParserModel[L, W]

    TODO

  42. 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]] = None, spanFeaturizer: Optional[SplitSpanFeaturizer[String]] = None, 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 SerializableLogging
  5. object IndexedSpanFeaturizer extends Serializable
  6. object LatentModelFactory extends Serializable
  7. object NeuralParserTrainer extends ParserPipeline with SerializableLogging

    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 ParserTrainer extends ParserPipeline with SerializableLogging

    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.

  9. object PositionalNeuralModel extends Serializable
  10. object PositionalNeuralModelFactory extends Serializable
  11. object SpanModelFactory extends Serializable
  12. object Suffixes extends SerializableLogging
  13. object ThreePointModel extends Serializable
  14. object TransformModel extends Serializable

Ungrouped