I want to do it using http://en.wiktionary.org/w/api.php the api. something like that, I will give the input word and get the details from wiktionary. like this page
http://en.wiktionary.org/wiki/sleep
I want to parse the all info from this page.
I have used this http://en.wiktionary.org/w/api.php?action=opensearch&search=sleep&format=xml&limit=1
and
after parsing the xml files its returns "From slǣp, from Germanic." i want to parse the noun and verb section.
The definition on Wiktionary is the line starting with a #, you can
get a pre-extracted list of all definitions from
http://toolserver.org/~enwikt/definitions
Conrad
On 19 April 2010 18:05, Roan Kattouw <roan.kattouw@gmail.com> wrote:
> 2010/4/19 saeed ahmed <saeed.sas@gmail.com>:
>> hello friends,
>>
>> I want to parse the word definition from wikitionary. but I do not
>> understand which parameter will used for it. please help me about this.
>>
> The definition of a word isn't stored by the software. The best you
> can do is grab the wikitext of a page and try to extract the
> definition from that.
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Mediawiki-api mailing list
> Mediawiki-api@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api