trait NorvigSweetingParams extends Params
These are the configs for the NorvigSweeting model
See https://github.com/JohnSnowLabs/spark-nlp/blob/master/src/test/scala/com/johnsnowlabs/nlp/annotators/spell/norvig/NorvigSweetingTestSpec.scala for further reference on how to use this API
- Grouped
- Alphabetic
- By Inheritance
- NorvigSweetingParams
- Params
- Serializable
- Serializable
- Identifiable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
$[T](param: Param[T]): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
caseSensitive: BooleanParam
Sensitivity on spell checking (Default:
true
).Sensitivity on spell checking (Default:
true
). Might affect accuracy -
final
def
clear(param: Param[_]): NorvigSweetingParams.this.type
- Definition Classes
- Params
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
copyValues[T <: Params](to: T, extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
final
def
defaultCopy[T <: Params](extra: ParamMap): T
- Attributes
- protected
- Definition Classes
- Params
-
val
doubleVariants: BooleanParam
Increase search at cost of performance (Default:
false
).Increase search at cost of performance (Default:
false
). Enables extra check for word combinations, More accuracy at performance -
val
dupsLimit: IntParam
Maximum duplicate of characters in a word to consider (Default:
2
).Maximum duplicate of characters in a word to consider (Default:
2
). Maximum duplicate of characters to account for. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
explainParam(param: Param[_]): String
- Definition Classes
- Params
-
def
explainParams(): String
- Definition Classes
- Params
-
final
def
extractParamMap(): ParamMap
- Definition Classes
- Params
-
final
def
extractParamMap(extra: ParamMap): ParamMap
- Definition Classes
- Params
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
frequencyPriority: BooleanParam
Applies frequency over hamming in intersections (Default:
true
).Applies frequency over hamming in intersections (Default:
true
). When false hamming takes priority -
final
def
get[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getCaseSensitive: Boolean
Sensitivity on spell checking (Default:
true
).Sensitivity on spell checking (Default:
true
). Might affect accuracy -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
getDefault[T](param: Param[T]): Option[T]
- Definition Classes
- Params
-
def
getDoubleVariants: Boolean
Increase search at cost of performance (Default:
false
).Increase search at cost of performance (Default:
false
). Enables extra check for word combinations -
def
getDupsLimit: Int
Maximum duplicate of characters in a word to consider (Default:
2
).Maximum duplicate of characters in a word to consider (Default:
2
). Maximum duplicate of characters to account for. -
def
getFrequencyPriority: Boolean
Applies frequency over hamming in intersections (Default:
true
).Applies frequency over hamming in intersections (Default:
true
). When false hamming takes priority -
def
getIntersections: Int
Hamming intersections to attempt (Default:
10
). -
final
def
getOrDefault[T](param: Param[T]): T
- Definition Classes
- Params
-
def
getParam(paramName: String): Param[Any]
- Definition Classes
- Params
-
def
getReductLimit: Int
Word reduction limit (Default:
3
). -
def
getShortCircuit: Boolean
Increase performance at cost of accuracy (Default:
false
).Increase performance at cost of accuracy (Default:
false
). Faster but less accurate mode -
def
getVowelSwapLimit: Int
Vowel swap attempts (Default:
6
). -
def
getWordSizeIgnore: Int
Minimum size of word before ignoring (Default:
3
).Minimum size of word before ignoring (Default:
3
). Minimum size of word before moving on. -
final
def
hasDefault[T](param: Param[T]): Boolean
- Definition Classes
- Params
-
def
hasParam(paramName: String): Boolean
- Definition Classes
- Params
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
intersections: IntParam
Hamming intersections to attempt (Default:
10
). -
final
def
isDefined(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSet(param: Param[_]): Boolean
- Definition Classes
- Params
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
lazy val
params: Array[Param[_]]
- Definition Classes
- Params
-
val
reductLimit: IntParam
Word reduction limit (Default:
3
). -
final
def
set(paramPair: ParamPair[_]): NorvigSweetingParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set(param: String, value: Any): NorvigSweetingParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
set[T](param: Param[T], value: T): NorvigSweetingParams.this.type
- Definition Classes
- Params
-
def
setCaseSensitive(value: Boolean): NorvigSweetingParams.this.type
Sensitivity on spell checking (Default:
true
).Sensitivity on spell checking (Default:
true
). Might affect accuracy -
final
def
setDefault(paramPairs: ParamPair[_]*): NorvigSweetingParams.this.type
- Attributes
- protected
- Definition Classes
- Params
-
final
def
setDefault[T](param: Param[T], value: T): NorvigSweetingParams.this.type
- Attributes
- protected[org.apache.spark.ml]
- Definition Classes
- Params
-
def
setDoubleVariants(value: Boolean): NorvigSweetingParams.this.type
Increase search at cost of performance (Default:
false
).Increase search at cost of performance (Default:
false
). Enables extra check for word combinations -
def
setDupsLimit(value: Int): NorvigSweetingParams.this.type
Maximum duplicate of characters in a word to consider (Default:
2
).Maximum duplicate of characters in a word to consider (Default:
2
). Maximum duplicate of characters to account for. Defaults to 2. -
def
setFrequencyPriority(value: Boolean): NorvigSweetingParams.this.type
Applies frequency over hamming in intersections (Default:
true
).Applies frequency over hamming in intersections (Default:
true
). When false hamming takes priority -
def
setIntersections(value: Int): NorvigSweetingParams.this.type
Hamming intersections to attempt (Default:
10
). -
def
setReductLimit(value: Int): NorvigSweetingParams.this.type
Word reduction limit (Default:
3
). -
def
setShortCircuit(value: Boolean): NorvigSweetingParams.this.type
Increase performance at cost of accuracy (Default:
false
).Increase performance at cost of accuracy (Default:
false
). Faster but less accurate mode -
def
setVowelSwapLimit(value: Int): NorvigSweetingParams.this.type
Vowel swap attempts (Default:
6
). -
def
setWordSizeIgnore(value: Int): NorvigSweetingParams.this.type
Minimum size of word before ignoring (Default:
3
).Minimum size of word before ignoring (Default:
3
). Minimum size of word before moving on. -
val
shortCircuit: BooleanParam
Increase performance at cost of accuracy (Default:
false
).Increase performance at cost of accuracy (Default:
false
). Faster but less accurate mode -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Identifiable → AnyRef → Any
-
val
vowelSwapLimit: IntParam
Vowel swap attempts (Default:
6
). -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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()
-
val
wordSizeIgnore: IntParam
Minimum size of word before ignoring (Default:
3
).Minimum size of word before ignoring (Default:
3
). Minimum size of word before moving on.
Inherited from Params
Inherited from Serializable
Inherited from Serializable
Inherited from Identifiable
Inherited from AnyRef
Inherited from Any
Parameters
A list of (hyper-)parameter keys this annotator can take. Users can set and get the parameter values through setters and getters, respectively.