Introduction to Text Analytics with R Part 1 | Overview

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 105

  • @aachaves
    @aachaves 5 лет назад +8

    Dave, I've done several trainings during my career, both online and in-person, and I can assure you that your teaching style is the best I've ever known. Congratulations, you have the gift. Well done!

  • @ahmadalamer59
    @ahmadalamer59 4 года назад +1

    Thank you for your contribution for the world David! you are amazing and your parents are proud of you.

  • @AnalyticsMaster
    @AnalyticsMaster 7 лет назад +9

    Really appreciate your style of teaching Dave.....
    u are a super cooooooool teacher....

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @Anand Subramanian - Thank you for the compliment, always great to get confirmation! Glad you liked the video!

  • @ambatista1982
    @ambatista1982 6 лет назад

    Great video. I'm from Brail, and my level of English is beginner. but his teaching is very good, and I understood the idea and examples well. Thank you. I signed the Channel and left my like! A "hello" from Brazil to you!

  • @dreznik
    @dreznik 6 лет назад +10

    length(which(!complete.cases(df)) can be written as sum(!complete.cases(df))

  • @VijayKumar-pd8mu
    @VijayKumar-pd8mu 7 лет назад

    Excellent Explanation, clear understanding about the topic. if anyone want to learn text analytics this is the best one .

  • @mAcCoLo666
    @mAcCoLo666 7 лет назад +4

    Wonderful content. Just what I need to get up to speed for my university project about text mining :D

  • @vipulgupta7062
    @vipulgupta7062 5 лет назад +1

    Great video...to start with..nice job

  • @bexleymike
    @bexleymike 7 лет назад +3

    Great video, Dave! This is just what I've been looking for.

  • @sophiej4605
    @sophiej4605 3 года назад

    Thank you so much! If anyone has errors to replicate the lecture, use the codes and dataset the speaker uploaded. The link is above.

  • @gezahagnnegash9740
    @gezahagnnegash9740 2 года назад +1

    Thanks for sharing . It's really helpful for me

  • @163ii
    @163ii 3 года назад

    Well articulated and clear. Thanks so much for this video.

  • @kristyburns2363
    @kristyburns2363 5 лет назад

    Love love love the way you teach! Thank you 🙏

  • @OpalCrossCoaching
    @OpalCrossCoaching 3 года назад

    This is great content on text mining in R. I also have a channel that discusses text mining in R on data from the web, PDF documents and data frames.

  • @goodmanshawnhuang
    @goodmanshawnhuang 4 года назад

    Great work, thanks David for the wonderful explanation.

  • @mohammedasadi
    @mohammedasadi 5 лет назад +1

    Very helpful, thank you so much!

  • @jonimatix
    @jonimatix 7 лет назад +1

    Great video, thanks for this. Keep them coming!

  • @Tracks777
    @Tracks777 7 лет назад +2

    Nice content! Keep it up!

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @MisterBassBoost - Glad you like the video. We will producing new videos each week. Stay tuned!

  • @nnennaumelloh8834
    @nnennaumelloh8834 3 года назад

    This is great! Thank you!

  • @kobeoncount
    @kobeoncount 9 месяцев назад

    Dave, thank you for the brilliant series. Can you please tell if the codes in this series would be applicable to a project that aims to makes predictions on 3 categories (positive/neutral/negative)? Is there any importing detail I should know if I want to go for 3 categories? :)

  • @rajkumar-hh2hg
    @rajkumar-hh2hg 5 лет назад +1

    Excellent video, thanks for this. Can you make some video with a multi-label classification problem?

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 2 года назад

    David,
    The code for creating a new variable called spam.raw$Text.length

  • @TheShekhar91
    @TheShekhar91 7 лет назад +1

    Hi @Dave,
    While executing the below code I get an error, can you please comment on this:
    library(ggplot2)
    > ggplot(spam.raw, aes(x = TextLength, fill = Label)) + theme_bw()
    > + geom_histogram(binwidth = 5) + labs(y = "Text Count", x = "Length of Text",
    + title = "Distribution of Text Length with Class Lebels")
    Error in +geom_histogram(binwidth = 5) :
    invalid argument to unary operator
    >
    Thanks,
    Shekhar

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @Shekhar Tanwar - This modified code works:
      ggplot(spam.raw, aes(x = TextLength, fill = Label)) +
      theme_bw() +
      geom_histogram(binwidth = 5) +
      labs(y = "Text Count", x = "Length of Text",
      title = "Distribution of Text Length with Class Lebels")
      HTH,
      Dave

  • @mattRRgraham1996
    @mattRRgraham1996 3 года назад +1

    HOW TO GET AROUND ERROR PRESENTED AT ~ @24:00
    spam.raw$TextLength

  • @alexandregouveac
    @alexandregouveac 6 лет назад

    Tkanks a lot for sharing your knowledge!

  • @mhjrt
    @mhjrt 6 лет назад

    Great video, thanks!

  • @shunpeng3995
    @shunpeng3995 5 лет назад

    this is a great video for me!

  • @93jackjoe
    @93jackjoe 6 лет назад

    Thank u so much! It's very much helpful!

  • @AdityaRaj-cu7jm
    @AdityaRaj-cu7jm 4 года назад

    hey @Dave getting this as error
    package or namespace load failed for ‘quanteda’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
    namespace ‘rlang’ 0.4.2 is already loaded, but >= 0.4.3 is required
    please help me out here please

  • @davidcurrie2528
    @davidcurrie2528 6 лет назад

    Kaggle has a download link for the spam.csv file - github doesn't seem to have a download option. Part 1 is great.

  • @kebman
    @kebman 3 года назад

    I've always been curious about the usage of Neo4j and graph databases in conjuction with text analytics. Of course, I'm a complete noob in this field, but it never the less fascinates me. So how would you do that?

  • @shwetapatil5682
    @shwetapatil5682 6 лет назад

    It's really amazing!!
    thank u so much.

  • @karthik777777
    @karthik777777 7 лет назад

    Wonderful video sir.. Do you have any lecture or material on unsupervised text analytics as well? unsupervised when I mean it is I have lots of server log and want to make some sense of out it.

  • @pradeepvelavali9321
    @pradeepvelavali9321 6 лет назад

    Nice explanation. But one small question " how does it differentiate spam & ham data? , because everything we took is raw data & all are messages only here" . Thanks in advance.

  • @jamesxiang1031
    @jamesxiang1031 7 лет назад +1

    Hi Dave,
    Absolutely like your video, it helps me a lot on data analysis!
    By the way, what does spam.raw$Text do? I didn't see you create it earlier so I guess it is a command/function that R understand?
    Thanks,
    James

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад +1

      @James Xiang - If I understand your question correctly you can interpret the R code along the lines of, "R, I would like you access the Text variable of the spam.raw data frame."
      HTH,
      Dave

  • @kebman
    @kebman 3 года назад +1

    Lol I have never used R. Let's hope for the best, guys!

  • @TheShekhar91
    @TheShekhar91 7 лет назад +1

    Hey @Dave,
    It started working, thanks anyway :)

  • @midwest042003
    @midwest042003 5 лет назад

    pls i am getting this error "Error in socketConnection(port = port, server = TRUE, blocking = TRUE, : cannot open the connection" when i run "cl

  • @evry1loveronica
    @evry1loveronica 5 лет назад

    what's the difference between text count and length of text? Thank you so much for the awesome tutorial

  • @ShubhamRai06
    @ShubhamRai06 6 лет назад

    like ur style : Don't hasitate... Good one

  • @user-gz6iz4yp6t
    @user-gz6iz4yp6t 4 года назад

    what if i want to exclude stop words from stop_words() list how can i do it? i tried to to make custom stopwords but it didn't work.

  • @arunabhlala
    @arunabhlala 5 лет назад +1

    Does this series of videos give me the path to learn about extracting complex data in PDF file and then analysing them?
    Sir, please do reply

  • @sonjawap5044
    @sonjawap5044 6 лет назад

    R won't separate rows that contain quotation marks when I use read.csv. How do I solve this?

  • @UpDownMichelle
    @UpDownMichelle 6 лет назад +1

    This might be a silly question, but if you've installed ggplot or dplyr or any other package in a previous analysis (on the same machine), do you have to reinstall it EVERY time you want to use it? Or can you just install a bunch of packages once and then never have to do it again? Thanks for your videos, btw. I landed a pretty significant interview by watching these!

    • @MrShivam24
      @MrShivam24 6 лет назад

      install everytime after you open R studio

    • @JuhiPandeyTiwari
      @JuhiPandeyTiwari 6 лет назад +2

      No need to install every time.You just need to load the packages using " library("package name") " command.

    • @arunabhlala
      @arunabhlala 5 лет назад

      @@MrShivam24 Not required

  • @bedantamadhabgogoi
    @bedantamadhabgogoi 5 лет назад

    Thank you !!

  • @marcoanelli2045
    @marcoanelli2045 6 лет назад

    Very, very good.If they can teach a 58 year old physiscian, they can teach anybody... :-)

  • @vanshjauhari3671
    @vanshjauhari3671 4 года назад

    Hi Dave, my data is showing 2 missing values??

  • @user-gz6iz4yp6t
    @user-gz6iz4yp6t 4 года назад

    Hi.
    what should i learn first? natural language processing or text analysis?

  • @avijitnandy6662
    @avijitnandy6662 6 лет назад

    Hello Sir, I have a request, Can i use your code and the learning and demonstrate this whole in Bengali language and upload it, am I allowed to that. There are a lot of people who use this language and might be helpful for them to understand. As you know helping some one to understand in there mother tongue is the best way to teach.
    Thank You

  • @atelesteles4022
    @atelesteles4022 6 лет назад

    Hi
    if i want search one word in one location in twitter, how i do??
    i used this code
    cand

  • @mortonwakeland3809
    @mortonwakeland3809 6 лет назад

    OK, so what is R, say vs Voyant? or is R something else. Coming into this cold, not apparent. Thanks.

  • @rohitnagal3704
    @rohitnagal3704 5 лет назад

    Here how we deal with corpus. And idf is negative in this case also ?

  • @MrJfernandes7
    @MrJfernandes7 7 лет назад +1

    Dave, I saw your post on linkedin and came to check it out. I cloned the Github repository and when I ran this code I got the following error.
    >>> spam.raw$TextLength

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад +1

      @Jorge Fernandes - Interesting, I was able to replicate on my Mac. I have updated all the files in the GitHub to reflect the fix. Apologies for the bug!
      Dave

    • @yoka8118
      @yoka8118 6 лет назад +3

      UTF-8 encoding still wouldn't work. Latin1 would.
      "spam.raw = read.csv("spam.csv", stringsAsFactors = F, fileEncoding = "latin1")"

    • @nobody-in-spe
      @nobody-in-spe 6 лет назад

      thanks Yo Ka

  • @desertrose00
    @desertrose00 6 лет назад

    everything stops working as soon as I run:
    "spam.raw

  • @kunpu585
    @kunpu585 7 лет назад +1

    Hi, when I am trying the code in line 64 in my computer, it is said "Error in nchar(spam.raw$Text) : invalid multibyte string, element 634".Can you please help me to deal this problem?

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @Kun Pu - This is likely due the encoding of the sms text message data file. I would suggest getting the code and data file from the GitHub to see if that unblocks you.
      HTH,
      Dave

    • @roadofskyluis
      @roadofskyluis 7 лет назад +1

      Hi Dave
      I got this when I run line 34
      Warning messages:
      1: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
      invalid input found on input connection 'spam.csv'
      2: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
      EOF within quoted string

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @林以凡 - Have you downloaded the .R and .CSV files from the GitHub and see if this addresses your problem? Most folks find that getting the GitHub files allow them to troubleshoot issues they encounter. Let us know if you continue to run into issues with the GitHub files.
      HTH,
      Dave

    • @roadofskyluis
      @roadofskyluis 7 лет назад

      I still got the issue, I downloaded your code and spam file on github.
      but this time issue happen more earlier.
      I run read.csv function and see this warning and object spam only include 20 obj. of 5 variables.
      1: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
      invalid input found on input connection 'spam.csv'
      2: In scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
      EOF within quoted string
      here is the spam object contains for first 6 rows:
      v1
      v2
      X
      X.1
      X.2
      1
      ham
      Go until jurong point, crazy.. Available only in bugis n great world la e buffet... Cine there got amore wat...
      NA
      NA
      NA
      2
      ham
      Ok lar... Joking wif u oni...
      NA
      NA
      NA
      3
      spam
      Free entry in 2 a wkly comp to win FA Cup final tkts 21st May 2005. Text FA to 87121 to receive entry question(std txt rate)T&C's apply 08452810075over18's
      NA
      NA
      NA
      4
      ham
      U dun say so early hor... U c already then say...
      NA
      NA
      NA
      5
      ham
      Nah I don't think he goes to usf, he lives around here though
      NA
      NA
      NA
      6
      spam
      FreeMsg Hey there darling it's been 3 week's now and no word back! I'd like some fun you up for it still? Tb ok! XxX std chgs to send, a£1.50 to rcv
      NA
      NA
      NA

    • @roadofskyluis
      @roadofskyluis 7 лет назад

      spam.raw

  • @yaoxie7139
    @yaoxie7139 7 лет назад +2

    Hi Dave,
    Thanks for the video.
    When I run the code
    spam.raw$TextLength

    • @yaoxie7139
      @yaoxie7139 7 лет назад

      @David Langer Yes, Dave. @Anubhav Dhiman Thank you!

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @Yao Xie - Did the solution from @Anubhav Dhiman address the problem?

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @Anubhav Dhuman - Thank you for the fix. I have updated the code in the GitHub to reflect this and tested on both Windows and Mac OS X under R v3.4.
      Dav

    • @Dhrittinagpal
      @Dhrittinagpal 6 лет назад

      Thanks David..this reapply saved my day..but can you explain what does - fileEncoding="latin1" - mean?

  • @gilltim5711
    @gilltim5711 2 года назад

    I'm running this in RStudio Cloud version, and when I run this line of code:
    spam.raw$TextLength

  • @othman82637
    @othman82637 7 лет назад

    Hello Dave, salute you for your great initiative, very effective and organised,
    would it be possible to guide us on the following command :
    > spam.raw$TextLength

    • @othman82637
      @othman82637 7 лет назад

      I manage it :
      iconv(spam.raw$Text, "ISO-8859-1", "UTF-8") and it works

    • @钱其玮
      @钱其玮 6 лет назад

      Just want to mention that to configure "fileEncoding = "UTF-16"" to "mac" , then it works in the command: spam.raw$TextLength

  • @cauliflower78
    @cauliflower78 7 лет назад

    I am getting a error while reading the file:
    Error in make.names(col.names, unique = TRUE) :
    invalid multibyte string at 'v'

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @db-engineering - A couple of trouble shooting questions:
      1 - Are you using the .CSV and .R files from the GitHub?
      2 - What OS and version of R are you using?

    • @cauliflower78
      @cauliflower78 7 лет назад +1

      Actually I was following the video and not using the code in github. After looking at the code in github adding the file encoding, I am not getting any error. Thank you very much for the awesome tutorial.

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @db-engineering - Glad you liked the tutorial and that you are now unblocked.
      Dave

    • @cauliflower78
      @cauliflower78 7 лет назад +1

      In may laptop I have R version 3.3.2 and everything is working fine ( but its slow). I have R version 3.3.1 in a powerful workstation, where I do not have power to upgrade R. I am trying to run in with 3.3.1 but I am having hard time installing quanteda. I am getting following error.
      Error: package ‘RcppArmadillo’ 0.6.100.0.0 was found, but >= 0.7.600.1.0 is required by ‘quanteda’
      * removing ‘/home/ruser_usapkota/R/x86_64-redhat-linux-gnu-library/3.3/quanteda’
      Is there some workaround to successfully install ‘quanteda’ in R version 3.3.1?

    • @Datasciencedojo
      @Datasciencedojo  7 лет назад

      @db-engineering - My apologies on this, but I would strongly advise looking into updating R to the latest bits rather than try to deal with the network of varying package dependencies. In fact, I would suggest updating your laptop to the latest R version (i.e., v3.4.1 at the time of this writing).
      HTH,
      Dave

  • @rohitnagal3704
    @rohitnagal3704 5 лет назад

    If we have to deal with 1 lakh articles then tfidf is relevant. Basically i am working on question answering algorithm

  • @seamansun8435
    @seamansun8435 4 года назад

    when I run the rode"spam.raw$TextLength

    • @tmpcox
      @tmpcox 4 года назад

      same problem.... did you find the answer?

    • @seamansun8435
      @seamansun8435 4 года назад

      @@tmpcox I do not find the answer

    • @tmpcox
      @tmpcox 4 года назад

      @@seamansun8435 thx! Mhh i have just followed the rest of the intro course without that part, for so far no problems at all👍

  • @smritikalra3948
    @smritikalra3948 6 лет назад

    Hi I am facing an issue. When I pass this command, spam.raw$TestLength

  • @slkslk7841
    @slkslk7841 4 года назад +1

    To the MALAYALI data scientist who noticed something at 23:42

  • @daudkhan8642
    @daudkhan8642 6 лет назад

    1.
    install.packages(c("gglot2","e1071","caret","quantenda","irlba","randomForest"))
    2.
    spam.raw

  • @kylenash4112
    @kylenash4112 6 лет назад +2

    the GitHub is not working. thanks Dave

    • @Datasciencedojo
      @Datasciencedojo  6 лет назад

      Hi Kyle, thanks for pointing that out. Both links work now!