com
.
johnsnowlabs
.
nlp
FeaturesWriter
Related Doc:
package nlp
class
FeaturesWriter
[
T
]
extends
MLWriter
with
HasFeatures
Linear Supertypes
HasFeatures
,
MLWriter
,
Logging
,
BaseReadWrite
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
FeaturesWriter
HasFeatures
MLWriter
Logging
BaseReadWrite
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
FeaturesWriter
(
annotatorWithFeatures:
HasFeatures
,
baseWriter:
MLWriter
,
onWritten: (
String
,
SparkSession
) ⇒
Unit
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
def
$$
[
T
]
(
feature:
StructFeature
[
T
]
)
:
T
Attributes
protected
Definition Classes
HasFeatures
def
$$
[
K
,
V
]
(
feature:
MapFeature
[
K
,
V
]
)
:
Map
[
K
,
V
]
Attributes
protected
Definition Classes
HasFeatures
def
$$
[
T
]
(
feature:
SetFeature
[
T
]
)
:
Set
[
T
]
Attributes
protected
Definition Classes
HasFeatures
def
$$
[
T
]
(
feature:
ArrayFeature
[
T
]
)
:
Array
[
T
]
Attributes
protected
Definition Classes
HasFeatures
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
context
(
sqlContext:
SQLContext
)
:
FeaturesWriter
.this.type
Definition Classes
MLWriter → BaseReadWrite
Annotations
@Since
(
"1.6.0"
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
val
features
:
ArrayBuffer
[
Feature
[_, _, _]]
Definition Classes
HasFeatures
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
get
[
T
]
(
feature:
StructFeature
[
T
]
)
:
Option
[
T
]
Attributes
protected
Definition Classes
HasFeatures
def
get
[
K
,
V
]
(
feature:
MapFeature
[
K
,
V
]
)
:
Option
[
Map
[
K
,
V
]]
Attributes
protected
Definition Classes
HasFeatures
def
get
[
T
]
(
feature:
SetFeature
[
T
]
)
:
Option
[
Set
[
T
]]
Attributes
protected
Definition Classes
HasFeatures
def
get
[
T
]
(
feature:
ArrayFeature
[
T
]
)
:
Option
[
Array
[
T
]]
Attributes
protected
Definition Classes
HasFeatures
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
def
initializeLogIfNecessary
(
isInterpreter:
Boolean
,
silent:
Boolean
)
:
Boolean
Attributes
protected
Definition Classes
Logging
def
initializeLogIfNecessary
(
isInterpreter:
Boolean
)
:
Unit
Attributes
protected
Definition Classes
Logging
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isTraceEnabled
()
:
Boolean
Attributes
protected
Definition Classes
Logging
def
log
:
Logger
Attributes
protected
Definition Classes
Logging
def
logDebug
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logDebug
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logError
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logError
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logInfo
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logInfo
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logName
:
String
Attributes
protected
Definition Classes
Logging
def
logTrace
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logTrace
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logWarning
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logWarning
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
option
(
key:
String
,
value:
String
)
:
FeaturesWriter
.this.type
Definition Classes
MLWriter
Annotations
@Since
(
"2.3.0"
)
val
optionMap
:
Map
[
String
,
String
]
Attributes
protected
Definition Classes
MLWriter
def
overwrite
()
:
FeaturesWriter
.this.type
Definition Classes
MLWriter
Annotations
@Since
(
"1.6.0"
)
def
save
(
path:
String
)
:
Unit
Definition Classes
MLWriter
Annotations
@Since
(
"1.6.0"
)
@throws
(
...
)
def
saveImpl
(
path:
String
)
:
Unit
Attributes
protected
Definition Classes
FeaturesWriter
→ MLWriter
final
def
sc
:
SparkContext
Attributes
protected
Definition Classes
BaseReadWrite
def
session
(
sparkSession:
SparkSession
)
:
FeaturesWriter
.this.type
Definition Classes
MLWriter → BaseReadWrite
Annotations
@Since
(
"1.6.0"
)
def
set
[
T
]
(
feature:
StructFeature
[
T
]
,
value:
T
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
set
[
K
,
V
]
(
feature:
MapFeature
[
K
,
V
]
,
value:
Map
[
K
,
V
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
set
[
T
]
(
feature:
SetFeature
[
T
]
,
value:
Set
[
T
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
set
[
T
]
(
feature:
ArrayFeature
[
T
]
,
value:
Array
[
T
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
setDefault
[
T
]
(
feature:
StructFeature
[
T
]
,
value: () ⇒
T
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
setDefault
[
K
,
V
]
(
feature:
MapFeature
[
K
,
V
]
,
value: () ⇒
Map
[
K
,
V
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
setDefault
[
T
]
(
feature:
SetFeature
[
T
]
,
value: () ⇒
Set
[
T
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
def
setDefault
[
T
]
(
feature:
ArrayFeature
[
T
]
,
value: () ⇒
Array
[
T
]
)
:
FeaturesWriter
.this.type
Attributes
protected
Definition Classes
HasFeatures
var
shouldOverwrite
:
Boolean
Attributes
protected
Definition Classes
MLWriter
final
def
sparkSession
:
SparkSession
Attributes
protected
Definition Classes
BaseReadWrite
final
def
sqlContext
:
SQLContext
Attributes
protected
Definition Classes
BaseReadWrite
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
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
(
...
)
Inherited from
HasFeatures
Inherited from
MLWriter
Inherited from
Logging
Inherited from
BaseReadWrite
Inherited from
AnyRef
Inherited from
Any
Ungrouped