Giter Site home page Giter Site logo

olehonyshchak / pywikimm Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 7.97 MB

Collects a multimodal dataset of Wikipedia articles and their images

License: GNU General Public License v3.0

Jupyter Notebook 27.52% Python 71.10% Dockerfile 1.39%
wikipedia wikipedia-scraper wikipedia-api wikipedia-bot wikipedia-entries wikipedia-dump wikipedia-search wikipedia-viewer wikipedia-corpus wikipedia-page

pywikimm's People

Contributors

dependabot[bot] avatar olehonyshchak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pywikimm's Issues

Image 'features' property design question

So now we have it calculated as following:

output of 5-th convolutional layer of ResNet152 trained on ImageNet dataset. That output of shape (19, 24, 2048) is then max-pooled to a shape (2048,). Features are taken from original images downloaded in jpeg format with a fixed width of 600px. Practically, it is a list of floats with len = 2048

But should we max-pool that tensor instead of saving the original (19, 24, 2048)? And if we really want just 2048, wouldn't it be better just to use ResNet101, which outputs tensors of this shape? (TODO: double-check whether it's true)

Constructor Design for the library

Think about the design choices of how to make the library easily extendable. For example, make the query to accept as an argument list of function to process text and images. For example, text handlers can accept HTML of the page and its URL as an input, and then return some key-value pair to be added to the dataset.

With that approach, if a user wants to parse additional field he would only need to define the function which with appropriate parsing and pass it as a parameter to query function, where all the meaty and common processing is done. With that approach, the user can select what to download by modifying the list of pre-created handlers for wikitext or caption parsing. Also, we could have designed an approach to uniformly pass cache-related parameters to such functions.

Might be a very good idea but requires tons of work. Will probably be suspended until some reasonable interest to the script appears.

Feedback Thread. Thanks for sharing!

If you want to give just a short feedback, post a comment on this issue. That will help me to know what works good and what may be better or is missing. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.