Class/Object

epic.parser.models

PositionalNeuralModel

Related Docs: object PositionalNeuralModel | package models

Permalink

class PositionalNeuralModel[L, L2, W] extends ParserModel[L, W] with Serializable

Main neural CRF parser class.

Annotations
@SerialVersionUID()
Linear Supertypes
Serializable, Serializable, ParserModel[L, W], ParserExtractable[L, W], Model[TreeInstance[L, W]], Model[TreeInstance[L, W]], SafeLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PositionalNeuralModel
  2. Serializable
  3. Serializable
  4. ParserModel
  5. ParserExtractable
  6. Model
  7. Model
  8. SafeLogging
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PositionalNeuralModel(annotator: (BinarizedTree[L], IndexedSeq[W]) ⇒ BinarizedTree[IndexedSeq[L2]], constrainer: Factory[L, W], topology: RuleTopology[L], lexicon: Lexicon[L, W], refinedTopology: RuleTopology[L2], refinements: GrammarRefinements[L, L2], labelFeaturizer: RefinedFeaturizer[L, W, Feature], surfaceFeaturizer: Word2VecSurfaceFeaturizerIndexed[W], depFeaturizer: Word2VecDepFeaturizerIndexed[W], transforms: IndexedSeq[OutputTransform[Array[Int], DenseVector[Double]]], maybeSparseSurfaceFeaturizer: Option[IndexedSpanFeaturizer[L, L2, W]], depTransforms: Seq[OutputTransform[Array[Int], DenseVector[Double]]], decoupledTransforms: Seq[OutputTransform[Array[Int], DenseVector[Double]]])

    Permalink

Type Members

  1. type ExpectedCounts = StandardExpectedCounts[Feature]

    Permalink
    Definition Classes
    ModelModel
  2. type Inference = PositionalNeuralModel.Inference[L, L2, W]

    Permalink
    Definition Classes
    PositionalNeuralModelParserModelModel
  3. type Marginal = ParseMarginal[L, W]

    Permalink
    Definition Classes
    ParserModelModel
  4. type Scorer = GrammarAnchoring[L, W]

    Permalink
    Definition Classes
    ParserModelModel

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accumulateCounts(inf: Inference, s: Scorer, d: TreeInstance[L, W], m: Marginal, accum: ExpectedCounts, scale: Double): Unit

    Permalink
    Definition Classes
    PositionalNeuralModelModel
  5. final def accumulateCounts(inf: Inference, d: TreeInstance[L, W], accum: ExpectedCounts, scale: Double): Unit

    Permalink
    Definition Classes
    Model
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def cacheFeatureWeights(weights: DenseVector[Double], suffix: String = ""): Unit

    Permalink

    Caches the weights using the cache broker.

    Caches the weights using the cache broker.

    Definition Classes
    Model
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def cloneModelForEnsembling: PositionalNeuralModel[L, L2, W]

    Permalink
  10. val constrainer: Factory[L, W]

    Permalink
  11. val decoupledTransforms: Seq[OutputTransform[Array[Int], DenseVector[Double]]]

    Permalink
  12. val depTransforms: Seq[OutputTransform[Array[Int], DenseVector[Double]]]

    Permalink
  13. def emptyCounts: StandardExpectedCounts[Feature]

    Permalink
    Definition Classes
    ModelModel
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def expectedCounts(inf: Inference, d: TreeInstance[L, W], scale: Double = 1.0): ExpectedCounts

    Permalink
    Definition Classes
    Model
  17. def expectedCountsToObjective(ecounts: ExpectedCounts): (Double, DenseVector[Double])

    Permalink
    Definition Classes
    ModelModel
  18. def extractParser(weights: DenseVector[Double], trainExs: Seq[TreeInstance[L, W]])(implicit deb: Debinarizer[L]): Parser[L, W]

    Permalink

    When doing batch normalization, we need to normalize the test network

  19. def extractParser(weights: DenseVector[Double])(implicit deb: Debinarizer[L]): Parser[L, W]

    Permalink
    Definition Classes
    ParserModelParserExtractable
  20. def featureIndex: Index[Feature]

    Permalink

    Models have features, and this defines the mapping from indices in the weight vector to features.

    Models have features, and this defines the mapping from indices in the weight vector to features.

    Definition Classes
    PositionalNeuralModelModel
  21. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  24. val index: SegmentedIndex[Feature, Index[Feature]]

    Permalink

    Models have features, and this defines the mapping from indices in the weight vector to features.

  25. def inferenceFromWeights(weights: DenseVector[Double], forTrain: Boolean): Inference

    Permalink
  26. def inferenceFromWeights(weights: DenseVector[Double]): Inference

    Permalink
    Definition Classes
    PositionalNeuralModelModel
  27. def initialValueForFeature(f: Feature): Double

    Permalink
    Definition Classes
    PositionalNeuralModelModel
  28. def initialWeightVector(initWeightsScale: Double, initializerSpec: String, trulyRandom: Boolean = false): DenseVector[Double]

    Permalink
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. val lexicon: Lexicon[L, W]

    Permalink
  31. def logger: Logger

    Permalink
    Definition Classes
    SafeLogging
  32. val maybeSparseSurfaceFeaturizer: Option[IndexedSpanFeaturizer[L, L2, W]]

    Permalink
  33. def mergeWeightsForEnsembling(x1: DenseVector[Double], x2: DenseVector[Double]): DenseVector[Double]

    Permalink
  34. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def numFeatures: Int

    Permalink
    Definition Classes
    Model
  38. def readCachedFeatureWeights(suffix: String = ""): Option[DenseVector[Double]]

    Permalink

    just saves feature weights to disk as a serialized counter.

    just saves feature weights to disk as a serialized counter. The file is prefix.ser.gz

    Definition Classes
    Model
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  40. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  41. val topology: RuleTopology[L]

    Permalink
  42. val transforms: IndexedSeq[OutputTransform[Array[Int], DenseVector[Double]]]

    Permalink
  43. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. def weightsCacheName: String

    Permalink
    Attributes
    protected
    Definition Classes
    Model

Inherited from Serializable

Inherited from Serializable

Inherited from ParserModel[L, W]

Inherited from ParserExtractable[L, W]

Inherited from Model[TreeInstance[L, W]]

Inherited from Model[TreeInstance[L, W]]

Inherited from SafeLogging

Inherited from AnyRef

Inherited from Any

Ungrouped