The Vector Space Analysis was taken from Classifier4j and modified in following ways:
1. The algorithm was created to imitate the stretching of an elastic-band (I have done actual physical measurements).
2. Stretched Strings are then optimized to give the exact Vector-Space-Analysis results.
This way, there is no over-training of the imput, and different sizes of the Strings can be used to get improved results.
USAGE:
public static void main(String[] args) {
try{
HashMapTermVectorStorage storage = new HashMapTermVectorStorage();
VectorClassifier vc = new VectorClassifier(storage);
vc.teachMatch("category", "This is an training text");
System.out.println(vc.classify("category","This is a comparison text"));
}catch(Exception e){}
}
Downloads:
0 This Week