Packages

o

org.parsertongue.mr

MentionFilter

object MentionFilter

Filtering utilities/checks for evaluating the quality of Mentions.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MentionFilter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. val CATEGORIES: Seq[String]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def betterThan(a: Mention, b: Mention): Boolean

    Applies preference heuristics based on Mention type.

    Applies preference heuristics based on Mention type. Returns true when a is preferred to b.

  7. def betterThan(a: RelationMention, b: EventMention): Boolean

    Returns true if a and b have the same label, and b has all of a's arguments and more.

    Returns true if a and b have the same label, and b has all of a's arguments and more.
    This is a higher bar than event/event, because we prefer to have triggers when possible.

  8. def betterThan(a: EventMention, b: RelationMention): Boolean

    Returns true if a and b have the same label, and a has all of b's arguments or more.

    Returns true if a and b have the same label, and a has all of b's arguments or more.
    This is a lower bar than event/event, because we prefer to have triggers when possible.

  9. def betterThan(a: EventMention, b: EventMention): Boolean

    Returns true if a and b have the same label and trigger, and a has all of b's arguments and more.

  10. def betterThan(a: RelationMention, b: RelationMention): Boolean

    Returns true if a and b have the same label, and a has all of b's arguments and more.

  11. def betterThan(a: TextBoundMention, b: TextBoundMention): Boolean

    Returns true if a is longer than b, or they're the same length and a's label is a hyponym of b

  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  13. val config: Config
  14. def disallowOverlappingArgs(ms: Seq[Mention]): Seq[Mention]

    Disallow overlapping args or args with identical normalized text spans

  15. def distinctBroad(ms: Seq[Mention]): Seq[Mention]

    Remove duplicates of mentions sharing an interval, label, and arguments.

    Remove duplicates of mentions sharing an interval, label, and arguments.

    ms

    mentions to be filtered

  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. val exceptions: Set[String]
  19. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def isHyponymOf(a: Mention, b: Mention): Boolean
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def keepLongestMentions(ms: Seq[Mention], state: State): Seq[Mention]

    When mentions overlap, see if any contain all of the information of others plus more.

    When mentions overlap, see if any contain all of the information of others plus more.
    Returns the most informative (longer) mentions.

    ms

    mentions to be filtered

    state

    the State (for searching for other mentions)

  24. def keepLongestMentions(ms: Seq[Mention]): Seq[Mention]
  25. def keepShortSpans(ms: Seq[Mention], maxArgDistance: Int = maxArgDistance): Seq[Mention]

    Returns the mentions that are within a given maximum interval length.

    Returns the mentions that are within a given maximum interval length.
    Longer intervals are less reliable due to poor parsing and intervening material.

    ms

    mentions to be filtered

    maxArgDistance

    maximum allowable interval length

  26. def max(ints: Seq[Int]): Option[Int]

    Given a sequence of integers, returns the greatest value if one exists.

    Given a sequence of integers, returns the greatest value if one exists.
    Based on https://stackoverflow.com/a/19045201

  27. val maxArgDistance: Int
  28. def meetsMinLength(m: Mention, minChars: Int = minChars, exceptions: Set[String] = exceptions): Boolean

    Assesses whether or not a mention meets the minimum length requirement (in number of chars) or if the violation is permitted.

  29. def min(ints: Seq[Int]): Option[Int]

    Given a sequence of integers, returns the least value if one exists.

    Given a sequence of integers, returns the least value if one exists.
    Based on https://stackoverflow.com/a/19045201

  30. val minChars: Int
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  34. def subsetArgs(a: Mention, b: Mention): Boolean

    Returns true if a has all of the arguments of b and possibly more

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. def validEntities(ms: Seq[Mention]): Seq[Mention]

    Ensures entity is valid *

  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped