|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsamples.UseSentenceSim
public class UseSentenceSim
This example shows how to use the sentRep and sentSim functions from another java program. The length of phrases used is 1 and the mean distances of 4.0 is used, targeting the Head level as the best representation of a sentence. Two sentences with similar meaning are compared using Roget's sentence distance and a simple method. Notice the difference in scores
Constructor Summary | |
---|---|
UseSentenceSim()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UseSentenceSim()
Method Detail |
---|
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |