public class LSHUtils extends Object
Constructor and Description |
---|
LSHUtils() |
Modifier and Type | Method and Description |
---|---|
static HashSet<String> |
BigramCounter(List<String[]> strings) |
static List<char[]> |
bigrams(String input) |
static List<String> |
bigramsAsstrings(String input)
CURRENTLY A CASE SENSITIVE BIGRAM FIND Todo : Ignore Case when getting
bigrams ?????
|
static HashMap<String,Integer> |
BigramToIntMap(List<String[]> strings) |
static double |
dice(List<char[]> bigram1,
List<char[]> bigram2) |
static double |
dice(String s1,
String s2) |
static void |
main(String[] args) |
static void |
print_bigrams(HashSet<String> bigrams) |
static StringBuilder |
writeBigramBinaryVectors(List<String[]> head_docids) |
static void |
writeBigramBinaryVectors(List<String[]> head_docids,
String filepath) |
public static List<String> bigramsAsstrings(String input)
public static StringBuilder writeBigramBinaryVectors(List<String[]> head_docids)
public static void writeBigramBinaryVectors(List<String[]> head_docids, String filepath) throws Exception
Exception
public static void main(String[] args)
Copyright © 2017. All rights reserved.