GithubHelp home page GithubHelp logo

gknox79 / smwa-computing-lecture-intro-text Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tisem-digital-marketing/smwa-computing-lecture-intro-text

0.0 0.0 0.0 3.42 MB

Introduction to Text Analytics

R 100.00%

smwa-computing-lecture-intro-text's Introduction

Social Media and Web Analytics: Computing Lecture 2

lifecycle lifecycle

Learning Objectives

By the end of this class you should be able to:

  • Explain the advantages and disadvantages of using text as data
  • Compute the number of characters and words within a piece of text
  • Define the terms unigram, token, stopword, word stem and TF-IDF
  • Transform a dataset of text into a dataset of tokens
  • Remove standard and customized stopwords from a data set of tokens
  • Visualize the most common words used in a data set of tokens
  • Lemmatize a set of tokens and explain the advantages of doing so
  • Compute a TF-IDF metric on a set of tokens
  • Explain the output of a statistical command that produces TF-IDF scores
  • Visualize word clouds that show common or distinguishing words between two categories of text

Instructions for Students (Before Coming to Class)

Accessing Materials & Following Along Live in Class

Clone a copy of this repository using Git. To clone a copy of this repository to your own PC:

git clone https://github.com/tisem-digital-marketing/smwa-computing-lecture-intro-text.git

Once you have cloned the files, open the cloned repository in RStudio as an RStudio project and use the empty R scripts to follow along with the lecture as we work through material.

At the conclusion of the class, the course instructor's scripts are made available in the branch instructor. Recall that you can switch between branches using the git branch <BRANCHNAME> command in a terminal. Thus to switch to the instructor branch:

git branch instructor

And to switch back to the branch that you worked through live in class:

git branch main

NOTE: Git does not like you to switch branches with uncommitted changes. Before you switch branches, be sure to commit any changes to the files.

Installing required packages

This lecture makes use of additional R packages:

  • janitor
  • readr
  • dplyr
  • tibble
  • tidyr
  • ggplot2
  • stringr
  • tidytext
  • textstem
  • tokenizers
  • reshape2
  • wordcloud

Install these packages before coming to class.

Meta-Information

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Suggested Citation

Deer, Lachlan. 2022. Social Media and Web Analytics: Computing Lecture 2 - Introduction to Text as Data Methods. Tilburg University. url = "https://github.com/tisem-digital-marketing/smwa-computing-lecture-intro-text"

@misc{smwa-compllecture02-2022,
      title={"Social Media and Web Analytics: Computing Lecture 2 - Introduction to Text as Data"},
      author={Lachlan Deer},
      year={2022},
      url = "https://github.com/tisem-digital-marketing/smwa-computing-lecture-intro-text"
}

smwa-computing-lecture-intro-text's People

Contributors

lachlandeer 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.