nlp
1.2.0
nlp
/
com.londogard.nlp.meachinelearning.transformers
/
TfIdfTransformer
Tf
Idf
Transformer
public
final
class
TfIdfTransformer
implements
Transformer
<
Float
,
Float
>
Content copied to clipboard
Constructors
Functions
Properties
Constructors
Tf
Idf
Transformer
Link copied to clipboard
public
TfIdfTransformer
TfIdfTransformer
(
)
Content copied to clipboard
Functions
fit
Link copied to clipboard
public
Unit
fit
(
MultiArray
<
Float
,
D2
>
input
)
Content copied to clipboard
fit
Transform
Link copied to clipboard
public
MultiArray
<
Float
,
D2
>
fitTransform
(
MultiArray
<
Float
,
D2
>
input
)
Content copied to clipboard
get
Idf
Link copied to clipboard
public
final
NDArray
<
Float
,
D1
>
getIdf
(
)
Content copied to clipboard
set
Idf
Link copied to clipboard
public
final
Unit
setIdf
(
NDArray
<
Float
,
D1
>
idf
)
Content copied to clipboard
transform
Link copied to clipboard
public
D2SparseArray
transform
(
MultiArray
<
Float
,
D2
>
input
)
Content copied to clipboard
Input is a count matrix
Properties
idf
Link copied to clipboard
private
NDArray
<
Float
,
D1
>
idf
Content copied to clipboard