package models
- Alphabetic
- Public
- All
Type Members
-
class
AnchoredRuleApproximator
[L, W] extends EPProjector[L, W] with Serializable
- Annotations
- @SerialVersionUID()
-
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.
-
class
DotProductGrammar
[L, L2, W, Feature] extends Grammar[L, W]
- Annotations
- @SerialVersionUID()
- case class EPParams (maxIterations: Int = 5, pruningThreshold: Double = 15, dropOutFraction: Double = 0.0) extends Product with Serializable
-
class
EPParserModel
[L, W] extends EPModel[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]] with ParserExtractable[L, W] with Serializable
- Annotations
- @SerialVersionUID()
- case class EPParserModelFactory (ep: EPParams, model: Seq[CompatibleFactory], oldWeights: File = null) extends ParserExtractableModelFactory[AnnotatedLabel, String] with Product with Serializable
- trait EPProjector [L, W] extends AnyRef
-
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
- case class ExtraPNMSparseParams (useNGrams: Boolean = false, maxNGramOrder: Int = 2, ngramCountThreshold: Int = 1, useTagSpanShape: Boolean = false) extends Product with Serializable
-
case class
ExtraParams
(useHackyLexicalFeatures: Boolean = false, hackyLexicalFeatureDesc: String = "", useMorph: Boolean = false, useTagSpanShape: Boolean = false, pathsToMorph: String = "") extends Product with Serializable
- Annotations
- @SerialVersionUID()
- class FeaturizedLexicon [L, L2, W] extends TagScorer[L2, W]
-
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()
-
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
-
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()
-
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).
- 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
- class LatentParserModel [L, L3, W] extends ParserModel[L, W]
- case class LatentSpanModelFactory (inner: SpanModelFactory, substates: File = null, splitUselessStates: Boolean = false, numStates: Int = 2) extends ParserModelFactory[AnnotatedLabel, String] with SerializableLogging with Product with Serializable
- case class LeftChildFeature (f: Feature) extends Feature with Product with Serializable
- final class LexGrammar [L, L2, W] extends Grammar[L, W]
- case class LexGrammarBundle [L, L2, W](topology: RuleTopology[L], baseLexicon: Lexicon[L, W], refinedGrammar: RuleTopology[L2], headFinder: HeadFinder[L]) extends Product with Serializable
- class LexModel [L, L2, W] extends ParserModel[L, W] with Serializable with ParserExtractable[L, W]
- 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
- 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
- case class ParentFeature (f: Feature) extends Feature with Product with Serializable
- trait ParserExtractable [L, W] extends AnyRef
- trait ParserExtractableModelFactory [L, W] extends AnyRef
- trait ParserInference [L, W] extends ProjectableInference[TreeInstance[L, W], UnrefinedGrammarAnchoring[L, W]]
-
trait
ParserModel
[L, W] extends Model[TreeInstance[L, W]] with ParserExtractable[L, W]
Base trait for "normal" Parser-type models
- trait ParserModelFactory [L, W] extends ParserExtractableModelFactory[L, W]
-
class
PositionalNeuralModel
[L, L2, W] extends ParserModel[L, W] with Serializable
Main neural CRF parser class.
Main neural CRF parser class.
- Annotations
- @SerialVersionUID()
- 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
- 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
- case class RightChildFeature (f: Feature) extends Feature with Product with Serializable
-
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()
-
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()
-
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()
- case class StructModelFactory (annotator: TreeAnnotator[AnnotatedLabel, String, AnnotatedLabel] = KMAnnotator(), oldWeights: File = null, annotatedTreesDumpPath: File = null) extends ParserModelFactory[AnnotatedLabel, String] with Product with Serializable
-
class
ThreePointModel
[L, L2, W] extends ParserModel[L, W]
TODO
- 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
-
class
TransformModel
[L, L2, W] extends ParserModel[L, W]
TODO
- 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
- object EPParserModelFactory extends Serializable
- object FeaturizedGrammar
- object IndexedFeaturizer extends Serializable
- object IndexedLexFeaturizer extends SerializableLogging
- object IndexedSpanFeaturizer extends Serializable
- object LatentModelFactory extends Serializable
-
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.
-
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.
- object PositionalNeuralModel extends Serializable
- object PositionalNeuralModelFactory extends Serializable
- object SpanModelFactory extends Serializable
- object Suffixes extends SerializableLogging
- object ThreePointModel extends Serializable
- object TransformModel extends Serializable