EXCERPT API : a fix?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

EXCERPT API : a fix?

Luigi Assom
Hello everybody,

I noticed a possible glitch at wikipedia api prop=excerpts

In some cases, 
parameter exsentences does not return the number of sentences, but the coordinates of an article.

Instead parameter exchars return a number of chars, and also the coordinates.

E.g.
please have a look here:



I would like to have just the intro with the sentences.

Another example, though I think this is not an error, is with names, e.g. 
H. P. Lovecraft: Against the World, Against Life
Here I obtained a truncated sentence, cause the dots in the name force the sentence to be truncated.

Is it a fix to do?
coordinates should appear only with their module, right?



--
Luigi Assom

Skype contact: oggigigi

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: EXCERPT API : a fix?

Max Semenik
Thanks for reporting, Luigi!

On 27.11.2013, 19:54 Luigi wrote:

> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=1266661&prop=extracts&exintro&explaintext&exsentences=10

> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=1266661&prop=extracts&exchars=300&exintro&explaintext

Filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=57668

> I would like to have just the intro with the sentences.

> Another example, though I think this is not an error, is with names, e.g.
> H. P. Lovecraft: Against the World, Against Life
> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=17545993&prop=extracts&exsentences=2&exintro&explaintext
> Here I obtained a truncated sentence, cause the dots in the name
> force the sentence to be truncated.

Filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=57669

> Is it a fix to do?
> coordinates should appear only with their module, right?

Not exactly, what you're seeing are coordinates from page HTML which
we fail to filter out.

--
Best regards,
  Max Semenik ([[User:MaxSem]])


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: EXCERPT API : a fix?

Luigi Assom
glad to have contributed!!
Hope they will fixed soon, I've just casted my vote :D


On Wed, Nov 27, 2013 at 5:46 PM, Max Semenik <[hidden email]> wrote:
Thanks for reporting, Luigi!

On 27.11.2013, 19:54 Luigi wrote:

> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=1266661&prop=extracts&exintro&explaintext&exsentences=10

> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=1266661&prop=extracts&exchars=300&exintro&explaintext

Filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=57668

> I would like to have just the intro with the sentences.

> Another example, though I think this is not an error, is with names, e.g.
> H. P. Lovecraft: Against the World, Against Life
> http://en.wikipedia.org/w/api.php?format=jsonfm&action=query&pageids=17545993&prop=extracts&exsentences=2&exintro&explaintext
> Here I obtained a truncated sentence, cause the dots in the name
> force the sentence to be truncated.

Filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=57669

> Is it a fix to do?
> coordinates should appear only with their module, right?

Not exactly, what you're seeing are coordinates from page HTML which
we fail to filter out.

--
Best regards,
  Max Semenik ([[User:MaxSem]])


_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api



--
Luigi Assom

Skype contact: oggigigi

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: EXCERPT API : a fix?

Luigi Assom
In reply to this post by Luigi Assom
Hello,

is there any minimum number of votes for fixing a bug?
I am wondering which is - if there is - an average time for having a normal bug fixed, and see if I may help.

How would if possible to help without installing mediawiki software?
(I am a bit skilled in python, not other languages)

tks!

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: EXCERPT API : a fix?

Bartosz Dziewoński
On Fri, 29 Nov 2013 20:38:49 +0100, Luigi Assom <[hidden email]> wrote:

> is there any minimum number of votes for fixing a bug?

I think nobody looks at votes ever.


> I am wondering which is - if there is - an average time for having a normal bug fixed, and see if I may help.

The time is inversely proportional to the number of people who care and are willing to code or review a fix :)


> How would if possible to help without installing mediawiki software?
> (I am a bit skilled in python, not other languages)

We have a generic guide: https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker – feel free to ask on IRC (#wikimedia-dev on Freenode) if something's unclear.

--
Matma Rex

_______________________________________________
Mediawiki-api mailing list
[hidden email]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api