public class StringKernel extends LinkedHashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
StringKernel() |
StringKernel(boolean norm,
double lam,
int length) |
StringKernel(boolean norm,
double lam,
int length,
boolean cache) |
| Modifier and Type | Method and Description |
|---|---|
double |
K(String s,
String t)
Computes the normalized string kernel between two strings.
|
static void |
main(String[] args)
Return string kernel between two strings
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic StringKernel(boolean norm,
double lam,
int length,
boolean cache)
norm - true if we lowercase all stringslam - 0-1 penalty for gaps between matches.length - max length of subsequences to comparecache - true if we should cache previous kernel computations. recommended!public StringKernel()
public StringKernel(boolean norm,
double lam,
int length)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.