|
From: Sean <so...@or...> - 2011-01-01 02:07:19
|
Hello Ted
I have installed v-0.08 and do not seem to get the results as documented.
In order to get the Lesk-score I have tried setting the options 2
different ways, both without luck.
1. ('normalise' => 0, 'verbose' => 1); # I expected this to work, not
wanting the Lesk normalised ...
2. ('normalise' => 1, 'verbose' => 1); # also tried this just in case ...
The COMPLETE screen-printed output from BOTH (using your doc example) is:
"keys: 3 -->'bit' len(1) cnt(1) -->'jim' len(1) cnt(1)
-->'the dog' len(2) cnt(1)"
This is using the getSimilarityStrings ($str1, $str2) function directly
from another script ..(getting a score of 4 returned there as expected).
While at it I may as well mention what tops my wish-list for v-0.09. I
would like to see additional simple wrapper functions like getLesk(),
getCosine() which would return just the single measure specified, and
getAll() which would return a hashref of 'named'-parameters to include
all provided measures, and which the other functions would be simple
wrappers around to pull out one or other from that comprehensive
getAll()-hashref?
This would avoid having to capture & parse output from stdout/stderr or
some other arbitrary output channel, although it would probably do no
harm to also "print" those measures. Since adding string (rather than
file) acceptance obviously came as an afterthought itself, this might be
the next logical extension to functionality. Looking at previous mailers
I thought I detected similar requests, though expressed somewhat
differently.
Keep up the good work in 2011.
Sean
|