Comments (7)
@hugolpz Thank you for the feedback, i'll put some output examples and update the README accordingly
from wikicompiler.
Side note: I cited your project in google/corpuscrawler#78 , a linguistic diversity project who kick started Google Android keyboard input suggestions (if i understood well), and whom's data (UNILEX) now helps wiktionaries for words to document. The corpuscrawler projects is lowly active thanks to few volunteers, but initially generated data for ~1000 languages. They both could gain from clean corpus extrated from Wikipedia's 300+ languages.
from wikicompiler.
@hugolpz Added some examples https://github.com/iwasingh/Wikicompiler#examples.
Thank your for the citation
I would like to let you know that this project was born inside a search engine project https://github.com/iwasingh/Wikoogle i made a while ago. I needed a clean corpus to do some information retrieval tasks similar to corpuscrawler and at the time i was able to find only two ways to get a clean text:
- Use wikipedia api: https://www.mediawiki.org/wiki/API:Get_the_contents_of_a_page or similar which was not suitable for me(not batch processing, parsing wikitext is easier than the html of a wikipedia page)
- https://github.com/attardi/wikiextractor which might do the job but is not that extensible and is doing too much for what i needed(i didn't need template resolution or other complex tag resolutions) and that's why i decided to make a new one
from wikicompiler.
I'm gonna close the issue, feel free to open another one for other questions or discussions
from wikicompiler.
API calls and Wikiextrator are the two ways i found so far. WCC is a new avenue. Similarly, i am not convinced that templates would had value to a linguistic project. Most templates are infoboxes (data) or community warnings. Minority are inline templates, by example to help convert US miles into SI km. But then again, it isnt of high value for high frequency lexical linguistic.
Also, do you have a built in way to ignore the == See also ==
and == References ==
sections ? Or is there a recommended way to remove such content ? Ortherwise i think some brutal regex will do.
Thank you for the project history & review. 🙏🏼
from wikicompiler.
Well, there are several way to ignore those headers,
the simplest one that came up in my mind is to add these 2 headers inside the IGNORED_TAGS
of symbols in the lexer module https://github.com/iwasingh/Wikicompiler/blob/master/lexer/symbols.py#L219
r'== See also =='
r'== References =='
from wikicompiler.
Yes, thank for the readme fix 👍🏼
from wikicompiler.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikicompiler.