object MentionFilter
Filtering utilities/checks for evaluating the quality of Mentions.
- Alphabetic
- By Inheritance
- MentionFilter
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val CATEGORIES: Seq[String]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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.
-
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. -
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. -
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.
-
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.
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val config: Config
-
def
disallowOverlappingArgs(ms: Seq[Mention]): Seq[Mention]
Disallow overlapping args or args with identical normalized text spans
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val exceptions: Set[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isHyponymOf(a: Mention, b: Mention): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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)
- def keepLongestMentions(ms: Seq[Mention]): Seq[Mention]
-
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
-
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 - val maxArgDistance: Int
-
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.
-
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 - val minChars: Int
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
subsetArgs(a: Mention, b: Mention): Boolean
Returns true if a has all of the arguments of b and possibly more
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
validEntities(ms: Seq[Mention]): Seq[Mention]
Ensures entity is valid *
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
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.