Loading Events

« All Events

  • This event has passed.

Text Analysis Fundamentals [D-Lab]

September 18 @ 8:00 am - 5:00 pm

See organizers’ website for details.

Part 1: This hands on workshop goes through the common “preprocessing recipe” that is used as the foundation for a variety of other applications as well as some basic natural language processing techniques.  These include: a) removal of stopwords, numbers, punctuation, b) tokenization, c) calculation of word frequencies / proportions, and d) part of speech tagging.

Part 2: This hands on workshop builds on part 1 by introducing the basics of Python’s scikit-learn package to implement unsupervised text analysis methods. This workshop will cover a) vectorization and Document Term Matrices, b) weighting (tf-idf), and c) uncovering patterns using topic modeling.

Part 3: In this workshop we will cover the most common CTA task: supervised classification. Using the Python library scikit-learn, we will implement Logistic Regression and Random Forest methods to perform sentiment analysis. Optional: introduction to word vector representations with Word2Vec.

Prior knowledge: We will be using the NLTK Python package, so basic familiarity with Python is required if you wish to follow along with the tutorial. Completion of D-Lab’s Python FUN!damentals workshop series will be sufficient.

This workshop is one of a three-part series that will prepare participants to move forward with text analysis research, with a special focus on humanities and social science applications.

  • Text Analysis Fundamentals: Basic Tools and Techniques (Part 1)
  • Text Analysis Fundamentals: Unsupervised Approaches
 (Part 2)
  • Text Analysis Fundamentals: Supervised Methods
 (Part 3)

Getting started & software prerequisites:

We will learn how to implement text analysis methods with Jupyter Notebooks.

To run the code on your computer, you will need to have Python 3 installed as well as some additional libraries. Anaconda is a free product that makes the installation process easy. It bundles together the Python language and a whole bunch of additional packages that we often rely on in our workshops. This way, you only have to download and install one thing. To use this method, visit this site and follow the instructions for your operating system to download the Python 3.x version (it might be 3.6, or 3.7, or higher). Please, please, please download the 3.x version, not the Python 2.x version. You may have a choice between using the graphical installer or the command line installer. Use whichever you’re comfortable with, but the graphical one is easier.

IMPORTANT: Please download the material for day 1 using the link below and save the folder on your desktop. The content may change between workshops so make sure you have downloaded the most recent version before each workshop.

Details

Date:
September 18
Time:
8:00 am - 5:00 pm
Event Category:
Website:
https://dlab.berkeley.edu/training/text-analysis-fundamentals-part-1-3

Organizer

D-Lab