public class CooccurrenceTensor
extends java.lang.Object
Constructor and Description |
---|
CooccurrenceTensor() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String word1,
java.lang.String link,
java.lang.String word2,
java.lang.Long score) |
void |
formatForDissect(int[] dimNums)
Writes the tensor to disk in a format immediately readable by DISSECT
DISSECT needs three files:
(1) a file called rows of the format [word1]\n[word2]...
|
public void add(java.lang.String word1, java.lang.String link, java.lang.String word2, java.lang.Long score)
public void formatForDissect(int[] dimNums)
dimNums
- This argument, which will be passed on to matricize, determines which dimensions will be used for
the rows of the tensor.