case class ContextualFilteringRules(entity: String, scopeWindowLevel: String, whiteListEntities: Option[Array[String]], blackListEntities: Option[Array[String]], scopeWindow: (Int, Int), blackListWords: Option[Array[String]], whiteListWords: Option[Array[String]], confidenceThreshold: Option[Double], possibleRegexContext: Option[String], impossibleRegexContext: Option[String]) extends Serializable with Product

ContextualFilteringRules is a case class that represents the rules to filter the Chunks.

entity

The field of the entity to filter.

scopeWindowLevel

The level of the scope window. It can be either 'token' or 'chunk'.

whiteListEntities

The white list entities to filter.One element of the white list is enough to keep the chunk.

blackListEntities

The black list entities to filter.All elements of the black list must be absent to keep the chunk.

scopeWindow

The scope window considering chunks to filter. Scope can be calculated looking at tokens or chunks.Decision of chunk or token can be defined by scopeWindowLevel.

blackListWords

The black list words to filter. All elements of the black list must be absent to keep the chunk.

whiteListWords

The white list words to filter. One element of the white list is enough to keep the chunk.

confidenceThreshold

The confidence threshold to filter the chunks. Filtering is only applied if the confidence of the chunk is below the threshold.

possibleRegexContext

The possible regex context to filter the chunks. If the regex is found in the context(chunk), the chunk is kept.

impossibleRegexContext

The impossible regex context to filter the chunks. If the regex is found in the context(chunk), the chunk is removed.

Linear Supertypes
Product, Equals, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContextualFilteringRules
  2. Product
  3. Equals
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContextualFilteringRules(entity: String, scopeWindowLevel: String, whiteListEntities: Option[Array[String]], blackListEntities: Option[Array[String]], scopeWindow: (Int, Int), blackListWords: Option[Array[String]], whiteListWords: Option[Array[String]], confidenceThreshold: Option[Double], possibleRegexContext: Option[String], impossibleRegexContext: Option[String])

    entity

    The field of the entity to filter.

    scopeWindowLevel

    The level of the scope window. It can be either 'token' or 'chunk'.

    whiteListEntities

    The white list entities to filter.One element of the white list is enough to keep the chunk.

    blackListEntities

    The black list entities to filter.All elements of the black list must be absent to keep the chunk.

    scopeWindow

    The scope window considering chunks to filter. Scope can be calculated looking at tokens or chunks.Decision of chunk or token can be defined by scopeWindowLevel.

    blackListWords

    The black list words to filter. All elements of the black list must be absent to keep the chunk.

    whiteListWords

    The white list words to filter. One element of the white list is enough to keep the chunk.

    confidenceThreshold

    The confidence threshold to filter the chunks. Filtering is only applied if the confidence of the chunk is below the threshold.

    possibleRegexContext

    The possible regex context to filter the chunks. If the regex is found in the context(chunk), the chunk is kept.

    impossibleRegexContext

    The impossible regex context to filter the chunks. If the regex is found in the context(chunk), the chunk is removed.

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val blackListEntities: Option[Array[String]]
  6. val blackListWords: Option[Array[String]]
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val confidenceThreshold: Option[Double]
  9. val entity: String
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val impossibleRegexContext: Option[String]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. val possibleRegexContext: Option[String]
  19. val scopeWindow: (Int, Int)
  20. val scopeWindowLevel: String
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  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( ... ) @native()
  25. val whiteListEntities: Option[Array[String]]
  26. val whiteListWords: Option[Array[String]]

Inherited from Product

Inherited from Equals

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped