Packages

t

com.johnsnowlabs.nlp.annotators.sbd

SentenceDetectorParams

trait SentenceDetectorParams extends Params

Linear Supertypes
Params, Serializable, Serializable, Identifiable, AnyRef, Any
Known Subclasses
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. SentenceDetectorParams
  2. Params
  3. Serializable
  4. Serializable
  5. Identifiable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def copy(extra: ParamMap): Params
    Definition Classes
    Params
  2. abstract val uid: String
    Definition Classes
    Identifiable

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def $[T](param: Param[T]): T
    Attributes
    protected
    Definition Classes
    Params
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def clear(param: Param[_]): SentenceDetectorParams.this.type
    Definition Classes
    Params
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def copyValues[T <: Params](to: T, extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  9. val customBounds: StringArrayParam

    Characters used to explicitly mark sentence bounds (Default: None)

  10. val customBoundsStrategy: Param[String]

    How to return matched custom bounds (Default: none).

    How to return matched custom bounds (Default: none). Will have no effect if no custom bounds are used. Possible values are:

    • "none" - Will not return the matched bound
    • "prepend" - Prepends a sentence break to the match
    • "append" - Appends a sentence break to the match
  11. final def defaultCopy[T <: Params](extra: ParamMap): T
    Attributes
    protected
    Definition Classes
    Params
  12. val detectLists: BooleanParam

    Whether take lists into consideration at sentence detection (Default: true)

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def explainParam(param: Param[_]): String
    Definition Classes
    Params
  16. def explainParams(): String
    Definition Classes
    Params
  17. val explodeSentences: BooleanParam

    Whether to explode each sentence into a different row, for better parallelization (Default: false)

  18. final def extractParamMap(): ParamMap
    Definition Classes
    Params
  19. final def extractParamMap(extra: ParamMap): ParamMap
    Definition Classes
    Params
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def get[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getCustomBounds: Array[String]

    Custom sentence separator text

  24. def getCustomBoundsStrategy: String

    Gets how to return matched custom bounds (Default: none).

  25. final def getDefault[T](param: Param[T]): Option[T]
    Definition Classes
    Params
  26. def getDetectLists: Boolean

    Whether to take lists into consideration at sentence detection.

    Whether to take lists into consideration at sentence detection. Defaults to true.

  27. def getExplodeSentences: Boolean

    Whether to split sentences into different Dataset rows.

    Whether to split sentences into different Dataset rows. Useful for higher parallelism in fat rows. Defaults to false.

  28. def getMaxLength(value: Int): Int

    Get the maximum allowed length for each sentence

  29. def getMinLength(value: Int): Int

    Get the minimum allowed length for each sentence

  30. final def getOrDefault[T](param: Param[T]): T
    Definition Classes
    Params
  31. def getParam(paramName: String): Param[Any]
    Definition Classes
    Params
  32. def getSplitLength: Int

    Length at which sentences will be forcibly split

  33. def getUseAbbreviations: Boolean

    Whether to consider abbreviation strategies for better accuracy but slower performance.

    Whether to consider abbreviation strategies for better accuracy but slower performance. Defaults to true.

  34. def getUseCustomBoundsOnly: Boolean

    Use only custom bounds without considering those of Pragmatic Segmenter.

    Use only custom bounds without considering those of Pragmatic Segmenter. Defaults to false. Needs customBounds.

  35. final def hasDefault[T](param: Param[T]): Boolean
    Definition Classes
    Params
  36. def hasParam(paramName: String): Boolean
    Definition Classes
    Params
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. final def isDefined(param: Param[_]): Boolean
    Definition Classes
    Params
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. final def isSet(param: Param[_]): Boolean
    Definition Classes
    Params
  41. val maxLength: IntParam

    Set the maximum allowed length for each sentence (Ignored if not set)

  42. val minLength: IntParam

    Set the minimum allowed length for each sentence (Default: 0)

  43. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  44. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  45. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  46. lazy val params: Array[Param[_]]
    Definition Classes
    Params
  47. final def set(paramPair: ParamPair[_]): SentenceDetectorParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  48. final def set(param: String, value: Any): SentenceDetectorParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  49. final def set[T](param: Param[T], value: T): SentenceDetectorParams.this.type
    Definition Classes
    Params
  50. def setCustomBounds(value: Array[String]): SentenceDetectorParams.this.type

    Custom sentence separator text

  51. def setCustomBoundsStrategy(value: String): SentenceDetectorParams.this.type

    Sets how to return matched custom bounds (Default: none).

    Sets how to return matched custom bounds (Default: none). Will have no effect if no custom bounds are used. Possible values are:

    • "none" - Will not return the matched bound
    • "prepend" - Prepends a sentence break to the match
    • "append" - Appends a sentence break to the match
  52. final def setDefault(paramPairs: ParamPair[_]*): SentenceDetectorParams.this.type
    Attributes
    protected
    Definition Classes
    Params
  53. final def setDefault[T](param: Param[T], value: T): SentenceDetectorParams.this.type
    Attributes
    protected[org.apache.spark.ml]
    Definition Classes
    Params
  54. def setDetectLists(value: Boolean): SentenceDetectorParams.this.type

    Whether to take lists into consideration at sentence detection.

    Whether to take lists into consideration at sentence detection. Defaults to true.

  55. def setExplodeSentences(value: Boolean): SentenceDetectorParams.this.type

    Whether to split sentences into different Dataset rows.

    Whether to split sentences into different Dataset rows. Useful for higher parallelism in fat rows. Defaults to false.

  56. def setMaxLength(value: Int): SentenceDetectorParams.this.type

    Set the maximum allowed length for each sentence

  57. def setMinLength(value: Int): SentenceDetectorParams.this.type

    Set the minimum allowed length for each sentence

  58. def setSplitLength(value: Int): SentenceDetectorParams.this.type

    Length at which sentences will be forcibly split

  59. def setUseAbbreviations(value: Boolean): SentenceDetectorParams.this.type

    Whether to consider abbreviation strategies for better accuracy but slower performance.

    Whether to consider abbreviation strategies for better accuracy but slower performance. Defaults to true.

  60. def setUseCustomBoundsOnly(value: Boolean): SentenceDetectorParams.this.type

    Use only custom bounds without considering those of Pragmatic Segmenter.

    Use only custom bounds without considering those of Pragmatic Segmenter. Defaults to false. Needs customBounds.

  61. val splitLength: IntParam

    Length at which sentences will be forcibly split (Ignored if not set)

  62. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  63. def toString(): String
    Definition Classes
    Identifiable → AnyRef → Any
  64. def truncateSentence(sentence: String, maxLength: Int): Array[String]
  65. val useAbbrevations: BooleanParam

    Whether to apply abbreviations at sentence detection (Default: true)

  66. val useCustomBoundsOnly: BooleanParam

    Whether to only utilize custom bounds for sentence detection (Default: false)

  67. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  68. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  69. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Params

Inherited from Serializable

Inherited from Serializable

Inherited from Identifiable

Inherited from AnyRef

Inherited from Any

getParam

param

setParam

Ungrouped