GithubHelp home page GithubHelp logo

pavan-pk / dataset4_creationtask_nlp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 24.35 MB

Repo to main code used to create dataset for image captioning and contexting.

Python 0.07% Jupyter Notebook 99.93%

dataset4_creationtask_nlp's Introduction

Image captioning dataset creation

CSE 576 Natural Language processing (Project I)

Use common crawl archive to download warc files: https://commoncrawl.org/2021/08/july-august-2021-crawl-archive-available/

Segments choosen here: 627046152156.49 1627046153531.10 1627046153860.57 1627046154032.75 (The csv in this repo has crawled 5, 5, 2, 2 warc files fromt this segments respectively.)

CSV Header format: UUID, Image-URL, Image-Local-Path, Image-Alt-Text-Caption, A Context Paragraph within the HTML which Refers the Image, Segment, WARCFile, Source WebPage URL.

Crawler condition:

Further Filtering:

  • Filtering out non unicode characters from alt_text and context of the dataset.
  • Language check to make sure the alt_text and context belongs any unicode language. (Used langdetect python module)
  • Contexual comparisation of alt_text and context sections for each data entry using consine similary of embeddings from SentenceTransformer(bert-base-nli-mean-tokens embeddings). Only keeping top 5 sentences in context text.

Filteration can be further expanded using feature extration on the image

dataset4_creationtask_nlp's People

Contributors

pavan-pk avatar

Watchers

 avatar

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.