diff --git a/README.md b/README.md index fe69d95..635b1b9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ -# sentiment analysis for star wars + +# Sentiment analysis for Star Wars ## data @@ -69,122 +70,26 @@ starwars_sentiment |> gt::as_raw_html() ``` -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +
-
documentcharactersdialoguesentiment
return of the jediLUKE -THREEPIO -BIBYou serve your master well. -And you will be rewarded. -At last! -Master Luke's come to rescue me. -Master.0.51
a new hopeLUKE -HANYou will... -All right, kid. -But you'd better be right about this! -All right. -What's your plan?0.48
a new hopeLUKE -HANShe's rich. -Rich? -Yes. -Rich, powerful! -Listen, if you were to rescue her, the reward would be... -What?0.42
return of the jediTHREEPIO -NINEDENINEOh. -Well, yes. -How many languages do you speak? -I am fluent in over six million forms of communication, and can readily... -Splendid! -We have been without an interpreter since our master got angry with our last protocol droid and disintegrated him.0.39
return of the jediHAN -LEIABack door, huh? -Good idea. -It's only a few guards. -This shouldn't be too much trouble. -Well, it only takes one to sound the alarm. -Then we'll do it real quiet-like.0.38
the empire strikes backLANDO -THREEPIO -LEIAHow you doing, you old pirate? -So good to see you! -I never thought I'd catch up with you again. -Where you been? -Well, he seems very friendly. -Yes... -very friendly. -What are you doing here?0.38
the empire strikes backLANDO -LUKELuke, we're ready for takeoff. -Good luck, Lando -When we find Jabba the Hut and that bounty hunter, we'll contact you. -I'll meet you at the rendezvous point on Tatooine.0.37
a new hopeLUKE -HANWell more wealth that you can imagine. -I don't know, I can imagine quite a bit! -You'll get it! -I better!0.36
return of the jediTHREEPIO -LUKE -HANOh, my head. -Oh, my goodness! -Do you understand anything they're saying? -Oh, yes, Master Luke! -Remember that I am fluent in over six million forms of communication. -What are you telling them?0.34
the empire strikes backSECOND CONTROLLER -PIETT -VADER -BOBA FETTSir, we have a priority signal from the Star Destroyer Avenger. -Right. -... -there will be a substantial reward for the one who finds the Millennium Falcon. -You are free to use any methods necessary, but I want them alive. -No disintegrations. -As you wish.0.33
+ +| document | characters | dialogue | sentiment | +|:------------------------|:----------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------:| +| return of the jedi | LUKE THREEPIO BIB | You serve your master well. And you will be rewarded. At last! Master Luke's come to rescue me. Master. | 0.51 | +| a new hope | LUKE HAN | You will... All right, kid. But you'd better be right about this! All right. What's your plan? | 0.48 | +| a new hope | LUKE HAN | She's rich. Rich? Yes. Rich, powerful! Listen, if you were to rescue her, the reward would be... What? | 0.42 | +| return of the jedi | THREEPIO NINEDENINE | Oh. Well, yes. How many languages do you speak? I am fluent in over six million forms of communication, and can readily... Splendid! We have been without an interpreter since our master got angry with our last protocol droid and disintegrated him. | 0.39 | +| return of the jedi | HAN LEIA | Back door, huh? Good idea. It's only a few guards. This shouldn't be too much trouble. Well, it only takes one to sound the alarm. Then we'll do it real quiet-like. | 0.38 | +| the empire strikes back | LANDO THREEPIO LEIA | How you doing, you old pirate? So good to see you! I never thought I'd catch up with you again. Where you been? Well, he seems very friendly. Yes... very friendly. What are you doing here? | 0.38 | +| the empire strikes back | LANDO LUKE | Luke, we're ready for takeoff. Good luck, Lando When we find Jabba the Hut and that bounty hunter, we'll contact you. I'll meet you at the rendezvous point on Tatooine. | 0.37 | +| a new hope | LUKE HAN | Well more wealth that you can imagine. I don't know, I can imagine quite a bit! You'll get it! I better! | 0.36 | +| return of the jedi | THREEPIO LUKE HAN | Oh, my head. Oh, my goodness! Do you understand anything they're saying? Oh, yes, Master Luke! Remember that I am fluent in over six million forms of communication. What are you telling them? | 0.34 | +| the empire strikes back | SECOND CONTROLLER PIETT VADER BOBA FETT | Sir, we have a priority signal from the Star Destroyer Avenger. Right. ... there will be a substantial reward for the one who finds the Millennium Falcon. You are free to use any methods necessary, but I want them alive. No disintegrations. As you wish. | 0.33 | + +
+ ## negative @@ -203,120 +108,26 @@ starwars_sentiment |> gt::as_raw_html() ``` -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+ +
-
documentcharactersdialoguesentiment
the empire strikes backHAN -LEIAStop what? -Stop that! -My hands are dirty. -My hands are dirty, too. -What are you afraid of? -Afraid?-0.39
a new hopeTHREEPIODid you hear that? -They've shut down the main reactor. -We'll be destroyed for sure. -This is madness! -We're doomed! -There'll be no escape for the Princess this time.-0.37
a new hopeRED LEADER -RED NINE'S VOICEIt's away! -It's a hit! -Negative. -Negative! -It didn't go in, it just impacted on the surface.-0.33
a new hopeRED LEADER -RED TENThis is it! -We should be able to see it by now. -Keep your eyes open for those fighters! -There's too much interference!-0.31
a new hopeTROOPER -HAN -THREEPIOStop that ship! -Blast 'em! -Chewie, get us out of here! -Oh, my. -I'd forgotten how much I hate space travel.-0.26
a new hopeMOTTI -VADERAny attack made by the Rebels against this station would be a useless gesture, no matter what technical data they've obtained. -This station is now the ultimate power in the universe. -I suggest we use it! -Don't be too proud of this technological terror you've constructed. -The ability to destroy a planet is insignificant next to the power of the Force. -Don't try to frighten us with your sorcerer's ways, Lord Vader. -Your sad devotion to that ancient religion has not helped you conjure up the stolen data tapes, or given you clairvoyance enough to find the Rebel's hidden fort... -I find your lack of faith disturbing.-0.25
a new hopeLUKE -THREEPIOThreepio! -We've had some problems... -Shut down all the garbage mashers on the detention level, will you? -Do you copy? -Shut down all the garbage mashers on the detention level.-0.24
a new hopeBEN -LUKEThat's what your uncle told you. -He didn't hold with your father's ideals. -Thought he should have stayed here and not gotten involved. -You fought in the Clone Wars? -Yes, I was once a Jedi Knight the same as your father. -I wish I'd known him.-0.24
the empire strikes backTHREEPIO -LEIA -HANWe're doomed! -The cave is collapsing. -This is no cave. -What?-0.24
a new hopeHAN -BEN -TROOPER -HAN'S VOICEDamn fool. -I knew that you were going to say that! -Who's the more foolish... -the fool or the fool who follows him? -The ship's all yours. -If the scanners pick up anything, report it immediately. -All right, let's go. -Hey down there, could you give us a hand with this?-0.23
+ +| document | characters | dialogue | sentiment | +|:------------------------|:----------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------:| +| the empire strikes back | HAN LEIA | Stop what? Stop that! My hands are dirty. My hands are dirty, too. What are you afraid of? Afraid? | -0.39 | +| a new hope | THREEPIO | Did you hear that? They've shut down the main reactor. We'll be destroyed for sure. This is madness! We're doomed! There'll be no escape for the Princess this time. | -0.37 | +| a new hope | RED LEADER RED NINE'S VOICE | It's away! It's a hit! Negative. Negative! It didn't go in, it just impacted on the surface. | -0.33 | +| a new hope | RED LEADER RED TEN | This is it! We should be able to see it by now. Keep your eyes open for those fighters! There's too much interference! | -0.31 | +| a new hope | TROOPER HAN THREEPIO | Stop that ship! Blast 'em! Chewie, get us out of here! Oh, my. I'd forgotten how much I hate space travel. | -0.26 | +| a new hope | MOTTI VADER | Any attack made by the Rebels against this station would be a useless gesture, no matter what technical data they've obtained. This station is now the ultimate power in the universe. I suggest we use it! Don't be too proud of this technological terror you've constructed. The ability to destroy a planet is insignificant next to the power of the Force. Don't try to frighten us with your sorcerer's ways, Lord Vader. Your sad devotion to that ancient religion has not helped you conjure up the stolen data tapes, or given you clairvoyance enough to find the Rebel's hidden fort... I find your lack of faith disturbing. | -0.25 | +| a new hope | LUKE THREEPIO | Threepio! We've had some problems... Shut down all the garbage mashers on the detention level, will you? Do you copy? Shut down all the garbage mashers on the detention level. | -0.24 | +| a new hope | BEN LUKE | That's what your uncle told you. He didn't hold with your father's ideals. Thought he should have stayed here and not gotten involved. You fought in the Clone Wars? Yes, I was once a Jedi Knight the same as your father. I wish I'd known him. | -0.24 | +| the empire strikes back | THREEPIO LEIA HAN | We're doomed! The cave is collapsing. This is no cave. What? | -0.24 | +| a new hope | HAN BEN TROOPER HAN'S VOICE | Damn fool. I knew that you were going to say that! Who's the more foolish... the fool or the fool who follows him? The ship's all yours. If the scanners pick up anything, report it immediately. All right, let's go. Hey down there, could you give us a hand with this? | -0.23 | + +
+ # sentiment by character @@ -367,3 +178,10 @@ starwars_sentiment |> ``` ![](README_files/figure-commonmark/unnamed-chunk-8-1.png) + +``` r +# Give some love to hist +hist(rnorm(300)) +``` + +![](README_files/figure-commonmark/unnamed-chunk-9-1.png) diff --git a/README.qmd b/README.qmd index f85f35d..62d4d32 100644 --- a/README.qmd +++ b/README.qmd @@ -9,7 +9,7 @@ format: editor: source --- -# sentiment analysis for star wars +# Sentiment analysis for Star Wars ## data @@ -159,3 +159,10 @@ starwars_sentiment |> ``` +```{r} + +# Give some love to hist +hist(rnorm(300)) + +``` + diff --git a/README_files/figure-commonmark/unnamed-chunk-5-1.png b/README_files/figure-commonmark/unnamed-chunk-5-1.png index 41824ea..8cb3ce6 100644 Binary files a/README_files/figure-commonmark/unnamed-chunk-5-1.png and b/README_files/figure-commonmark/unnamed-chunk-5-1.png differ diff --git a/README_files/figure-commonmark/unnamed-chunk-6-1.png b/README_files/figure-commonmark/unnamed-chunk-6-1.png index 1bb0375..214bde5 100644 Binary files a/README_files/figure-commonmark/unnamed-chunk-6-1.png and b/README_files/figure-commonmark/unnamed-chunk-6-1.png differ diff --git a/README_files/figure-commonmark/unnamed-chunk-7-1.png b/README_files/figure-commonmark/unnamed-chunk-7-1.png index 5357dbc..57663d7 100644 Binary files a/README_files/figure-commonmark/unnamed-chunk-7-1.png and b/README_files/figure-commonmark/unnamed-chunk-7-1.png differ diff --git a/README_files/figure-commonmark/unnamed-chunk-8-1.png b/README_files/figure-commonmark/unnamed-chunk-8-1.png index 488b897..e2c7adb 100644 Binary files a/README_files/figure-commonmark/unnamed-chunk-8-1.png and b/README_files/figure-commonmark/unnamed-chunk-8-1.png differ diff --git a/README_files/figure-commonmark/unnamed-chunk-9-1.png b/README_files/figure-commonmark/unnamed-chunk-9-1.png new file mode 100644 index 0000000..b9763cd Binary files /dev/null and b/README_files/figure-commonmark/unnamed-chunk-9-1.png differ