epic.parser

projections

package projections

Visibility
  1. Public
  2. All

Type Members

  1. case class AnchoredPCFGProjector[L, W](threshold: Double = scala.Double.NegativeInfinity) extends ChartProjector[L, W] with Product with Serializable

    Creates a locally-normalized anchored PCFG from some refined forest.

  2. case class AnchoredRuleMarginalProjector[L, W](threshold: Double = scala.Double.NegativeInfinity) extends ChartProjector[L, W] with Product with Serializable

    Creates anchorings for a set of trees from some parser using p(rule | sentence) marginals.

  3. class AnchoredRuleProjector extends Serializable

    Used for computed the expected number of anchored rules that occur at each span/split.

  4. class AnchoredSpanProjector extends Serializable

    Used for computed the expected number of anchored labels that occur at each span

  5. trait ChartProjector[L, W] extends AnyRef

    Projects a chart to a span anchoring

  6. case class EnumeratedAnchoring[L, W](topology: RuleTopology[L], lexicon: Lexicon[L, W], words: IndexedSeq[W], spanScores: Array[OpenAddressHashArray[Double]], unaryScores: Array[OpenAddressHashArray[Double]], binaryScores: Array[Array[OpenAddressHashArray[Double]]], sparsityPattern: ChartConstraints[L]) extends UnrefinedGrammarAnchoring[L, W] with Serializable with Product with Serializable

    An epic.parser.projections.EnumeratedAnchoring is a compressed forest, with potentially distinct rule and span scores for every possible anchoring.

  7. trait GoldTagPolicy[L] extends AnyRef

  8. final case class GrammarRefinements[C, F](labels: ProjectionIndexer[C, F], rules: ProjectionIndexer[Rule[C], Rule[F]]) extends Product with Serializable

  9. case class LabeledSpanProjector[L, W](topology: RuleTopology[L], threshold: Double = scala.Double.NegativeInfinity) extends ChartProjector[L, W] with Product with Serializable

    Creates a grammar using only span marginals and unary rule marginals

  10. class OracleParser[L, L2, W] extends SafeLogging

    Finds the best tree (relative to the gold tree) s.

  11. class ParserChartConstraintsFactory[L, W] extends Factory[L, W] with Serializable with SafeLogging

    Creates labeled span scorers for a set of trees from some parser.

  12. case class ProjectingCoreGrammar[L, W](parser: Parser[L, W], projector: ChartProjector[L, W]) extends Grammar[L, W] with Product with Serializable

  13. final class ProjectionIndexer[C, F] extends (Int) ⇒ Int with Serializable

    For computing projections from a fine grammar to a coarse grammar.

  14. case class ProjectionParams(treebank: ProcessedTreebank, parser: File, out: File = ..., name: String = "parseConstraints", maxParseLength: Int = 80, threshold: Double = -7) extends Product with Serializable

  15. case class SpanAnchoring[L, W](topology: RuleTopology[L], lexicon: Lexicon[L, W], words: IndexedSeq[W], sparsityPattern: ChartConstraints[L], spanScores: Array[OpenAddressHashArray[Double]], unaryScores: Array[OpenAddressHashArray[Double]]) extends UnrefinedGrammarAnchoring[L, W] with Product with Serializable

    TODO

Value Members

  1. object AnchoredRuleProjector extends Serializable

  2. object AnchoredSpanProjector extends Serializable

  3. object GoldTagPolicy

  4. object GrammarRefinements extends Serializable

  5. object OracleParser

  6. object ParserChartConstraintsFactory extends Serializable

  7. object PrecacheConstraints extends LazyLogging

    Object for creating epic.constraints.CachedChartConstraintsFactory from a parser and prepopulating it with the contents of a treebank.

  8. object ProjectionIndexer extends Serializable

Ungrouped