org.allenai.nlpstack.parse.poly.reranking

WeirdParseNodeRerankingFunction

Related Doc: package reranking

case class WeirdParseNodeRerankingFunction(classifier: WrapperClassifier, feature: ParseNodeFeature, weirdnessThreshold: Double) extends RerankingFunction with Product with Serializable

This reranking function attempts to rerank parses based on how many "weird" nodes they have, according to a "weirdness" classifier.

classifier

the weirdness classifier

feature

computes a feature vector from a parse tree node

weirdnessThreshold

the minimum probability of weirdness in order for a node to count as "weird"

Linear Supertypes
Serializable, Serializable, Product, Equals, RerankingFunction, (Sculpture, Double) ⇒ Double, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. WeirdParseNodeRerankingFunction
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RerankingFunction
  7. Function2
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WeirdParseNodeRerankingFunction(classifier: WrapperClassifier, feature: ParseNodeFeature, weirdnessThreshold: Double)

    classifier

    the weirdness classifier

    feature

    computes a feature vector from a parse tree node

    weirdnessThreshold

    the minimum probability of weirdness in order for a node to count as "weird"

Value Members

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

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

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

    Definition Classes
    AnyRef → Any
  4. def apply(sculpture: Sculpture, baseCost: Double): Double

    Definition Classes
    WeirdParseNodeRerankingFunction → Function2
  5. final def apply(sculpture: Sculpture): Double

    Definition Classes
    RerankingFunction
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. val classifier: WrapperClassifier

    the weirdness classifier

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def curried: (Sculpture) ⇒ (Double) ⇒ Double

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. val feature: ParseNodeFeature

    computes a feature vector from a parse tree node

  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. def getNodesWithOutcome(parse: PolytreeParse, desiredOutcome: Int): Set[(Int, Option[Justification])]

    Gets the set of "weird" tokens in a parse.

    Gets the set of "weird" tokens in a parse.

    parse

    the parse tree to analyze

    returns

    the indices and explanation for all tokens classified as weird

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    Function2 → AnyRef → Any
  21. def tupled: ((Sculpture, Double)) ⇒ Double

    Definition Classes
    Function2
    Annotations
    @unspecialized()
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. val weirdnessThreshold: Double

    the minimum probability of weirdness in order for a node to count as "weird"

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from RerankingFunction

Inherited from (Sculpture, Double) ⇒ Double

Inherited from AnyRef

Inherited from Any

Ungrouped