[LCWO LOGO]  

Sisäänkirjautuminen

Käyttäjätunnus:
Salasana:


Language
Bosanski Català
繁體中文 Česky
Deutsch English
Español Suomi
Français Ελληνικά
Hrvatski Magyar
Italiano 日本語
Bahasa Melayu Nederlands
Polski Português
Română Русский
Slovenščina Svenska
ภาษาไทย Türkçe
简体中文

Tällä hetkellä kirjatuneena


LCWO Keskustelufoorumi [Atom LCWO Forum Feed]

Tämä LCWO:n käyttäjien keskustelufoorumi on tarkoitettu kaikelle tähän web-palveluun liittyvälle keskustelulle.

Tredi: Levenstein correct?

Takaisin foorumiin

KirjoittajaText


Tallennettu: 2008-09-19 08:12
Fabian,
below is a code group run with a single error.
As you see it says 1 error / 3 levenstein errors
But according to wikipedia to which you link 1 operation (i.e. substitution) would be enough to change my result to the correct one.

Shouldn't it be one Levenstein error?

Regards,

Gerd.

WRNXO WRNXO WRNXO 0
CGCYV CGCYV CGCYV 0
WHHXM WHHXM WHHXM 0
FEXEZ FEXEZ FEXEZ 0
ZTXYB ZTXYB ZTXYB 0
ADDKU ADDKU ADDKU 0
MGLAE MGLAE MGLAE 0
ZCLCA ZCLCA ZCLCA 0
GZIOX GZIOX GZIOX 0
UTBRX UTBRX UTBRX 0
ARQYQ ARQYQ ARQYQ 0
SZTWJ SZTWJ SZTWJ 0
NIQZI NIQZI NIQZI 0
UZKGB UZKGB UZKGB 0
LNBTB LNBTB LNBTB 0
YNUZF YNUZF YNUZF 0
SAWJZ SAWJZ SAWJZ 0
MBYGX MBYGX MBYGX 0
HUFXT HUFT HUFXT 1
NSSYZ NSSYZ NSSYZ 0

Groups: 20 (100 characters), Errors: 1 = 1%

Levenshtein-Errors: 3 = 3 %
Administrator


Tallennettu: 2008-09-19 12:09
Yes, it should be a single error only. I am using the built-in Levenshtein-function of PHP, so I suppose that part is working correctly.

LCWO uses the unfiltered user input for this; I guess I should remove additional spaces and/or linebreaks if any, because these will also count as errors.

As you have probably seen in the results, only the better of the two accuracies actually counts. I mainly added the Levenshtein distance calculation as a last resort in case the normal evaluation fails, which is usually the case when a space between two groups was omitted.

73, Fabian


Tallennettu: 2008-11-20 17:42
Fabian,

there seems still a minor bug in the Levenstein algorithm: 0 errors lead to 1 Levenstein error, see below.

Just for your information - doesn't bother me.
Maybe interesting to the PHP developers?

Regards

Gerd

=================================

DEVAO DEVAO DEVAO 0
VDFQU VDFQU VDFQU 0
PJKOK PJKOK PJKOK 0
ELNTC ELNTC ELNTC 0
FDAXO FDAXO FDAXO 0
EXCTX EXCTX EXCTX 0
ZXCUX ZXCUX ZXCUX 0
QQBWG QQBWG QQBWG 0
WLPGA WLPGA WLPGA 0
ALLNF ALLNF ALLNF 0
OTJOQ OTJOQ OTJOQ 0
XTOZN XTOZN XTOZN 0
MZKOT MZKOT MZKOT 0
IEKJB IEKJB IEKJB 0
RFMHM RFMHM RFMHM 0
MHYYV MHYYV MHYYV 0
DMPMB DMPMB DMPMB 0
FKVUK FKVUK FKVUK 0
IGJTV IGJTV IGJTV 0
DBAOL DBAOL DBAOL 0

Groups: 20 (100 characters), Errors: 0 = 0%

Levenshtein-Errors: 1 = 1 %

Takaisin foorumiin

Sinun täytyy kirjautua sisään voidaksesi käyttää foorumia.

$Id: forum.php 147 2012-01-12 18:04:05Z dj1yfk $