EntityConstraints

object EntityConstraints extends Logging

Utilities for validating entities

trait Logging
class Object
trait Matchable
class Any

Value members

Concrete methods

def isCoord(i: Int, mention: Mention, tagSet: TagSet): Boolean

Decide if the sentence element is a conjunction using just the POS tag *

Decide if the sentence element is a conjunction using just the POS tag *

def matchingBrackets(mention: Mention): Boolean

Check if brackets and braces match

Check if brackets and braces match

def matchingBrackets(words: Seq[String]): Boolean
def matchingBrackets(words: Seq[String], opening: String, closing: String): Boolean
def validFinalTag(mention: Mention, tagSet: TagSet): Boolean

Ensure final token of mention span is valid

Ensure final token of mention span is valid

def withinMaxLength(mention: Mention, n: Int): Boolean

Limit entity mentions to at most n tokens

Limit entity mentions to at most n tokens

Concrete fields

val coordPOS: Set[String]
val pairs: Seq[(String, String)]

Inherited fields

lazy val logger: Logger
Inherited from:
Logging