Re: forgery patch tests(fwd)
Brought to you by:
ftobin
|
From: Frank T. <ft...@ui...> - 2000-10-08 23:49:09
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Billy Donahue, at 19:20 -0400 on Sun, 8 Oct 2000, wrote:
> There needs to be a way of specifying which positions are ok for matches.
> If the algorithm knew that position 34 is no far, then it would be able
> to keep looking for matches.. Maybe there should be a way to specify the
> minimum match length.. The match is actually only 5 characters long in
> the case of the weird match you found. It would be nice be able to tell
> String::Approx to throw that match out and to keep searching.
If I'm not mistaken, the $threshold is the minimum match lengh. From
"perldoc String::Approx":
The implicit default approximateness is 10%, rounded up.
In other words: every tenth character in the pattern may
be an error, an edit. You can explicitly set the maximum
approximateness by supplying a modifier like
number
%numer
- --
Frank Tobin http://www.uiuc.edu/~ftobin/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.3 (FreeBSD)
Comment: pgpenvelope 2.9.0 - http://pgpenvelope.sourceforge.net/
iEYEARECAAYFAjnhB/QACgkQVv/RCiYMT6NMigCeM3rHIbey26G9RjO7NK/6hJC7
ruwAn2EsYGWcNm9GWjMQRV+Y/yjCXXNJ
=Ww35
-----END PGP SIGNATURE-----
|