Package org.jpmml.translator
Class TermFrequencyEncoder
- java.lang.Object
-
- org.jpmml.translator.FpPrimitiveEncoder
-
- org.jpmml.translator.TermFrequencyEncoder
-
- All Implemented Interfaces:
ArrayEncoder,Encoder
public class TermFrequencyEncoder extends FpPrimitiveEncoder implements ArrayEncoder
-
-
Field Summary
-
Fields inherited from class org.jpmml.translator.FpPrimitiveEncoder
INIT_VALUE_DOUBLE, INIT_VALUE_FLOAT, NAN_VALUE_DOUBLE, NAN_VALUE_FLOAT
-
-
Constructor Summary
Constructors Constructor Description TermFrequencyEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.codemodel.JMethodcreateEncoderMethod(FieldInfo fieldInfo, com.sun.codemodel.JPrimitiveType returnType, String name, List<com.sun.codemodel.JPrimitiveType> castSequenceTypes, org.dmg.pmml.DataType dataType, TranslationContext context)intgetIndex()intgetLength()StringgetMemberName(FieldInfo fieldInfo)FunctionInvocation.TfgetTf(FieldInfo fieldInfo)StringgetVariableName(FieldInfo fieldInfo)List<org.jpmml.evaluator.TokenizedString>getVocabulary()TermFrequencyEncodersetIndex(int index)TermFrequencyEncodersetVocabulary(List<org.jpmml.evaluator.TokenizedString> vocabulary)-
Methods inherited from class org.jpmml.translator.FpPrimitiveEncoder
create, createEncoderMethod, createInitExpression, encode, follow, fpJavaValue, fpNanValue, isCastable, ref
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpmml.translator.Encoder
createEncoderMethod, createInitExpression, encode, follow, ref
-
-
-
-
Method Detail
-
getVariableName
public String getVariableName(FieldInfo fieldInfo)
- Specified by:
getVariableNamein interfaceEncoder- Overrides:
getVariableNamein classFpPrimitiveEncoder
-
getMemberName
public String getMemberName(FieldInfo fieldInfo)
- Specified by:
getMemberNamein interfaceEncoder
-
createEncoderMethod
public com.sun.codemodel.JMethod createEncoderMethod(FieldInfo fieldInfo, com.sun.codemodel.JPrimitiveType returnType, String name, List<com.sun.codemodel.JPrimitiveType> castSequenceTypes, org.dmg.pmml.DataType dataType, TranslationContext context)
- Overrides:
createEncoderMethodin classFpPrimitiveEncoder
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceArrayEncoder
-
setIndex
public TermFrequencyEncoder setIndex(int index)
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceArrayEncoder
-
getVocabulary
public List<org.jpmml.evaluator.TokenizedString> getVocabulary()
-
setVocabulary
public TermFrequencyEncoder setVocabulary(List<org.jpmml.evaluator.TokenizedString> vocabulary)
-
getTf
public FunctionInvocation.Tf getTf(FieldInfo fieldInfo)
-
-