सभी चर्चाओं पर वापस जाएं

Your program is often wrong

Rapid account: Cherylhunt 411

I’ve only started testing and about half of my tests gave incorrect answers.

The “stem” function seems to only recognize the suffix “-e”, ignoring common prefixes. For example the stem of “biplane” is given as “biplan” ,“prefix” is given as “prefix” and “pliable” is given as “pliabl”. This ignores all prefixes and the suffix “-able”.

Transform to Past Participle gives “be” as “bed” and “is” as “ised”.

Transform to Simple Past also gives “be” as “bed” and “is” as “ised”.

Transform to Simple Present gives “was” as “was” and “were” as “were”

Transform to the Third Person Singular gives “were” as “weres”

Get Synonyms for “bird” gives “vertebrate”, “Bronx cheer”, and “vociferation”, among other things.

Rapid account: Webknox
webknox Commented 9年前

Hi,

thanks for your message. You found a couple of bugs here indeed. Especially there was a bug with the word “be”. That is fixed now. Other problems you had:

pliable, biplane, prefix: the API stems those correctly (other than biplane which should stay biplane - that’s also fixed now). What you are looking for is lemmatization, simple stemming does not cut -able, etc. try “jumping” or “loudly” etc. and you’ll see that the stemmer is more intelligent than just to crop the -e

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें