public class DistributionalModel
extends java.lang.Object
| Constructor and Description |
|---|
DistributionalModel()
The constructor of the DistributionalModel
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToTensor(DependencyPath d,
long freq)
Accepts a dependency path and an integer representing co-occurrence frequency and updates the tensor object.
|
java.util.HashSet<DependencyPath> |
extract(PartOfSpeechNode[] graph)
Given an array of nodes that comprise a graph, use syntactic nGram of arcs, update the tensor to reflect
meaningful associations between pairs of content words.
|
static void |
main(java.lang.String[] args)
The main loop which opens the NGram file, processes it, and prints the execution time.
|
public DistributionalModel()
public void addToTensor(DependencyPath d, long freq)
d - a DependencyPathfreq - an integer, representing the number of times the dependency path was observed in the corpuspublic java.util.HashSet<DependencyPath> extract(PartOfSpeechNode[] graph)
graph - An array of PartOfSpeechNodes that represents a graphical representation of the dependency parsepublic static void main(java.lang.String[] args)
args - The name of the NGram file