public class TfIdfSourceRepresentationBuilder extends java.lang.Object implements SourceRepresentationBuilder<TfIdfSourceRepresentation>
| Constructor and Description |
|---|
TfIdfSourceRepresentationBuilder() |
public TfIdfSourceRepresentation buildForNode(CstNode node, boolean isBefore, java.util.List<java.lang.String> tokenizedSourceCode)
buildForNode in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public TfIdfSourceRepresentation buildForName(CstNode node, boolean isBefore)
buildForName in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public TfIdfSourceRepresentation buildForFragment(java.util.List<java.lang.String> tokenizedSourceCode)
buildForFragment in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public TfIdfSourceRepresentation combine(TfIdfSourceRepresentation arg1, TfIdfSourceRepresentation arg2)
combine in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public TfIdfSourceRepresentation minus(TfIdfSourceRepresentation arg1, TfIdfSourceRepresentation arg2)
minus in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public double similarity(TfIdfSourceRepresentation arg1, TfIdfSourceRepresentation arg2)
similarity in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public double rawSimilarity(TfIdfSourceRepresentation arg1, TfIdfSourceRepresentation arg2)
rawSimilarity in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public double partialSimilarity(TfIdfSourceRepresentation arg1, TfIdfSourceRepresentation arg2)
partialSimilarity in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public TfIdfSourceRepresentation minus(TfIdfSourceRepresentation arg1, java.util.List<java.lang.String> tokensToRemove)
minus in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>public java.lang.String toString()
toString in class java.lang.Objectpublic int size(TfIdfSourceRepresentation arg)
size in interface SourceRepresentationBuilder<TfIdfSourceRepresentation>