[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49375] pkg name similarity measurement is off
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49375] pkg name similarity measurement is off / too simplistic |
Date: |
Mon, 17 Oct 2016 19:56:09 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
URL:
<http://savannah.gnu.org/bugs/?49375>
Summary: pkg name similarity measurement is off / too
simplistic
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Mon 17 Oct 2016 12:56:07 PM PDT
Category: Octave Function
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
When a user tries to install a Forge package, but gets the name wrong, a
single name suggestion is shown:
>> pkg install -forge springs
error: get_forge_pkg: package not found: "springs". Maybe you meant
"strings?"
This works very well when the string length matches exactly. But when a single
character is added or omitted, the metric it is using for similarity falls
apart as it seems to be assigning a higher cost to having a different string
length than to having every single character being wrong:
>> pkg install -forge imagel
error: get_forge_pkg: package not found: "imagel". Maybe you meant "signal?"
>> pkg install -forge signa
error: get_forge_pkg: package not found: "signa". Maybe you meant "video?"
>> pkg install -forge signals
error: get_forge_pkg: package not found: "signals". Maybe you meant
"sockets?"
>> pkg install -forge communication
error: get_forge_pkg: package not found: "communication". Maybe you meant
"generate_html?"
Also not sure why this case returns "zeromq" instead of "signal":
>> pkg install -forge sizzzz
error: get_forge_pkg: package not found: "sizzzz". Maybe you meant "zeromq?"
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49375>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49375] pkg name similarity measurement is off / too simplistic,
Mike Miller <=