Comments (6)
The "Recombine extracted page abstracts for Yahoo" quality seems very low (a lot of summary are actually infobox invocations) and is polluted with redirection. And I don't manage to find an other dump with article abstracts.
The relevant REST API call to get summary and image for an article is the /page/summary operation of the REST API: https://rest.wikimedia.org/fr.wikipedia.org/v1/?doc#/
from cosr-back.
Thanks for looking into it! Too bad for the abstracts dump.
We can't really use the REST API because we want all articles at once.
I guess we'll have to use the larger dumps. The solutions I can think of:
- Use the zim HTML dumps http://www.kiwix.org/wiki/Content_in_all_languages
- Use the wikipedia XML dumps and transform them into HTML with Parsoid. It seems that Parsoid relies on a Wikimedia webservice for template expansion though?
- Wait for the official Wikipedia HTML dumps to come through: https://phabricator.wikimedia.org/T93396
- Use the Elasticsearch dumps directly http://dumps.wikimedia.org/other/cirrussearch/20160307/
Any other ideas?
from cosr-back.
I've downloaded the SQL dumps and used them directly, it's quick to download and not so hard to parse, although you do need to get smart about the HTML which is in the "text". (I can contribute perl code that does it...) blekko got pretty good "abstracts" by just extracting the first couple of sentences.
from cosr-back.
There has been some recent activity on Wikimedia's side on the HTML dumps: https://phabricator.wikimedia.org/T133547
I hope they can go through so that we can index not only the abstracts but the whole articles as well.
In the meantime, either the SQL or the ZIM dumps seem like the best bets. @wumpus feel free to share your perl code, I'd be curious to see the hacks you did :)
from cosr-back.
Hack alert!
extract-raw-wikipedia-articles.pl.txt
from cosr-back.
Hack alert indeed!! It's almost as scary as I imagined ;-)
I just merged support for pluggable document sources so it should be very easy to write one that reads the .zim files and see how it behaves.
from cosr-back.
Related Issues (20)
- Structure of ES clusters HOT 9
- Questions on deployment HOT 1
- Spark-submit uses only 1 core. HOT 4
- Errors During Installation HOT 3
- Speed up Travis builds HOT 1
- Improve host-level PageRanks HOT 1
- Investigate MyHTML parser
- Add GDELT document source
- Add a Github document source HOT 2
- Add a Reddit data source
- Add Stack Overflow document source HOT 1
- Add new Malware/Phishing Blacklists HOT 1
- Advertising Lists HOT 2
- Add Makefile commands to save/load elasticsearch snapshots
- PageRank & other jobs: check if output directory already exists
- Integrate the new Common Crawl News dataset HOT 1
- Add docker-compose for the local tests
- Deduplicate URLs in backlinks plugin results
- Investigate annotating all the code with mypy
- Getting error running 'make virtualenv' HOT 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 cosr-back.