dynotes / wikparser Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ybourque/wikparser
Wiktionary Parser
License: GNU General Public License v2.0
This project forked from ybourque/wikparser
Wiktionary Parser
License: GNU General Public License v2.0
Wikparser ========= Wiktionary Parser http://www.igrec.ca/projects/wiktionary-text-parser/ DESCRIPTION =========== The Wiktionary Parser (or Wikparser) is a small tool written in PHP that allows users to extract specific information from the Wiktionary API or a local copy of Wiktionary's database in MySQL. Currently, this software is able to extract the following information: - Part of speech/Lexical categories - Synonyms - Hypernyms - Definitions Moreover, the software currently supports queries to either the English or French Wiktionary. Additional language support may be added by following the guide at http://www.igrec.ca/projects/wiktionary-text-parser/ REQUIREMENTS ============ You will need: - Apache or some other web server platform - PHP 5 - cURL INSTALLATION ============ Simply download and copy files and folders to a location accessible from your Web server. USAGE ===== To use Wikparser, you need to call or point your browser to the wikparser.php file with the following parameters and values (* indicates a mandatory parameter): - *word: any string (e.g. /wikparser.php?word=dog) - *query: the type of query; "def" for definitions, "syn" for synonyms, "pos" for parts of speech, and "hyper" for hypernyms (e.g. /wikparser.php?query=pos) - lang: Wiktionary language code. Script currently supports english ("en") and french ("fr") natively [default: en]. - count: number of items to return [default: 100] - source: location of Wiktionary data; "local" for a local MySql copy of Wiktionary; "api" for Wiktionary’s API [default: api] EXAMPLES ======== The examples below use the Wikparser hosted at www.igrec.ca. - Get first 2 definitions of the word "table" in English directly from Wiktionary: http://www.igrec.ca/project-files/wikparser/wikparser.php?word=table&query=def&count=2 - Get all parts of speech for the word "puissance" in French directly from Wiktionary: http://www.igrec.ca/project-files/wikparser/wikparser.php?word=puissance&query=pos&lang=fr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.