com
.
intel
.
analytics
.
bigdl
.
dataset
.
text
LabeledSentence
class
LabeledSentence
[
T
]
extends
Sentence
[
T
]
Represent a sentence
T
Linear Supertypes
Sentence
[
T
],
Serializable
,
Serializable
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
LabeledSentence
Sentence
Serializable
Serializable
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
LabeledSentence
(
dataLength:
Int
,
labelLength:
Int
)
(
implicit
arg0:
ClassTag
[
T
]
,
ev:
TensorNumeric
[
T
]
)
new
LabeledSentence
()
(
implicit
arg0:
ClassTag
[
T
]
,
ev:
TensorNumeric
[
T
]
)
new
LabeledSentence
(
_data:
Array
[
T
]
,
_label:
Array
[
T
]
)
(
implicit
arg0:
ClassTag
[
T
]
,
ev:
TensorNumeric
[
T
]
)
_data
_label
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
var
_data
:
Array
[
T
]
Attributes
protected
var
_label
:
Array
[
T
]
Attributes
protected
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
LabeledSentence
[
T
]
Definition Classes
LabeledSentence
→ AnyRef
def
copy
(
other:
LabeledSentence
[
T
]
)
:
LabeledSentence
[
T
]
def
copy
(
rawData:
Array
[
T
]
,
rawLabel:
Array
[
T
]
)
:
LabeledSentence
.this.type
def
copyToData
(
storage:
Array
[
T
]
,
offset:
Int
)
:
Unit
def
copyToLabel
(
storage:
Array
[
T
]
,
offset:
Int
)
:
Unit
def
data
()
:
Array
[
T
]
Definition Classes
LabeledSentence
→
Sentence
def
dataLength
()
:
Int
Definition Classes
LabeledSentence
→
Sentence
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
getData
(
index:
Int
)
:
T
def
getLabel
(
index:
Int
)
:
T
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
label
()
:
Array
[
T
]
def
labelLength
()
:
Int
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
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
Sentence
[
T
]
Inherited from
Serializable
Inherited from
Serializable
Inherited from
AnyRef
Inherited from
Any
Ungrouped
Represent a sentence