Giter Site home page Giter Site logo

adellegia / watermelon Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 43.76 MB

Document classification of Digital Markets Act public consultations using transfer learning with BERT

Jupyter Notebook 100.00%
deep-learning machine-learning python-tutorial-notebook transfer-learning

watermelon's People

Contributors

adellegia avatar janinepdevera avatar lwarode avatar zazzooo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

watermelon's Issues

Combine models into one tutorial notebook (with explanations)

Main

  • Memo (300 words)
  • Data description and preprocessing
  • Baseline models (logit, XGBoost)
  • CNN/RNN
  • BERT and other variants
  • Results and discussion
  • Limitations
  • Next steps
  • References

Others

  • Clean libraries & system requirements - ensure no duplicates
  • Standardize train & test split
  • Re-run notebook in new environment to test

Presentation slides due 6 Dec

Outline

  1. Main problem – JANINE
    •motivation: classifying texts with relevance on EU policymaking (e.g., Digital Markets Act)
    •classifying "unstructured"/"varying structured" pdfs with NLP

  2. Method: Using machine learning/deep learning methods for unstructured text classification
    (vs simple rule-based systems) – LORENZO & JANINE
      A. Unstructured text: parsing, data cleaning, language detection, tokenizing
      B. Embeddings, gradient boosting (briefly as the “simpler” method)
      C. Transfer learning with BERT
      BERT: freezing initial layers, fine-tuning last layers

  3. Initial/Expected Results – LUKAS & ADELLE
    •model metrics
    •comparing performance (BERT vs. others)
    •Visualization

  4. Recommendations – LUKAS
    •how to integrate results with policy process
    •feedback from different stakeholders
    •recommend technical and policy stuff

Parsing unstructured pdfs to tidy text data

Website: https://ec.europa.eu/info/law/better-regulation/have-your-say/initiatives/12416-Single-Market-new-complementary-tool-to-strengthen-competition-enforcement/public-consultation_en

  • Parse unstructured pdf to txt files/dataframe
  • Match parsed texts to labels from Excel data
  • Combine answers from survey open-ended questions for responses w/o pdf submission
  • Tag language to exclude non-English pdfs and answers
  • Extract paragraphs as entries
  • Clean how to split documents to paragraphs with n number of words
  • Keep relevant information (body) based on number of words per line

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.