diff --git a/README.md b/README.md index f7c2b19..fe5e98b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Learn OpenCV : C++ and Python Examples. You can find the details at [LearnOpenC | Blog Post | | | ------------- |:-------------| -|[Universal Sentence Encoder]() | [Code](https://github.com/spmallick/learnopencv/blob/master/Universal-Sentence-Encoder) | +|[Universal Sentence Encoder](https://www.learnopencv.com/universal-sentence-encoder/) | [Code](https://github.com/spmallick/learnopencv/blob/master/Universal-Sentence-Encoder) | |[Install OpenCV 4 on Raspberry Pi](https://www.learnopencv.com/install-opencv-4-on-raspberry-pi/) | [Code](https://github.com/spmallick/learnopencv/blob/master/InstallScripts/installOpenCV-raspberry-pi.sh) | |[Install OpenCV 4 on Windows](https://www.learnopencv.com/install-opencv-4-on-windows/) | [Code](https://github.com/spmallick/learnopencv/tree/master/InstallScripts/Windows) | |[Hand Keypoint Detection using Deep Learning and OpenCV](https://www.learnopencv.com/hand-keypoint-detection-using-deep-learning-and-opencv/) | [Code](https://github.com/spmallick/learnopencv/tree/master/HandPose)| diff --git a/Universal-Sentence-Encoder/Avengers-Script-Similarity-Analysis b/Universal-Sentence-Encoder/Avengers-Script-Similarity-Analysis deleted file mode 160000 index ecd77c7..0000000 --- a/Universal-Sentence-Encoder/Avengers-Script-Similarity-Analysis +++ /dev/null @@ -1 +0,0 @@ -Subproject commit ecd77c7e001a9c8ce7f911a6161ee2ac836417e5 diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Avenger-semantic-similarity.png b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Avenger-semantic-similarity.png new file mode 100644 index 0000000..0ca372c Binary files /dev/null and b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Avenger-semantic-similarity.png differ diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bruce Banner.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bruce Banner.txt new file mode 100644 index 0000000..890e798 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bruce Banner.txt @@ -0,0 +1,49 @@ +Thanos is coming. He's coming... +Hey, Tony. +Pepper. +Thanos. He's a plague, Tony. He invades planets. He takes what he wants. He wipes out half the population. He sent Loki. The attack on New York, that's him. +No telling. He has the Power and Space Stones, that already makes him the strongest creature in the whole universe. If he gets his hands, on all six Stones, Tony... +That's a thing? +Okay, guys, could we table this discussion right now? The fact is that we have this Stone. We know where it is. Vision is out there somewhere with the Mind Stone, and we have to find him now. +What do you mean? +What? Tony, you lost another super bot? +Call him. +No. +Broke up? Like a band? Like The Beatles? +Tony, listen to me. Thor's gone. Thanos is coming. It doesn't matter who you're talking to or not. +Go! Got it! +No, not really, but when do I ever get what I want? +I just... I need to concentrate here for one second. Come on, come on, man. +I don't know. We've sort been havin' a thing. +I know. +Tony, I'm sorry. Either I can't or he won't- +Damn it. +Where'd that come from? +Tony, you okay? How we doing? Good? bad? +I'm trying. He won't come out. +Come on, Hulk. What are you doing to me? Come out! Come out! Come out! +What do you mean, "no"?! +Where you going? +I'm gonna make a call. +Uh, I think you look great. Uh... heh... Yeah. I'm back. +Nat. +We need all hands on deck. Where's Clint? +Who's Scott? +There's an Ant-Man and a Spider-Man? Okay, look… Thanos has the biggest army in the universe. And he is not gonna stop until he... he gets... Vision's stone. +Because you might have a choice. Your mind is made up of a complex construct of overlays. J.A.R.V.I.S., Ultron, Tony, me, the Stone. All of them mixed together. All of them learning from one another. +I'm saying that if we take out the stone, there's still a whole lot of Vision left. Perhaps the best parts. +Not me. Not here. +Should we bow? +Uh, sir, I think you can expect quite a big assault. +Right, we had to attach each neuron non-sequentially. +Because, we didn't think of it. +Yeah, I think I'm getting the hang of it. Wow! It's like being the Hulk without actually- I'm okay. I'm okay. +Cap, if these things circle the perimeter and get in behind us...There's nothing between them and Vision. +There’s too many of them! GYAH! AAAAHHHHH! +AH-hahaha! You guys are so screwed now! +I got him! +Ohh no, oh no you don't. This isn't going to be like New York, pal. This suit's already kicked the crap out of the Hulk- +Guys! Vision needs backup now! Hulk. Hulk, I know you like making your entrance at the last second, well, this is it, man. This is the last, last second. Ahhhhh! Hulk! Hulk! Hulk! +Oh, screw you, you big green asshole! I'll do it myself! Come on! +See ya! Hulk, we got a lot to figure out, pal. +Cap. That's him. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bucky Barnes.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bucky Barnes.txt new file mode 100644 index 0000000..d2612b8 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Bucky Barnes.txt @@ -0,0 +1,8 @@ +Where's the fight? +A semi-stable, 100-year-old man. +Uh, not bad, for the end of the world. +God, I love this place. +Did they surrender? +What the hell. +Not for sale. +Steve? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Child of Thanos.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Child of Thanos.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Child of Thanos.txt @@ -0,0 +1 @@ + diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Collector.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Collector.txt new file mode 100644 index 0000000..8d9eae0 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Collector.txt @@ -0,0 +1,5 @@ +I don't have it. +I told you. I sold it. Why would I lie? +Like suicide. +I didn't know what it was. +Magnificent! Magnificent! Magnificent! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Corvus Glaive.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Corvus Glaive.txt new file mode 100644 index 0000000..13e0a3a --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Corvus Glaive.txt @@ -0,0 +1,3 @@ +Give up the Stone, and she lives. +I can't. +I thought you were formidable, machine. But you're dying, like any man. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Cull Obsidian.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Cull Obsidian.txt new file mode 100644 index 0000000..139597f --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Cull Obsidian.txt @@ -0,0 +1,2 @@ + + diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Doctor Strange.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Doctor Strange.txt new file mode 100644 index 0000000..694b5e0 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Doctor Strange.txt @@ -0,0 +1,57 @@ +Seriously? You don't have any money? +I'll tell the guys at the deli. Maybe they'll make you a metaphysical ham on rye. +Dollars? +Which is? +What do you want? +... Who? +Tony Stark, I'm Doctor Stephen Strange. I need you to come with me. Oh, uh, congratulations on the wedding, by the way. +We need your help. Look, it's not overselling to say that the fate of the universe is at stake. +Space. Reality. Power. Soul. Mind. And Time. +He can destroy life on a scale hitherto undreamt of. +Are you seriously leaning on the Cauldron of the Cosmos? +No can do. +Stark Raving Hazelnuts. +A bit chalky. +Our oath to protect the Time Stone cannot change. This Stone may be the best chance we have against Thanos. +Well, if we don't do our jobs. +Protecting your reality, douchebag. +Who could find Vision, then? +Oh, great. +... Not at the moment, no. +Might wanna use it. +Certainly not. I speak for myself. But you’re trespassing in this city and on this planet. +Dr. Banner, if the rest of your green friend won't be joining us... +It stays with me. +It's a simple spell but quite unbreakable. +You'll find... removing a dead man's spell... troublesome. +We've gotta turn this ship around. +No, I want to protect the stone. +For what? Nearly blasting me into space? +I seriously don't know how you fit your head into that helmet. +Unlike everyone else in your life, I don't work for you. +I'm sorry, I'm confused as to the relationship here. What is he, your ward? +Doctor Strange. +Can we control it? Fly us home? Stark? +Can you get us home? +Under no circumstance can we bring the Time Stone to Thanos. I don't think you quite understand what's at stake here. +Alright , Stark. We go to him. But you have to understand... if it comes to saving you or the kid or the Time Stone... I will not hesitate to let either of you die. I can't, because the fate of the universe depends on it. +I think we're here. +She's right. You can't. +Wait, what, Thanos? All right, let me ask you this one time. What master do you serve? +Where is he now? +I went forward in time to view alternate futures. To see all the possible outcomes of the coming conflict. +14,000,605. +One. +Oh, yeah. You're much more of a Thanos. +You may regret that. He brought you face-to-face with the Master of the Mystic Arts. +Let me guess. Your home? +Genocide. +Congratulations. You're a prophet. +Who wants to murder trillions. +And then what? +I think... you'll find... our wil...l equal to yours. +Do not let him close his fist. +No! +Stop! Spare his life... and I will give you the stone. +We're in the endgame now. +Tony, there was no other way. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Dome Control.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Dome Control.txt new file mode 100644 index 0000000..0f4b8fb --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Dome Control.txt @@ -0,0 +1 @@ +Requesting confirmation, my King. You said open the barrier? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Drax.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Drax.txt new file mode 100644 index 0000000..9cdd528 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Drax.txt @@ -0,0 +1,29 @@ +We'll take his ship. +Wow. +He is not a dude. You're a dude. This... This is a man. A handsome, muscular man. +It's true. You have gained a little weight… +It's like a pirate had a baby with an angel. +Including my own. +Gamora... is the daughter of Thanos. +You are. You're imitating the god-man. It's weird. +That's a made up word. +An hour. +I've mastered the ability of standing so incredibly still... that I become invisible to the eye. Watch. +But my movement... was so slow... that it's imperceptible. +I'm sure I'm invisible. +Damn it. +I'm reading movement from the third quadrant. +Today... +...he pays for the deaths of my wife and daughter. +No. No. For Ovette. For Camaria. +Thanos! +Thanos! +Die, blanket of death! +I'll do you one better! Why is Gamora? +Do it, Quill! I can take it. +I stopped listening after you said, "We need a plan." +Yeah, that's right +Tell him about the dance-off to save the universe. +What does this monster have to mourn?! +Quill! +Quill...? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ebony Maw.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ebony Maw.txt new file mode 100644 index 0000000..8feb340 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ebony Maw.txt @@ -0,0 +1,19 @@ +Hear me, and rejoice. You have had the privilege of being saved by the Great Titan. You may think this is suffering. No... it is salvation. Universal scales tip toward balance because of your sacrifice. Smile... for even in death, you have become Children of Thanos. +Let him have his fun. +Shhh. +My humble personage… bows before your grandeur. No other being has ever had the might, nay the nobility, to wield not one, but two Infinity Stones. The universe lies within your grasp. +Hear me, and rejoice. You are about to die at the hands of the Children of Thanos. Be thankful, that your meaningless lives are now contributing to... +Stonekeeper... Does this chattering animal speak for you? +He exhausts me. +Bring me the Stone. +Your powers are quaint. You must be popular with children. +Then I'll take it off your corpse. +You'll only wish you were dead. NO! +Zehobereians… +Choose a side, or die. +One side is a revelation. The other, an honor known only to a few. +Now go in peace, and meet your Maker. +In all the time I've served Thanos, I've never failed him. If I were to reach our rendezvous on Titan with the Time Stone still attached to your vaguely irritating person, there would be...judgement. [the needles start to contact Strange's face, causing an obviously painful whitish subcutaneous glow at each touch[ Give me... the stone. +Painful aren't they? They were originally designed for microsurgery. And any one of them... +...could end your friend's life in an instant. +You've saved nothing. Your powers are inconsequential compared to mine. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Eitri.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Eitri.txt new file mode 100644 index 0000000..7a54f60 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Eitri.txt @@ -0,0 +1,16 @@ +Thor? +You were supposed to protect us. Asgard was supposed to protect us! +300 dwarves lived on this ring. I thought if I did what he asked, they'd be safe. I made what he wanted. A device capable of harnessing the power of the stones. Then he killed everyone anyway. All except me. "Your life is yours." he said "But your hands are mine alone." +It's a mold. A king's weapon. Meant to be the greatest in Asgard. In theory, it could even summon the Bifrost. +Stormbreaker. +You'll have to restart the forge. Awaken the heart of a dying star. +Well done, boy. +Damn it. +The mechanism is crippled. +With the iris closed I can't heat the metal. +A few minutes, maybe more. Why? +That's suicide. +You understand, boy? You're about to take the full force of a star. It'll kill you. +Yes. That's what... "killing you" means. +Hold it! Hold it, Thor! +He needs the axe! Where's the handle? Tree, help me find the handle! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/F.R.I.D.A.Y.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/F.R.I.D.A.Y.txt new file mode 100644 index 0000000..d30bfa1 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/F.R.I.D.A.Y.txt @@ -0,0 +1,5 @@ +Not sure, I'm working on it. +Will do. +Yep. +Boss, incoming call from Miss Potts. +Boss, we're losing her. I'm going, too… diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora's Mother.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora's Mother.txt new file mode 100644 index 0000000..5a908a5 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora's Mother.txt @@ -0,0 +1 @@ +Shhh. We'll be safe. We'll be safe. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora.txt new file mode 100644 index 0000000..41f4aeb --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Gamora.txt @@ -0,0 +1,46 @@ +It's a distress signal, Rocket. Someone could be dying. +Which isn't the point. +Hey! +It's like his muscles are made of Cotati metal fibers. +The entire time I knew Thanos, he only ever had one goal To bring balance to the Universe by wiping out half of all life. He used to kill people planet by planet, massacre by massacre... +If he gets all six Infinity Stones, he can do it with the snap of his fingers, like this. +Enough! We need to stop Thanos. Which means we need to find out where he's going next. +Thor… Why would he go to Knowhere? +How do you know he's not going for one of the other Stones? +Then we have to go to Knowhere now. +If we don't go to Knowhere and Thanos retrieves another stone, he'll be too powerful to stop. +I need to ask a favor. +One way or another, the path that we're on leads to Thanos. +If things go wrong… If Thanos gets me… I want you to promise me… you'll kill me. +I know something he doesn't. If he finds out… The entire Universe could be at risk. +If I tell you, you'd know, too. +Only if you wanna die. +Just… trust me. And possibly, kill me. +Swear to me. Swear to me on your mother. +You knew I'd come. +Peter… +Now? Really? +Peter… +Not him. +You promised! You promised. +I love you, more than anything. +I always hated that chair. +I hated this room. This ship. I hated my life. +I was a child when you took me. +No. No. We were happy on my home planet. +Because you murdered half the planet. +You're insane. +You don't know that! +I'm not your daughter. Everything I hate about myself you taught me. +I'm sorry I disappointed you. +Nebula. +Don't do this. +Please don't do this. +Stop. Stop it. I swear to you on my life. I never found the Soul Stone. +Vormir! The Stone is on Vormir. +All my life, I dreamed of a day...A moment when you would get what you deserved. And I was always so disappointed. But now...You kill and torture...And you call it mercy. The universe has judged you. You asked it for a prize, and it told you no. You failed. And do you wanna know why? Because you love nothing. No one. +Really? Tears? +No. This isn't love. +No! +Did you do it? +What did it cost? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Groot.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Groot.txt new file mode 100644 index 0000000..ba286da --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Groot.txt @@ -0,0 +1,7 @@ +I am Groot! +I am Groot. +I am Groot. +I am Groot. +I am Groot. +I am GROOT! +I am Groot... diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Heimdall.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Heimdall.txt new file mode 100644 index 0000000..c4c4514 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Heimdall.txt @@ -0,0 +1 @@ +Allfathers… let the dark magic flow through me one last... time. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Hulk.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Hulk.txt new file mode 100644 index 0000000..3719a56 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Hulk.txt @@ -0,0 +1,2 @@ +Nooooooo! +NOOOO! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari Warriors.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari Warriors.txt new file mode 100644 index 0000000..147aab6 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari Warriors.txt @@ -0,0 +1 @@ +MAYEFA YA HU! MAYEFA YA HU! MAYEFA YA HU! MAYEFA YA HU! MAYEFA YA HU! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari.txt new file mode 100644 index 0000000..4d56304 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Jabari.txt @@ -0,0 +1 @@ +YA HU! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/James Rhodes.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/James Rhodes.txt new file mode 100644 index 0000000..b91de30 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/James Rhodes.txt @@ -0,0 +1,17 @@ +Satellites lost him somewhere over Edinburgh. +You know they're only criminals because you've chosen to call them that, right, sir? +If it weren't for those Accords, Vision would've been right here. +That's right. And I'm pretty sure I've paid for that. +Not anymore. +All over it. That's a court-martial. It's great to see you, Cap. +Well. You guys really look like crap. Must've been a rough couple of years. +So we gotta assume they're coming back, right? +You better find someone, and somewhere fast. Ross isn't exactly just gonna let you guys have your old rooms back. +Yeah, he's a king. +What are you doing? +Yeah, don't start celebrating yet, guys. We got more incoming outside the dome. +I got two heat signatures breaking through the tree line. +Alright, back up, Sam. You're gonna get your wings singed. +Focus that fire on the left flank, Sam. +Sam? Sam!? Where you at?! +What is this? What the hell is happening? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Loki.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Loki.txt new file mode 100644 index 0000000..26ce3bb --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Loki.txt @@ -0,0 +1,7 @@ +Oh, I do. Kill away! +ALL RIGHT, STOP! +I assure you, brother, the sun will shine on us again. +Well, for one thing, I'm not Asgardian. And for another... We have a Hulk. +If I might interject… If you're going to Earth, you might want a guide. I do have a bit of experience in that arena. +I consider experience, experience. Almighty Thanos, I... Loki... Prince of Asgard... Odinson... The rightful King of Jotunheim... God of Mischief... do hereby pledge to you, my undying fidelity. +You will... never be... a god. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/M'Baku.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/M'Baku.txt new file mode 100644 index 0000000..70371ec --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/M'Baku.txt @@ -0,0 +1,3 @@ +Of course, brother. +This will be the end of Wakanda. +MAYEFA! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Mantis.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Mantis.txt new file mode 100644 index 0000000..c732bb5 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Mantis.txt @@ -0,0 +1,17 @@ +We are arriving. +What happened? +He is anxious. Angry. He feels tremendous loss and guilt. +Wake. +He just did it again! +He must be going somewhere. +Like Kevin Bacon? +Hi, Drax. +Sleeeep. +No he can't take it! +You're the ones Thor told us about. +Kick names, take ass. +Excuse me, but... does your friend often do that? +Be quick. He is very strong. +He is in anguish! +He… he… mourns! +Something... is... happening. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Maria Hill.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Maria Hill.txt new file mode 100644 index 0000000..5088ce2 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Maria Hill.txt @@ -0,0 +1,6 @@ +No, not yet. We're watching every satellite in both hemispheres, there's still nothing. +Multiple bogeys over Wakanda. +Ten times bigger. +Nick! NICK! +There's no one here. +Nick...? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Gamora.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Gamora.txt new file mode 100644 index 0000000..8847923 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Gamora.txt @@ -0,0 +1,2 @@ +He can never get them all. +He can't, Nebula. Because I found the map to the Soul Stone and I burnt it to ash. I burnt it. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Nebula.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Nebula.txt new file mode 100644 index 0000000..b7edead --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Memory Nebula.txt @@ -0,0 +1,2 @@ +You know what he's about to do. He's finally ready, and he's going for the stones. All of them. +He will! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Natasha Romanoff.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Natasha Romanoff.txt new file mode 100644 index 0000000..3b3e590 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Natasha Romanoff.txt @@ -0,0 +1,15 @@ +We don't wanna kill you. But we will. +I thought we had a deal. Stay close, check in. Don't take any chances. +You could use some of that right now. +Hi, Bruce. +After the whole Accords situation, he and Scott took a deal. It was too tough on their families, they're on house arrest. +Well then, we have to protect it. +Can we do that? +How we looking? +Vision, get your ass back on the table. +How we looking, Bruce? +Where's your other friend? +Looks like we pissed her off. +She's not alone. +That was really gross. +What the hell? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nebula.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nebula.txt new file mode 100644 index 0000000..03af311 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nebula.txt @@ -0,0 +1,6 @@ +Mantis, listen very carefully. I need you to meet me on Titan. +You should have killed me. +Where's Gamora?! +Gamora. +He took her to Vormir. He came back with the Soul Stone... but she didn't. +He did it. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ned Leeds.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ned Leeds.txt new file mode 100644 index 0000000..8450438 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Ned Leeds.txt @@ -0,0 +1 @@ +Holy shit! We're all gonna die! There's a spaceship! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nick Fury.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nick Fury.txt new file mode 100644 index 0000000..7c3f067 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Nick Fury.txt @@ -0,0 +1,8 @@ +Still no word from Stark? +What is it? +Same energy signatures as New York? +Tell Klein we'll meet him at- +They okay? +Call Control. Code Red! +Hill? +Oh, no. Motherf- diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Okoye.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Okoye.txt new file mode 100644 index 0000000..61b195c --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Okoye.txt @@ -0,0 +1,11 @@ +You'll have the Kingsguard, and the Dora Milaje have been alerted. +Those that are left. +And what of this one? +When you said we were going to open Wakanda to the rest of the world...This is not what I imagined. +The Olympics. Maybe even a Starbucks. +Something's entered the atmosphere. +They're killing themselves. +How do we do that? +Then it will be the noblest ending in history. +Why was she up there all this time? +Kumkani...?! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Pepper Potts.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Pepper Potts.txt new file mode 100644 index 0000000..cdd72b5 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Pepper Potts.txt @@ -0,0 +1,22 @@ +You're totally rambling. +Lost me. +Yeah. +Right. And then you wake up, and in real life you actually have to pee. +Yeah. Everybody has that. +Right. +So you woke up, and thought that we were... +Yeah. +No. +If you wanted to have a kid, you wouldn't have done that. +It's not helping your case, OK? +You don't need that. +Shirts? +You should have shirts in your closet. +Yes. +Hi. +Tony? Oh, my God. Are you all right? What's going on? +Why? +Tell me you're not on that ship. +God, no. Please tell me you're not on that ship. +Come back here, Tony. I swear to God… +Come back here right now! Come back! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Parker.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Parker.txt new file mode 100644 index 0000000..9fb6bc5 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Parker.txt @@ -0,0 +1,46 @@ +Ned, hey. I need you to cause a distraction. +Hey, man. What's up, Mr. Stark? +Field trip to MoMA. +What is this guy's problem, Mr. Stark? +On it! +Not cool! +Mr. Stark? I'm being beamed up! +But you said save the wizard! I can't breathe! +Yeah! That makes sense. +Mr. Stark, it smells like a new car in here! +Oh, come on! +Oh my God! I should have stayed on the bus. +Yeah, uh, speaking of loyalty... +I know what you're gonna say. +I was gonna go home- +But it was such a long way down and I just thought about you on the way- +...And I kinda stuck to the side of the ship. And this suit is ridiculously intuitive, by the way. So if anything, it's kinda your fault that I'm here. +I take that back. And now I'm here in space. +No. I did think this through. +It's just- You can't be a friendly neighborhood Spider-Man when there's no neighborhood. Okay. That didn't really make any sense, but you know what I'm trying to say. +Um. Okay, okay...uh.... Okay. Did you ever see this really old movie, Aliens? +Yes! Wait what are those! +Hey, we haven't officially met. Cool. +I'm backup. +No. I'm Peter, by the way. +Oh, we're using our made-up names. Um... I'm Spider-Man, then. +Hey, what's going on? +Yep, got it. +Okay. Okay. Ready. +We might wanna turn. Turn! Turn! Turn! +Let me just say, if aliens wind up implanting eggs in my chest or something, and I end up eating you, I'm sorry. +I'm trying to say that something is coming. +Whoa, whoa, whoa, whoa! Please don't put your eggs in me! +So, you're not with Thanos? +We're the Avengers, man. +Uh, what exactly is it that they do? +Like in Footloose, the movie? +It never was. +Okay. +Hey, what was that? +Magic! More magic! Magic with a kick! Magic with a- +It's coming! It's coming! It's coming! I got it! I got it...! +Oh, God. +I got you! I got you! I'm sorry I can't remember anybody's names! +Mister Stark? I don't feel so good... +I don't know what's- I don't know what's happening. I don't- Save me, save me! I don't wanna go, I don't wanna go, sir, please. Please, I don't wanna go. I don't wanna go... I'm sorry. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Quill.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Quill.txt new file mode 100644 index 0000000..7205540 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Peter Quill.txt @@ -0,0 +1,86 @@ +Sing it, Drax! +'Cause we're nice. And maybe whoever it is will give us a little cheddar cheese for our help. +Which isn't the point... I mean… If he doesn't pony up… +B-b-b-bingo! +All right, Guardians. Don't forget, this might be dangerous, so let's put on our mean faces. Groot, put that thing away. Now. I don't wanna tell you again. +Groot. +Whoa! +You got some acorns on you, kid. +How the hell is this dude still alive? +I'm muscular. +Yeah, right. +What? Gamora, do you think I'm… +Wow. This is a real wake-up call for me. Okay. I'm gonna get a Bowflex. I'm gonna commit. I'm gonna get some dumbbells. +Stop massaging his muscles. Wake him up. +Oh, boy. Stepfather. Technically, she hates him as much as you do. +And I feel your pain, as well. I mean it's not a competition, but I've been through a lot. My father killed my mother, then I had to kill my father. And that was hard. Probably even harder than having to kill a sister. Plus, I, came out of it with both of my eyes-" +What are you doing? +No, you're not! You'll not, be taking our pod today, sir. +No. +No I'm not. +This is my voice! +Are you mocking me? +He's trying to copy me. +No. Knowhere? It's a place. We've been there. It sucks. Excuse me, that's our food. +If it's with the Collector, then it's not safe. Only an idiot would give that man a stone. +The Avengers? +Except for that I'm the captain. +That's my backpack. +Look, this is my ship. And I'm not goin' to… Wait, what kind of weapon are we talking about here? +Don't you think that we should all have a weapon like that? +For the record… I know that you're only going with him because it's where Thanos isn't. +Gamora. Do you know if these grenades are the "blow off your junk" kind or the gas kind? 'Cause I was thinking I might hang a couple on my belt right here. But I don't want to- +Yeah, sure. +Which is what the grenades are for. I'm sorry. What's the favor? +What? +What do you know? +If it's so important, shouldn't I? +Why does somebody always have to die in this scenario? +I mean, I'd like to. I really would… +Okay. +Dude! How long have you been standing there? +An hour? Are you serious? +You're eating a zarg-nut. +Mmm, no. +This place looks deserted. +Yep. I'm picking that up, too. Let's put it down right here. +Drax. Drax. +Drax, waaaaait! Not yet, not yet, not yet. Drax, Drax, Drax. He doesn't have the Stone yet. We get it, and then we can stop him. We have to get the Stone first. Yeah. +Okay. Gamora, Mantis, you go right. I'm... The other right! +That was quick. +Let her go, Grimace! +I told you to go right. +You let her go! +I like to think of myself more as a Titan-killing long-term booty call. Let her go. +Or I'm gonna blow that nutsack of a chin right off your face! +I told you to go right. +I love you, too. +Stay down, clown. +Everybody stay where you are. Chill the F out. I'm gonna ask you this one time. Where's Gamora? +Tell me where the girl is, or I swear to you, I'm gonna French fry this little freak. +Oh yeah? You don't wanna tell me where she is? That's fine. I'll kill all three of you and beat it out of Thanos myself. Starting with you. +What master do I serve? What am I supposed to say? "Jesus"? +I'm not from Earth. I'm from Missouri. +With Thanos? No, I'm here to kill Thanos. He took my girl. Wait, who are you? +Oh. +Yeah. Tall guy, not the good-looking, needed saving. +The heck happened to this planet? It's eight degrees off its axis. Gravitational pull is all over the place. +See, "not winging it" isn't really what they do. +"Mr. Lord." Star-Lord is fine. +Dude, don't call us plucky. We don't know what it means. Alright, we're optimistic, yes. I like your plan. Except it sucks, so let me do the plan, and that way it might be really good. +It's not a... it's not... it's nothing. +Exactly like Footloose. Is it still the greatest movie in history? +Flash Gordon? By the way, that's a compliment. Don't forget, I'm half human. So that 50% of me that's stupid? That's 100% you. +How many did you see? +Yeah, if your goal was to piss him off. +Boom! +I thought you'd be harder to catch. For the record, this was my plan. Not so strong now, huh? Where is Gamora? +No, bullshit. Where is she? +Good. +...What? +Tell me she's lying. ASSHOLE! TELL ME YOU DIDN'T DO IT!!! +No, you didn't… No, you didn't… NO, YOU DIDN'T!!! + +Where is he?! +Did we just lose? +Aw, man. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Proxima Midnight.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Proxima Midnight.txt new file mode 100644 index 0000000..88a51f9 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Proxima Midnight.txt @@ -0,0 +1,8 @@ +Father, we will not fail you. +Get up. +You'll never get the chance again. +You will pay for his life with yours. Thanos will have that stone. +We... have blood to spare. +She's on the field. Take it. +He'll die alone. As will you. +Euuyaaah! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Red Skull.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Red Skull.txt new file mode 100644 index 0000000..08cadbc --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Red Skull.txt @@ -0,0 +1,6 @@ +A lifetime ago, I, too, sought the stones. I even held one in my hand. But it cast me out, banished me here. Guiding others to a treasure I cannot possess. +What you seek lies before you. As does what you fear. +The price. Soul hold a special place among the Infinity Stones. You might say it has a certain wisdom. +To ensure that whoever possesses it... Understands its power... The stone demands a sacrifice. +In order to take the stone you must lose that which you love. A soul...For a soul. +They're not for him. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Rocket.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Rocket.txt new file mode 100644 index 0000000..ed3a485 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Rocket.txt @@ -0,0 +1,48 @@ +Why are we doing this again? +I get that, but why are we doing it? +Exactly! +Language! +Ever since you got a little sap, you're a total d-hole. Keep it up, and I'm gonna smash that thing to pieces! +Looks like we're not getting paid. +Wipers! Wipers! Get it off! +Who are you kidding, Quill? You're one sandwich away from fat. +You know you can't eat dumbbells, right? +Quill. Are you making your voice deeper? +Nidavellir is real? Seriously? I mean, that place is a legend. They make the most powerful, horrific weapons to ever torment the Universe. I would very much like to go there, please. +Rabbit? +You're very perceptive. +Lemme just ask the captain. Oh, wait a second, it's me! Yeah, I'll go. +Go sit down. +Is it weird that I wanna do it even more now? +I got it figured out. We got two ships, and a large assortment of morons. So me and Groot will go with the pirate-angel here, and the morons will go to Knowhere to try and stop Thanos. Cool? Cool. +You know, Quill, you shouldn't talk that way to your captain, Quill. Come on, Groot. Put that game down, you'll rot your brain. +Tinkle in the cup. We're not looking. What's there to see? What's a twig? Everybody's seen a twig. +You speak Groot? +Okay, time to be the captain. So, dead brother, huh? Yeah, that can be annoying. +And you said your sister and your dad? +Still got a mom, though? +A best friend? +Are you sure you're up to this particular murder mission? +Yeah, but this Thanos we're talking about...He's the toughest there is. +Yeah, he has. +Better be some hammer. +And what if you're wrong? +I could lose a lot. Me personally. I could lose a lot. Okay. If fate does want you to kill that crapsack... You're gonna need more than one stupid eyeball. +What's it look like? Some jerk lost a bet with me on on Contraxia. +He gave me 100 credits. I snuck in later that night and stole his eye. +Hmm. Huh? Oh. I would've washed that. The only way I could sneak it off Contraxia was up my...Hey, we're here! +It ain't the eye. +I hope these dwarves are better at forging than they are cleaning. Maybe they realized they live in a junk pile in the middle of space. +You said Thanos had a gauntlet, right? +Look anything like that? +This is plan? We're gonna hit him with a brick? +That's a bit much. +I don't think you get the scientifics here. These rings are gigantic. You wanna get them moving, you're gonna need something a lot bigger to yank 'em loose. +Leave that to you? Buddy, you're in space. All you got is a rope and a- +Nnnyah! +"Damn it"? What's "damn it"? +Thor! Say something. Come on. Thor, you okay? +I think he's dying! +Come and get some, space dogs! Come on, get some, get some! Come on, get some! How much for the gun? +How much for the arm? Oh, I'll get that arm. +No.... No. No. No. No! Groot... no. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Sam Wilson.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Sam Wilson.txt new file mode 100644 index 0000000..497f06e --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Sam Wilson.txt @@ -0,0 +1,9 @@ +Can you stand? +Where to, Cap? +Yeah, well, the hotels weren't exactly five star. +This is awkward. +I hope you're right about this, Cap. Or we're gonna land a lot faster than you want to. +Hey, Cap, we got a situation here. +You seen the teeth on those things? +I'm doing it. +Guys, we got a Vision situation here. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Secretary Ross.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Secretary Ross.txt new file mode 100644 index 0000000..14257b3 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Secretary Ross.txt @@ -0,0 +1,8 @@ +Still no word from Vision? +On a stolen quinjet with four of the world's most wanted criminals. +My God, Rhodes, your talent for horseshit rivals my own. +I remember your signature on those papers, Colonel. +You have second thoughts? +You got some nerve. I'll give you that. +The world's on fire. And you think, all is forgiven? +Arrest them. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Shuri.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Shuri.txt new file mode 100644 index 0000000..d2961cc --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Shuri.txt @@ -0,0 +1,6 @@ +Whoa. The structure is polymorphic. +Why didn't you just reprogram the synapses to work collectively? +I'm sure you did your best. +Yes, but there are more than two trillion neurons here. One misalignment could cause a cascade of circuit failures. It will take time, brother. +As long as you can give me. +We've barely begun, brother. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Steve Rogers.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Steve Rogers.txt new file mode 100644 index 0000000..d7afea6 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Steve Rogers.txt @@ -0,0 +1,25 @@ +Let's get you on the jet. +Home. +Mr. Secretary. +I'm not looking for forgiveness. And I'm way past asking for permission. Earth just lost her best defender. So we're here to fight. And if you wanna stand in our way... we'll fight you, too. +You too, Rhodey. +Ant-Man. +But it should. We don't trade lives, Vision. +I know somewhere. +Drop to 2600, heading 0-3-0. +Seems like I'm always thanking you for something. +How you been, Buck? +How long? +Wanda, as soon as the stone's out of his head... you blow it to hell. +That's not gonna happen. +Not exactly. +Them we better keep 'em in front of us. +New haircut? +I am Steve Rogers. +Somebody get to Vision! +Get outta here! Go! +I thought I told you to go. +Everyone, on my position. We have incoming. +Eyes up. Stay sharp. +Where'd he go? Thor... where'd he go? +.... Oh, God. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Stonekeeper.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Stonekeeper.txt new file mode 100644 index 0000000..1c6f069 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Stonekeeper.txt @@ -0,0 +1,4 @@ +Welcome, Thanos, son of A'lars. Gamora, daughter of Thanos. +It is my curse to know all who journey here. +You should know... it extracts a terrible price. +We all think that at first. We are all wrong. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/T'Challa.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/T'Challa.txt new file mode 100644 index 0000000..b862173 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/T'Challa.txt @@ -0,0 +1,18 @@ +And the Border Tribe? +Send word to the Jabari as well. M'Baku likes a good fight. +This one may be tired of war. But the White Wolf has rested long enough. +On its way. +And what did you imagine? +Uh, we don't do that here. So how big of an assault can we expect? +You will have my King's Guard, the Border Tribe, the Dora Milaje, and... +We will hold them off. +Evacuate the city. Engage all defense procedures. And get this man a shield. +Thank you for standing with us. +You are in Wakanda now. Thanos will have nothing but dust and blood. +We open the barrier. On my signal, open North-West Section Seventeen. +On my signal. +WAKANDA FOREVER! Now! +How much longer, Shuri? +You might want to pick up the pace. +Fall back! Fall back now! +Up, General. Up! This is no place to die. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thanos.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thanos.txt new file mode 100644 index 0000000..9aa54d2 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thanos.txt @@ -0,0 +1,76 @@ +I know what it's like to lose. To feel so desperately that you're right... yet to fail, nonetheless. It's frightening. Turns the legs to jelly. I ask you, to what end? Dread it. Run from it. Destiny arrives all the same. And now, it's here. Or should I say... I am. +The Tesseract, or your brother's head. I assume you have a preference. +Your optimism is misplaced, Asgardian. +That was a mistake. +There are two more Stones on Earth. Find them, my children, and bring them to me on Titan. +If you consider failure experience. +"Undying." You should choose your words more carefully. +No resurrections this time. +What's wrong, little one? +What's your name? +You're quite the fighter, Gamora. Come. Let me help you. Here. You try. +Concentrate. There! You've got it. +Everyone in the Galaxy knows you'd sell your own brother if you thought it would add the slightest trinket to your pathetic collection. +I know you have the Reality Stone, Tivan. Giving it to me will spare you a great deal of suffering. +I imagine it's like breathing for you. +So you do understand. Not even you would surrender something so precious. +Then you're more of a fool than I took you for. Last chance, charlatan. Where's the Stone? +Why? Why you? Daughter… +Is it sadness I sense in you, daughter? In my heart, I knew you still cared. But one ever knows for sure. Reality is often disappointing. +That is, it was. Now… Reality can be whatever I want. +I counted on it. There's something we need to discuss, little one. +Ah, the boyfriend. +Oh, daughter. You expect too much from him. She's asked, hasn't she? Do it. Do it! +I like you. +I thought you might be hungry. +So I've been told. Even so. I'd hoped you'd sit on it one day. +You told me that too. Every day. For almost twenty years. +I saved you. +Going to bed hungry, scrounging for scraps. Your planet was on the brink of collapse. I'm the one who stopped that. Do you know what's happened since then? The children born have known nothing but full bellies and clear skies. It's a paradise. +A small price to pay for salvation. +Little one, it's a simple calculus. This universe is finite, its resources finite. If life is left unchecked, life will cease to exist. It needs correction. +I'm the only one who knows that. At least, I'm the only one with the will to act on it. For a time... you had that same will... as you fought by my side. Daughter. +And in doing so, made you the fiercest woman in the galaxy. That's why I trusted you to find the Soul Stone. +I am disappointed. But not because you didn't find it. But because you did. And you lied. +Some time ago, your sister snuck aboard this ship to kill me. +And very nearly succeeded. So I brought her here. To talk. +You're strong. Me. You're generous. Me. But I never taught you to lie. That's why you're so bad at it. Where is the Soul Stone? +Show me. +The stone had better be up there...For your sister's sake. +You know us? +Where's the Soul Stone? +I am prepared. +How is it you know this place so well? +What's this? +Tell me what it needs. +Of what? + +I ignored my destiny once. I cannot do that again. Even for you. I'm sorry, little one. +I take it the Maw is dead. This day extracts a heavy toll. Still, he accomplished his mission. +And where do you think he brought you? +It was. And it was beautiful. Titan was like most planets. Too many mouths, and not enough to go around. And when we faced extinction, I offered a solution. +But at random, dispassionate, fair to rich and poor alike. They called me a madman. And what I predicted came to pass. +I'm a survivor. +With all six stones, I could simply snap my fingers, and they would all cease to exist. I call that...mercy. +I finally rest... and watch the sun rise on a grateful universe. The hardest choices require the strongest wills. +Our? +Insect! +Well, well. +It would've been a waste of parts! +My... Gamora...? +I... had... to. +You're full of tricks, wizard. +Yet you never once used your greatest weapon. A fake. +Stark. +I do. You're not the only one cursed with knowledge. +Come on! +All that for a drop of blood. +You have my respect, Stark. When I'm done, half of humanity will still be alive. I hope they remember you. +No tricks. +One to go. +I understand, my child. Better than anyone. +Today, I lost more than you can know. But now is no time to mourn. Now is no time at all. +You should've... You.... You should've gone for the head. +Daughter? +Yes. +... Everything. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thor.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thor.txt new file mode 100644 index 0000000..03d09a3 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Thor.txt @@ -0,0 +1,76 @@ +You talk too much. +We don't have the Tesseract. It was destroyed on Asgard. +You really are the worst brother. +NO!!! You're going to die for that! +No… Loki… +Who the hell are you guys? +You seem to know a great deal about Thanos. +Your father killed my brother. +Families can be tough. Before my father died, he told me I had a half-sister...that he imprisoned in Hel. Then she returned home, and stabbed me in the eye, so... I had to kill her. It's life, isn't it, I guess. Goes round and round and... I feel your pain. +I need a hammer, not a spoon… How do I open this thing? Is there some sort of a four-digit code maybe… Maybe a birth date or something… +Taking your pod. +Are you mocking me? +Stop it. You did it again. +Would you stop doing that? He's doing it first. +Knowhere. +Not anymore. +Because for years, the Reality Stone has been safely stored, there with a man we call the Collector. +Or a genius. +There's six stones out there. Thanos already has the Power Stone because he stole it last week, when he decimated Xandar. He stole the Space Stone from me when he destroyed my ship and slaughtered half my people. The Time and Mind Stones are safe on Earth. They're with the Avengers. +They're Earth's Mightiest Heroes. +...He may be on the team. I don't know. Haven't been there in a while. As for the Soul Stone, well, no one's ever seen that. No one even knows where it is. Therefore, Thanos can't get it. Therefore, he's going to Knowhere. Hence, he'll be getting the Reality Stone. You're welcome. +Wrong. Where we have to go, is Nivadellir. +All words are made up. +The rabbit is correct, and clearly the smartest among you. +Only Eitri the dwarf king can make me the weapon I need. I assume you're the captain, sir? +You seem like a noble leader. Will you join me on my quest to Nidavellir? +Wonderful. +Quiet! +The Thanos killing kind. +No. You simply lack the strength to wield them. Your bodies will crumble as your minds collapse into the madness. +A little bit. Yeah. +He already is. +So cool. +I bid you farewell and good luck, morons. Bye. +Tree, pour what's in the cup out in space, and go in the cup again. +Yes, they taught it on Asgard. It was an elective. +You'll know when we're there. Nivadellir's forge harnesses the power of a blazing neutron star. It's the birth place of my hammer. It's truly awesome. +Well, he's been dead before, but this time I think it really might be true. +Both dead. +Killed by a dark elf. +Stabbed through the heart. +Absolutely. Rage, vengeance, anger, loss, regret...They're all tremendous motivators. They really clear the mind. So I'm good to go. +Well, he's never fought me. +He's never fought me twice. And I'm getting a new hammer, don't forget. +You know, I'm 1,500 years old. I've killed twice as many enemies as that, and every one would have rather killed me, but none succeeded. I'm only alive because fate wants me alive. Thanos is the latest in a long line of bastards and he will be the latest to feel my vengeance. Fate wills it so. +If I'm wrong then... what more could I lose? +What's this? +He gave you his eye? +Thank you, sweet rabbit. +I don't think this thing works. Everything seems dark. +Something's wrong. The star's gone out. And the rings are frozen. +This forge hasn't gone dark in centuries... +Yes. Why? +Go back to the pod. +Eitri, wait! Stop! +What happened here? +Asgard is destroyed. Eitri, the glove. What did you do? +Eitri, this isn't about your hands. Every weapon you've designed, every axe, hammer, sword...It's all inside your head. Now I know all hope feels lost. Trust me, I know. But together, you and I, we can kill Thanos. +Did it have a name? +So how do we make it? +Rabbit, fire up the pod. +Leave that to me. +More... power... rabbit! +That's Nivadellir! +What? +How long will it take to heat? +I'm gonna hold it open. +So is facing Thanos without that axe. +Allfathers, give me strength. +Only if I die. +BRING ME THANOS!!! +Notice you've copied my beard. +By the way, this is a friend of mine, Tree. +I told you. You'd die for that! +NO! +What'd you do? WHAT'D YOU DO?! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Tony Stark.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Tony Stark.txt new file mode 100644 index 0000000..b51e22f --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Tony Stark.txt @@ -0,0 +1,127 @@ +Slow down, slow down. I'm totally not kidding. +No, I'm not. +Look, you know how you're having a dream, and in the dream you gotta pee? +Okay, and then you're like, "Oh my god, there's no bathroom, what am I gonna do?" "Oh! Someone's watching." "I'm gonna go in my pants." +Yes. +Right! That's the point I'm trying to make. Apropos of that, last night, I dreamt, we had a kid. So real. We named him after your eccentric uncle. Uh, what was his name? +Morgan! Morgan. +Expecting. +Yes? +I had a dream about it. It was so real. +I'm glad you brought this up, 'cause it's nothing. It's just a housing unit for nano particles. +No, no, it's an attachment, it's not a- +I know. I had the surgery. I'm just trying to protect us. The future usses, and that's it. Just in case there's a monster in the closet, instead of, you know... +You know me so well. You finish all my sentences. +Yeah. You know what there should be? No more surprises. We're gonna have a nice dinner tonight. Show off this Harry Win-stone. Right? And we should have no more surprises. Ever. I should promise you. +I will. +I'm sorry, you giving out tickets or something? +And who's "we"? +Bruce. +You okay? +Tell me his name again. +This is it. What's our timeline? +Did you seriously just say "hitherto undreamt of"? +Is that what this is...? +I'm going to allow that. If Thanos needs all six, why don't we just stick this one down the garbage disposal? +And I swore off dairy, but then, Ben & Jerry's named a flavor after me, so... +It's not bad. +Whatever. Point is Things change. +And still conversely, it may also be his best chance against us. +What is your job exactly, besides making balloon animals? +Yeah, that's the... thing. +Two weeks ago, Vision turned off his transponder. He's offline. +I didn't lose him. He's more than that. He's evolving. +Shit. Probably Steve Rogers. +Maybe. But... sighs +It's not that easy. God, we haven't caught up in a spell, have we? +The Avengers broke up. We're toast. +Cap and I fell out hard. We're not on speaking terms. +Say, Doc, you wouldn't happen to be moving your hair, would you? +You okay? +Help him! Wong, Doc. +F.R.I.D.A.Y., what am I looking at? +Hey! You might wanna put that Time Stone in your back pocket, Doc! +F.R.I.D.A.Y., evac anyone south of 43rd Street, notify first responders. +I'm sorry, Earth is closed today. You better pack it up and get outta here. +It means get lost, Squidward! +Banner, you want a piece? +That's right. +Been a while. Good to have you, buddy. +Where's your guy? +There's no time for a thing. +That's the thing right there. Let's go. +Dude, you're embarrassing me in front of the wizards. +It's okay. Hey, stand down. Keep an eye on him. Thank you. +It's nano-tech. You like it? A little somet- +Gotta get that stone outta here, now. +Exactly. Bye. +Really, really good. Really good. Do you plan on helping out? +Hammer. +Kid, where'd you come from? +He's from space. He came here to steal a necklace from a wizard. +Kid, that's the wizard. Get on it. +Hang on, kid. +Unlock 17-A. Pete, you gotta let go. I'm gonna catch you. +You're too high up. You're running out of air. +Happy trails, kid. F.R.I.D.A.Y, send him home. +Yeah, I'm fine. I just think we might have to push our 8 30 res. +Just 'cause I'll... probably not make it back for a while. +Yeah. +Honey, I'm sorry. I'm sorry, I don't know what to say. +Pep… +Wow you're a seriously loyal piece of outerwear, aren't you? +What the- +You should not be here. +I don't wanna hear it. +And now I gotta hear it. +What did you just say? +Yeah. Right where I don't want you to be. This isn't Coney Island. This isn't a field trip. It's one-way ticket. You hear me? Don't pretend like you thought this through. You could not have possibly thought this through. +You could not have possibly thought this through. +Come on. We got a situation. See him down there? He's in trouble. What's your plan? Go. +I gotta tell you, he's not really my friend. Saving his life is more a professional courtesy. +Yeah, but the kid's seen more movies. +Yeah. Now he wants to run. Great plan. +And I want you to thank me now. Go ahead, I'm listening. +Who just saved your magical ass? Me. +Admit it. You should have ducked out when I told you to. I tried to bench you. You refused. +And due to that fact, we're now in a flying doughnut billions of miles away from Earth with no backup. +No. You're a stowaway. The adults are talking. +This ship is self-correcting its course. Thing's on autopilot. +Yeah? +Yeah I heard you. I'm thinking...I'm not so sure we should. +No. It's you who doesn't understand, that Thanos has been inside my head for six years since he sent an army to New York and now he's back! And I don't know what to do. So I'm not so sure if it's a better plan to fight him on out turf or his but you saw what they did, what they can do. At least on his turf, he's not expecting it. So I say we take the fight to him. Doctor. Do you concur? +Nice. Good. Moral compass. We're straight. Alright, kid. You're an Avenger now. +I don't think this rig has a self-park function. Get your hand into this steering gimbal. Close those around it. You understand? +This was meant for one big guy, so we gotta to move at the same time. +You alright? That was close. I owe you one. +I don't wanna hear another single pop culture out of you for the rest of the trip. You understand? +Yeah, I'll do you one better. Who's Gamora? +Let's do it! You shoot my guy, I blast him. Let's go! +You're from Earth? +Yeah, that's on Earth, dip-shit. What are you hassling us for? +You know Thor? +Yeah, we got one advantage. He's coming to us. We'll use it. All right, I have a plan. Or at least the beginnings of one. It's pretty simple. We draw him in, pin him down, get what we need. Definitely don't wanna dance with this guy. We just want the gauntlet. +Are you yawning? In the middle of this, while I'm breaking it down? Huh? Did you hear what I said? +Okay, Mr. Clean is on his own page. +Alright, just get over here, please. Mr. Lord, can you get your folks to circle up? +We gotta coalesce. 'Cause if all we come at him with is a plucky attitude.... +What dance-off? +Don't encourage this, alright? +We're getting no help from Flash Gordon here. +Your math is blowing my mind. +Strange, we alright? +You're back. You're alright. +How many did we win? +Piece of cake, Quill. +Is he under? Don't let up. +Parker, help! Get over here. She can't hold him much longer. Let's go. +Okay, Quill, you gotta cool it right now, you understand? +Don't, don't, don't engage, we've almost got this off! +Hey, stop! Hey, stop! Stop! Hey, stop! Stop! +You throw another moon at me, and I'm gonna lose it. +You know me? +My only curse is you. +Don't..! +Why would you do that? +Steady, Quill. +You're all right. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Vision.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Vision.txt new file mode 100644 index 0000000..ecaa792 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Vision.txt @@ -0,0 +1,31 @@ + +It's as if it's speaking to me. +I don't... I don't know. But something... +Tell me what you feel. +What if I miss that train? +What if I missed all the trains? What if this time, I didn't go back? +I'd rather give it to you. +Not to each other. Wanda… For two years, we've stolen these moments, trying to see if this could work. And... I don't know. You know what, I'm just gonna speak for myself. - I, I... I think... +It works. +Then stay. Stay with me. +Or not. If I'm overstepping… +What the stone was warning me about. I have to go. +Wanda, I… +The blade. It stopped me from phasing. +It isn't supposed to be. My systems are failing. I'm beginning to think... we should have stayed in bed. +Please. Please leave. +Please. +Thank you, Captain. +No, we have to destroy it. I've been giving a good deal of thought to this entity in my head, about its nature. But also, its composition. I think if it were exposed to a sufficiently powerful energy source, something, very similar to its own signature, perhaps… Its molecular integrity could fail. +Eliminating the stone is the only way to be certain that Thanos can't get it. +Only you have the power to pay it. Thanos threatens half the Universe. One life cannot stand in the way of defeating him. +Captain, 70 years ago, you laid down your life to save how many millions of people. Tell me, why is this any different? +It's too late. We need to destroy the stone now. +We don't trade lives, Captain. +He's here. +Wanda. It's time. +They can't stop him, Wanda, but we can. Look at me. You have the power to destroy the stone. +You must do it. Wanda, please. We are out of time. +Yes, you can. You can. If he gets the stone, half the universe dies. +It shouldn't be you, but it is. It's all right. You could never hurt me. I just feel you. +It's all right. It's all right. I love you. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wanda Maximoff.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wanda Maximoff.txt new file mode 100644 index 0000000..0ea07bc --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wanda Maximoff.txt @@ -0,0 +1,32 @@ +Vis? Is it the stone again? +What does it say? +I just feel you. +So there's a 10 AM to Glasgow to give us more time together before you went back. +There is an 11. +You gave Stark your word. +There are people who are expecting me too, you know. We both made promises. +It works. +What are they? +No, Vision. Vision, if that's true… Then maybe going isn't the best idea. +Vision! +Is that even possible? +Vis! +Hands off. +Come on. Come on. Come on, you gotta get up. You gotta get up. Come on. Hey. Hey. We have to go. +You asked me to stay... I'm staying. +Get up. +I'm sorry. We just wanted time. +And they can clearly find us. +And you, with it. We're not having this conversation. +That's too high a price. +You're saying Vision isn't just the stone? +Can you do it? +I will. +On my way. +Are you okay? What? What is it? +No. +Don't. +I can't. +It's not fair. +You could never. +NO! diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wong.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wong.txt new file mode 100644 index 0000000..08edd76 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Wong.txt @@ -0,0 +1,10 @@ +Attachment to the material is detachment from the spiritual. +Oh, wait, wait, wait, I think I have 200. +Rupees. +Uh, buck and a half. +I wouldn't say no to a tuna melt. +From the dawn of the universe, there was nothing. Then, boom! The Big Bang sent six elemental crystals, hurtling across the virgin universe. These Infinity Stones each control an essential aspect of existence. +We swore an oath to protect the Time Stone. With our lives. +"A Hunka-Hulka Burning Fudge" is our favorite. +I have him. +The Time Stone's been taken. The Sanctum remains unguarded. What will you do? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Young Gamora.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Young Gamora.txt new file mode 100644 index 0000000..aa0ddfa --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Young Gamora.txt @@ -0,0 +1,4 @@ +Mother! Where's my mother?! +Mother! +My mother. Where is my mother? +Gamora. diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Your Bus Driver, Stan Lee.txt b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Your Bus Driver, Stan Lee.txt new file mode 100644 index 0000000..4aaca73 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/Your Bus Driver, Stan Lee.txt @@ -0,0 +1 @@ +What's the matter with you kids? You've never seen a spaceship before? diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/get-character-lines.py b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/get-character-lines.py new file mode 100644 index 0000000..9a6acd1 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/get-character-lines.py @@ -0,0 +1,29 @@ +chars = [] +file_handles = {} +script = open("script-processed",'r') +for line in script.readlines(): + line.strip() + if line=="": + continue + else: + try: + if ":" not in line: + continue + character = line.split(":")[0] + newline = " ".join(line.split(":")[1:]) + if len(character.split())>2: + print(line,character) + input() + #print(line,character) + #input() + if character=="": + continue + elif character in chars: + file_handles[character].write("{}\n".format(newline.strip())) + else: + chars.append(character) + file_handles[character] = open(character+".txt",'w') + file_handles[character].write("{}\n".format(newline.strip())) + except: + print("Unknown error. Skipping line...") +#print("Files written for:\n{}".format("\n".join(chars))) diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/process-script.py b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/process-script.py new file mode 100644 index 0000000..1041c7e --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/process-script.py @@ -0,0 +1,8 @@ +import re +script_processed = open("script-processed",'w') +with open("script-raw",'r') as script_raw: + for line in script_raw.readlines(): + x = re.sub("[\(\[].*?[\)\]]", "", line) + x = x.strip() + script_processed.write("{}\n".format(x)) +script_processed.close() diff --git a/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/universal-sentence-encoder.py b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/universal-sentence-encoder.py new file mode 100644 index 0000000..d125cb6 --- /dev/null +++ b/Universal-Sentence-Encoder/Avengers-Similarity-Analysis/universal-sentence-encoder.py @@ -0,0 +1,91 @@ +import tensorflow as tf +import tensorflow_hub as hub +import matplotlib.pyplot as plt +import numpy as np +import os +import pandas as pd +import re +import seaborn as sns + +module_url = "https://tfhub.dev/google/universal-sentence-encoder/2" + +print("Loading model from {}".format(module_url)) +embed = hub.Module(module_url) + +text_files = [f for f in os.listdir() if f.endswith(".txt")] + +#characters = [i[:-4] for i in text_files] +character_lines = {} + +def plot_similarity(labels, features, rotation): + corr = np.inner(features, features) + sns.set(font_scale=1.2) + g = sns.heatmap(corr,\ + #xticklabels=labels,\ + #yticklabels=labels,\ + vmin=0,\ + vmax=1,\ + cmap="YlOrRd") + #g.set_xticklabels(labels, rotation=rotation) + g.set_title("Semantic Textual Similarity") + #figure = g.get_figure() + plt.tight_layout() + plt.savefig("Avenger-semantic-similarity.png") + plt.show() + +def run_and_plot(session_, input_tensor_, messages_, labels_, encoding_tensor): + message_embeddings_ = session_.run(encoding_tensor, feed_dict={input_tensor_: messages_}) + plot_similarity(labels_, message_embeddings_, 90) + +print("Reading data from files...") + +for fname in text_files: + character = fname[:-4] + print("Reading file for {}".format(character)) + character_line = "" + with open(fname,'r') as g: + for line in g.readlines(): + character_line+=line.strip() + if character_line == "": + continue + character_lines[character]=character_line + +# Select characters +print("================================") +print("Characters found:") +for i in range(len(character_lines.keys())): + print("{}: {}".format(i,list(character_lines.keys())[i])) +print("================================") +print("Enter character index to be used:") +print("Enter q or Q to stop.") +flag = True +char_index = "" +final_character_lines = {} +characters = list(character_lines.keys()) +while flag: + char_index = input() + if char_index.upper() == 'Q': + flag=False + else: + char_index = int(char_index) + final_character_lines[characters[char_index]]=character_lines[characters[char_index]] + +#character_lines = final_character_lines + +print("================================") +print("Characters selected:") +for i in range(len(character_lines.keys())): + print("{}: {}".format(i,list(character_lines.keys())[i])) +print("================================") + + +similarity_input_placeholder = tf.placeholder(tf.string, shape=(None)) +similarity_message_encodings = embed(similarity_input_placeholder) +#similarity_labels_placeholder= tf.placeholder( +with tf.Session() as session: + session.run(tf.global_variables_initializer()) + session.run(tf.tables_initializer()) + run_and_plot(session, similarity_input_placeholder,\ + list(character_lines.values()),\ + list(character_lines.keys()),\ + similarity_message_encodings) diff --git a/Universal-Sentence-Encoder/README.md b/Universal-Sentence-Encoder/README.md new file mode 100644 index 0000000..be90a51 --- /dev/null +++ b/Universal-Sentence-Encoder/README.md @@ -0,0 +1,30 @@ +# Universal Sentence Encoder +This repository contains the scripts for Universal Sentence Encoder. For more details, refer to [the post](https://www.learnopencv.com/universal-sentence-encoder/). + +## Instructions +First install the dependencies. + +``` +pip3 install --quiet "tensorflow>=1.7" +pip3 install --quiet tensorflow-hub +pip3 install --quiet seaborn +``` + +To run the **message encoder example**, use: +`python3 embedMessages.py` + +To run the **Semantic Similarity Analysis on Avengers:Infinity Warcast**, use: +`cd Avengers-Similarity-Analysis` + +`python3 process-script.py` +This will process the raw script and remove all the text contained in brackets. + +Next, we have to extract the dialogues of the characters. + +`python3 get-character-lines.py` + +Finally, use the Universal Sentence Encoder for running Semantic Similarity Analysis. + +`python3 universal-sentence-encoder.py` + +This will display and save the Similarity Matrix as **Avenger-semantic-similarity.png**.