Giter Club home page Giter Club logo

text_algorithms_econ's Introduction

Text Algorithms in Economics

Companion notebooks to ``Text Algorithms in Economics'' by Elliott Ash and Stephen Hansen. If you reuse in teaching or research, please cite the published article in the Annual Review of Economics (2023).

Notebooks content outline

All notebooks contain a button that allows the user to execute the notebook in Google Colab: Open In Colab

Notebook 1: Simple dictionary examples with regular expressions

  • Summary: This notebook illustrates how a simple count of negative and positive terms can generate a sentiment index that correlates with GDP growth.
  • Data: Minutes from the Monetary Policy Committee at the Bank of England.

Notebook 2: Preprocessing and document-term matrix creation

  • Summary: This notebook illustrates how to apply multiple preprocessing steps to clean text data and build a document-term matrix.
  • Data: Minutes from the Monetary Policy Committee at the Bank of England.

Notebook 3: Dimensionality reduction with LDA

  • Summary: This notebook illustrates how to reduce the dimension of the document-term matrix with one particular method; Latent Dirichlet Allocation (LDA).
  • Data: USA State of the Union Addresses and Minutes from the Monetary Policy Committee at the Bank of England.

Notebook 4: Word2Vec

  • Summary: This notebook illustrates how to estimate word embeddings using the word2vec algorithm.
  • Data: Bank of England Inflation Reports and Minutes from the Monetary Policy Committee at the Bank of England.

Notebook 5: Large language models for feature generation

  • Summary: This notebook illustrates multiple strategies to generate embedded representations of text sequences using BERT. It then compares the quality of these representations by using them for a regression task.
  • Data: 10-K reports for selected firms.

Notebook 6: Finetuning a large language model

  • Summary: This notebook illustrates how to finetune a large language model for a particular classification task.
  • Data: 10-K reports for selected firms.

Notebook 7: GPT demonstration

  • Summary: This notebook shows how to interact with GPT using OpenAI's API.

text_algorithms_econ's People

Contributors

yabramuvdi avatar llaurabat91 avatar claudiamarangon 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.