id
stringlengths 14
16
| text
stringlengths 45
2.05k
| source
stringlengths 53
111
|
---|---|---|
004f5e748bf9-547 | RON STALLWORTH\r\n ...Mr. Davis, a favor to ask.\r\n Nobody\'s gonna believe me when I tell\r\n them I was your Bodyguard.\r\n \r\n Ron holds up a Polaroid Camera.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n Care to take a Photo with me?\r\n \r\n Davis laughs, looking around the table.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-548 | table.\r\n \r\n DEVIN DAVIS\r\n I don\'t see any harm in that. Hey\r\n Jesse... why don\'t you get in here\r\n too?\r\n \r\n Jesse Nayyar, equally amused, walks over. Flip is already out\r\n of his Seat, walking to Ron. Ron glances over seeing\r\n \r\n FELIX, WALKER AND CONNIE AT THE BACK DOOR (RON\'S POV)\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-549 | \r\n Connie has her purse and Walker hands her a gym bag. Felix\r\n pecks her on the lips. She exits the steakhouse with the gym\r\n bag.\r\n \r\n CLOSE - RON\r\n \r\n then turns to Flip.\r\n \r\n RON STALLWORTH\r\n You mind taking it, Sir?\r\n \r\n ANGLE - ROOM\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-550 | \r\n Flip nods and Ron hands him The Polaroid Camera.\r\n \r\n Ron walks back and stands in between Davis, THE GRAND WIZARD\r\n and Jesse, THE GRAND DRAGON.\r\n RON (CONT\'D)\r\n One... Two... Three!\r\n \r\n Right as the Camera Flashes, Ron drapes his arms around both\r\n Davis and Jesse, pulling them in real close. The Polaroid\r\n clicks and spits out the Photo instantly.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-551 | \r\n Davis is startled for a brief second... then it all happens\r\n in a FLASH.\r\n \r\n Davis and Ron spring toward Flip, each making a Mad Dash for\r\n the Photo. Ron grabs it first. Davis lunges to grab the Photo\r\n from Ron\'s hands but Ron yanks it away. Davis is up in Ron\'s\r\n Face.\r\n \r\n DEVIN DAVIS\r\n Nigger, What the Fuck did you just\r\n do?\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-552 | \r\n RON STALLWORTH\r\n If you lay one Finger on me, I\'ll\r\n arrest you for assaulting a Police\r\n Officer. That\'s worth about Five\r\n Years in Prison. Try me. See if I\'m\r\n playing.\r\n \r\n The Room falls into Dead Silence. Klansmen mouths hang open,\r\n watching their Leaders threatened by a DETECTIVE NIGGER.\r\n Davis gives Ron the most vicious look | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-553 | Davis gives Ron the most vicious look imaginable.\r\n \r\n Ron stares back. It\'s a SHOWDOWN. Several Men in the Room\r\n have their hands at their Waists, seconds away from drawing\r\n their Guns.\r\n \r\n Ron can do only one thing: he smiles.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n Thanks for the Photo, Mr. Davis. Big\r\n Fan. God Bless WHITE AMERICA.\r\n \r\n Davis shakes his Head in | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-554 | Davis shakes his Head in Disgust.\r\n \r\n Bikers and others surround Ron. Flip looks wary knowing\r\n something is up. He gets in Ron\'s face, threatening.\r\n \r\n FLIP\r\n Boy you get ya\' ass out NOW!\r\n \r\n Ron breaks off from the roomful of disdain cutting through\r\n the watching Crowd pushing past Bodies heading toward the\r\n front door. Suddenly, Ron\'s arm is grabbed...\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-555 | \r\n FELIX (O.S.)\r\n Where\'s your Patrice?\r\n Ron turns finding Felix holding his arm.\r\n \r\n FELIX\r\n Detective Stallworth!\r\n Ron JERKS his arm away heading to the exit.\r\n \r\n EXT. STEAKHOUSE/PARKING LOT - DAY\r\n \r\n Ron rushes through the Lot | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-556 | Ron rushes through the Lot hopping in his unmarked Car.\r\n \r\n INT. RON\'S CAR - DAY\r\n Ron throws the Car into gear. He Yells into his Radio.\r\n \r\n RON STALLWORTH\r\n Attention all Units. Be on the\r\n lookout for a White Pickup with a\r\n "White Pride" Bumper Sticker. License\r\n plate: KE-4108.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-557 | \r\n Ron guns it down the street.\r\n \r\n RON STALLWORTH\r\n Request Backup. FREEDOM HOUSE.\r\n \r\n INT. STEAKHOUSE - DAY\r\n \r\n Walker and Felix sit on both sides of Flip. Flip grins at\r\n them, then does a double take at Walker, who stares at him.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-558 | \r\n FELIX\r\n Ron, I believe you know my friend.\r\n \r\n Flip stares at Walker playing it totally cool.\r\n \r\n FLIP\r\n No, I don\'t believe we\'ve ever met.\r\n \r\n WALKER\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-559 | WALKER\r\n It\'s been a few years.\r\n \r\n FLIP\r\n No, sorry, I can\'t place you.\r\n \r\n DEVIN DAVIS\r\n Did you Guys go to School together?\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-560 | WALKER\r\n No, I went to a Private School in\r\n Leavenworth, Kansas.\r\n \r\n FELIX\r\n Isn\'t that where the Prison is?\r\n WALKER\r\n Matter a fact it is.\r\n \r\n Walker looks at Flip, | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-561 | Walker looks at Flip, who says nothing.\r\n \r\n FELIX\r\n You know something about that. Don\'t\r\n you, Flip?\r\n \r\n Felix\'s eyes burn into Flip, who doesn\'t flinch. Suddenly,\r\n Josh the Waiter interrupts.\r\n \r\n JOSH\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-562 | JOSH\r\n There\'s an emergency phone call in\r\n the Lobby for a -- Felix Kendrickson.\r\n \r\n Felix rises.\r\n \r\n FELIX\r\n Don\'t say another word.\r\n I\'ll be right back. Flip.\r\n \r\n Felix walks off. Walker watches him leave turning to Flip,\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-563 | watches him leave turning to Flip,\r\n who plays it cool. A confused Davis observes it all.\r\n \r\n EXT. PHONE BOOTH - DAY - INTERCUT\r\n \r\n ANGLE - FREEDOM HOUSE\r\n \r\n Across the street from the Freedom House, a nervous Connie is\r\n on the phone clearly rattled.\r\n \r\n CONNIE\r\n Jesus! They\'ve got Cops | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-564 | Jesus! They\'ve got Cops everywhere\r\n here! Somebody tipped them off.\r\n \r\n A Police Cruiser drives past.\r\n \r\n CONNIE (CONT\'D)\r\n My God there goes another one!\r\n \r\n 154A INT. STEAKHOUSE - LOBBY - DAY - INTERCUT\r\n \r\n Felix talks to her from the Lobby of The Steakhouse trying | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-565 | to her from the Lobby of The Steakhouse trying to\r\n keep their conversation private.\r\n \r\n FELIX\r\n All right, calm down, we planned for\r\n this. We\'ll go to Plan B. Okay?\r\n \r\n CONNIE\r\n Okay... Plan B.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-566 | FELIX\r\n You can do this. All right. I\'ll be\r\n right there.\r\n CONNIE\r\n All right... Love You.\r\n \r\n Dial tone. Felix has already hung up. She hangs up.\r\n \r\n INT. STEAK HOUSE/LOBBY - DAY\r\n \r\n Felix eyes Walker at the table with Flip and Davis. Felix\r\n waves to Walker. Ivanhoe sees Felix and rushes to join them.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-567 | \r\n WALKER\r\n Excuse me Mister Davis.\r\n \r\n Walker reluctantly leaves.\r\n \r\n DEVIN DAVIS\r\n What was all that about? And why did\r\n he keep calling you Flip?\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-568 | FLIP\r\n We were in Prison together. Years\r\n ago. It\'s an inside joke.\r\n \r\n Davis nods, concerned.\r\n \r\n DEVIN DAVIS\r\n I hope everything\'s all right?\r\n \r\n FLIP\r\n Yeah, but I think he may have\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-569 | but I think he may have\r\n violated his Parole. Excuse me...\r\n Flip stands watching Felix and Gang exit the Steakhouse.\r\n \r\n EXT. ACADEMY BOULEVARD - DAY\r\n Ron\'s Car weaves in between Traffic driving like crazy.\r\n \r\n EXT. FREEDOM HOUSE - DAY\r\n \r\n Ron zooms up to Freedom House SCREECHING to a stop! The event\r\n is over. There are a few people outside conversing after the\r\n event. Ron sees Hakeem and jumps out of the car.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-570 | \r\n RON STALLWORTH\r\n Where\'s Patrice???\r\n \r\n HAKEEM\r\n Patrice and Odetta took Mister\r\n Hopkins to his Hotel.\r\n \r\n Ron jumps back in his Ride and burns rubber heading to\r\n Patrice\'s place!\r\n INT. IVANHOE\'S CAR - DAY\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-571 | \r\n Ivanhoe speeds toward Patrice\'s House with Felix in the\r\n passenger seat and Walker hovering over them in the rear.\r\n \r\n OMITTED\r\n \r\n EXT. PATRICE\'S HOUSE - DAY\r\n \r\n Connie drives up. She sits there for a long moment staring at\r\n Patrice\'s House. Connie decides. She gets out of the Car\r\n carrying her purse. She looks like an Avon lady coming to\r\n call. She walks up on Patrice\'s porch looking around. She\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-572 | on Patrice\'s porch looking around. She\r\n CAREFULLY SETS\r\n \r\n CLOSE - HER PURSE\r\n \r\n down by a pillar on the porch and slowly removes the Bomb.\r\n She opens the mailbox to place the Bomb. She nervously flips\r\n the toggle switch when she sees...\r\n \r\n ANGLE - STREET\r\n \r\n Patrice drives up. Flustered, Connie grabs her purse to put\r\n the Bomb back inside while looking at Patrice and Odetta\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-573 | and Odetta\r\n getting out of the Car and getting Groceries from the trunk.\r\n \r\n Patrice talks to Odetta, not noticing Connie. Connie quickly\r\n leaves the porch striding to her car sweating, crazy nervous.\r\n Patrice and Odetta talk, entering her House.\r\n \r\n CLOSE - CONNIE\r\n \r\n briskly moves toward the rear of Patrice\'s Car.\r\n \r\n ANGLE - STREET\r\n \r\n Ron whips around the corner seeing Connie | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-574 | Ron whips around the corner seeing Connie through the\r\n windshield! He SCREECHES to a stop!\r\n \r\n Connie tries to nonchalantly head back to her vehicle.\r\n \r\n Ron jumps out the car yelling!\r\n \r\n RON STALLWORTH\r\n CSPD! Stay where you are!\r\n \r\n Connie looks back at Ron, increasing her pace.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-575 | \r\n RON STALLWORTH(CONT\'D)\r\n Don\'t move!!!\r\n \r\n Connie breaks into a run. Ron dashes after her grabbing her\r\n as she opens the Pick Up Truck door.\r\n RON STALLWORTH (CONT\'D)\r\n Where\'s that Bomb? Did you place it!\r\n \r\n The Two fight as she SCREAMS, scratching and clawing at Ron.\r\n The Fight moves from the Pick Up Truck as he throws her down\r\n on the grass | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-576 | her down\r\n on the grass of a near by lawn, subduing the SCREAMING\r\n Connie.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n Where is it!!!\r\n \r\n Ron reaches back for his handcuffs...\r\n \r\n CSPD OFFICER BRICKHOUSE\r\n Freeze!\r\n \r\n Ron looks right and OFFICER BRICKHOUSE has his Gun pointed at\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-577 | his Gun pointed at\r\n him. Then looks left finding OFFICER MYERS, also White, 30\'s,\r\n has his revolver aimed at him.\r\n \r\n CSPD OFFICER BRICKHOUSE (CONT\'D)\r\n Get off her!\r\n \r\n Ron slowly rises up off Connie, gradually turning to them.\r\n With his hands raised you can see Ron\'s shoulder holster and\r\n 38 CALIBER SNUB-NOSE. Officer Myers sees it!\r\n \r\n CSPD OFFICER | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-578 | CSPD OFFICER MYERS\r\n He\'s got a Gun!\r\n \r\n RON STALLWORTH\r\n I\'m a Cop! I\'m a COP!!!\r\n \r\n Connie springs up from the lawn! Pleading like crazy to the\r\n cops!\r\n \r\n CONNIE\r\n He attacked me! That Nigger attacked\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-579 | That Nigger attacked\r\n me, he tried to Rape me! Arrest him!\r\n \r\n Myers and Brickhouse look at each other, unsure.\r\n \r\n RON STALLWORTH\r\n I\'m Undercover!!!\r\n \r\n CSPD OFFICER BRICKHOUSE\r\n Show me your badge!\r\n \r\n Ron goes to reach in his pocket but the two Officers | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-580 | to reach in his pocket but the two Officers make\r\n aggressive moves with their Guns! Ron catches himself! He\r\n doesn\'t want to get shot! He decides to just tell them.\r\n \r\n RON STALLWORTH\r\n It\'s in my pocket.\r\n CONNIE\r\n You gonna believe this lying Nigger\r\n or me?\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-581 | CSPD OFFICER MYERS\r\n Get on the ground!\r\n \r\n RON STALLWORTH\r\n I\'m a Cop goddammit! She\'s got a\r\n Bomb! She\'s a Terrorist!\r\n \r\n CSPD OFFICER MYERS\r\n Get on the ground NOW!!!\r\n \r\n Ron slowly lowers down to his knees and | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-582 | Ron slowly lowers down to his knees and the two Cops push him\r\n face down on the street! Felix drives up with Ivanhoe and\r\n Walker in the back seat.\r\n \r\n ANGLE - STREET\r\n Felix has pulled up next to Patrice\'s Volkswagen Beetle.\r\n \r\n INT./EXT. CAR - DAY\r\n \r\n FELIX\r\n Gimme\' a detonator.\r\n \r\n Walker unzips his Bag quickly handing a | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-583 | Walker unzips his Bag quickly handing a Detonator to Felix.\r\n \r\n ANGLE - DOWN THE STREET\r\n \r\n Ron yells at the Cops trying to explain!\r\n \r\n RON STALLWORTH\r\n THAT WOMAN HAS A BOMB SHE\'S TRYING TO\r\n BLOW THAT HOUSE UP!\r\n \r\n ANGLE - PATRICE\'S HOUSE\r\n \r\n Patrice hearing the | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-584 | \r\n Patrice hearing the commotion steps out on the porch with\r\n Odetta.\r\n \r\n Ivanhoe sees Patrice on the porch.\r\n \r\n IVANHOE\r\n There she is! Do it!\r\n \r\n ANGLE - DOWN THE STREET\r\n \r\n RON STALLWORTH\r\n PATRICE!\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-585 | PATRICE!\r\n \r\n Officer Myers jabs Ron in the Belly with his Nightstick. Ron\r\n doubles over.\r\n CLOSE - PATRICE\r\n \r\n PATRICE\r\n Ron???\r\n \r\n CLOSE - FELIX\r\n \r\n FELIX\r\n You\'re Dead Black Bitch.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-586 | You\'re Dead Black Bitch.\r\n \r\n ANGLE - PATRICE\'S HOUSE\r\n \r\n Patrice looks at Felix.\r\n \r\n CLOSE - RON\r\n \r\n recovering from the blow SCREAMS to her!\r\n \r\n RON STALLWORTH\r\n RUN!!! RUN!!! RUN!!!\r\n \r\n ANGLE - STREET\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-587 | ANGLE - STREET\r\n \r\n Connie finally sees Felix in the car. Felix sees her, nods.\r\n She then sees that they are parked... NEXT TO PATRICE\'S\r\n CAR!!! Connie runs to Felix, screaming!\r\n \r\n CONNIE\r\n NO!!! FELIX!!! NO!!! FELIX!!!\r\n \r\n Felix pushes the Button!\r\n \r\n THE BOMB\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-588 | \r\n is attached to the inside of the wheel well of Patrice\'s car.\r\n \r\n PATRICE\'S CAR\r\n \r\n EXPLODES! THEN IT BLOWS UP FELIX\'S CAR NEXT TO IT!!! A double\r\n explosion!!! THE IMPACT BLOWS OUT WINDOWS EVERYWHERE! Patrice\r\n and Odetta are knocked to the ground. Connie is hurled to the\r\n street! Glass and car parts flying! Ron and the Cops are\r\n ROCKED by the force of the HUGE BLAST!\r\n \r\n THE TWO CARS TOTALLY DESTROYED! | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-589 | THE TWO CARS TOTALLY DESTROYED! ENGULFED IN FLAMES!!!\r\n \r\n Connie on her knees on the street, weeping!\r\n \r\n RON STILL HANDCUFFED\r\n \r\n through the smoke and flames is able to make eye contact with\r\n Patrice, on the steps of her porch. She is shaken but all\r\n right. SIRENS in the distance heading toward them!\r\n \r\n ANGLE - STREET\r\n Flip drives up in a fury and jumps out and holds up his\r\n BADGE.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-590 | \r\n FLIP\r\n Hey, you fucking idiots!!! We\'re\r\n undercover.\r\n \r\n Officers Brickhouse and Myers lower their guns.\r\n \r\n CLOSE - RON STALLWORTH\r\n \r\n RON STALLWORTH\r\n YOU\'RE LATE.\r\n \r\n CLOSE | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-591 | \r\n CLOSE - FLIP\r\n Flip smiles.\r\n \r\n OMITTED\r\n \r\n OMITTED\r\n INT. DIVE BAR - NIGHT\r\n \r\n The place is full of Off Duty Cops and their Girlfriends, a\r\n few Wives but mainly Cops drinking and having a good time.\r\n Ron is in the corner talking with Patrice. They are sharing a\r\n drink looking very intimate. Ron sees something.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-592 | \r\n RON STALLWORTH\r\n Jeezus Christ.\r\n \r\n PATRICE\r\n What?\r\n \r\n RON STALLWORTH\r\n Your Boyfriend.\r\n \r\n Patrice turns and sees.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-593 | \r\n PATRICE\r\n Oh My God.\r\n \r\n Master Patrolman Landers nears them with a Beer in his hand.\r\n \r\n LANDERS\r\n Who\'s da\' Soul Sistah, Stallworth?\r\n You been holding out on me.\r\n \r\n Patrice stares at him with contempt.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-594 | stares at him with contempt.\r\n \r\n PATRICE\r\n You don\'t remember me do you?\r\n \r\n Landers stares at her.\r\n PATRICE (CONT\'D)\r\n Kwame Ture.\r\n \r\n Landers doesn\'t know who that is.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-595 | PATRICE (CONT\'D)\r\n Stokely Carmichael.\r\n \r\n LANDERS\r\n Oh Yeah, Yeah, you looked good that\r\n night but you look even better now.\r\n \r\n PATRICE\r\n How often do you do that to Black\r\n People?\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-596 | \r\n LANDERS\r\n Do what?\r\n \r\n PATRICE\r\n Pull us over for nothing. Harass us.\r\n Put your hands all over a Woman in\r\n the guise of searching her. Call us\r\n everything but A Child of God.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-597 | LANDERS\r\n I don\'t know what you\'re talking\r\n about.\r\n \r\n RON STALLWORTH\r\n It\'s like what I told you. He just\r\n likes taking advantage but in the end\r\n he\'s All Hat and No Cattle.\r\n \r\n Landers looks around then leans in close to Patrice and Ron.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-598 | to Patrice and Ron.\r\n He speaks softly issuing a deadly threat.\r\n \r\n LANDERS\r\n Let me tell you both something, I\'ve\r\n been keeping you People in line in\r\n this City for years. What I did to\r\n your Girl that night, I can do to any\r\n of you, Anytime, Anyplace. That\'s my\r\n prerogative. I can even Bust a Cap in\r\n ya Black | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-599 | ya Black Ass if I feel like it and\r\n nuthin\' will be done about it. Get\r\n it? Wish the both of you got blown up\r\n instead of Good White Folks.\r\n \r\n Master Patrolman Landers raises up.\r\n \r\n RON STALLWORTH\r\n Ohhh, I get it.\r\n \r\n Ron looks at Patrice.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-600 | RON STALLWORTH (CONT\'D)\r\n You get it, Patrice?\r\n \r\n PATRICE\r\n Oh, I totally and completely get it.\r\n \r\n Landers looks confused with their response.\r\n \r\n RON STALLWORTH\r\n Good.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-601 | \r\n Ron turns toward the Bar and shouts.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n You get it, Flip?\r\n \r\n Behind the Bar, Flip leans out from the back room waving to\r\n Ron wearing Headphones recording The Conversation.\r\n \r\n FLIP\r\n Oh, We got it! We got it all!\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-602 | \r\n Ron stands removing his Shirt revealing The Wire he is\r\n wearing. Master Patrolman Landers is in shock.\r\n \r\n RON STALLWORTH\r\n You get it, Chief?\r\n \r\n Sgt. Trapp appears taking the Beer from Landers\' hand turning\r\n him around putting Handcuffs on him. Chief Bridges comes from\r\n the back nearing Landers. The two lock eyes.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-603 | CHIEF BRIDGES\r\n Oh, I really, really get it. You\'re\r\n under arrest for Police Misconduct,\r\n Sexual Misconduct and Police\r\n Brutality.\r\n \r\n Sgt. Trapp and the Chief usher Master Patrolman Landers, who\r\n is babbling like a Fool out of The Bar reading him his\r\n rights.\r\n \r\n INT. INTELLIGENCE UNIT - CSPD - DAY\r\n \r\n Ron, walking taller | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-604 | \r\n Ron, walking taller than usual, steps inside The Unit. Some\r\n of his Colleagues notice and give him a Low-Key Ovation. At\r\n his Desk is Flip, who is in Great Spirits.\r\n \r\n FLIP\r\n There he is... Man of the Minute.\r\n \r\n RON STALLWORTH\r\n ... not an Hour?\r\n \r\n Ron smiles, gives Fives all around. | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-605 | Ron smiles, gives Fives all around. They all share a laugh.\r\n FLIP (CONT\'D)\r\n That Polaroid Stunt you pulled? When\r\n you threw your Arms around them, I\r\n swear to God I almost Shit myself!\r\n \r\n RON STALLWORTH\r\n Told you, Ron was born ready.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-606 | FLIP\r\n Born ready is Ron.\r\n \r\n Sgt. Trapp steps out of his Office.\r\n \r\n SGT. TRAPP\r\n There\'s The Crazy Son of a Bitch!!!\r\n \r\n Trapp gives Ron a Bear Hug.\r\n \r\n SGT. TRAPP (CONT\'D)\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-607 | You did good.\r\n \r\n RON STALLWORTH\r\n Sarge. We did good.\r\n \r\n Ron and Flip eyes meet, bonded.\r\n \r\n SGT. TRAPP\r\n Chief wants to see you Guys.\r\n \r\n Flip nudges Ron.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-608 | \r\n FLIP\r\n Hey... early promotion?\r\n \r\n Ron smiles.\r\n \r\n INT. OFFICE OF THE CHIEF OF POLICE - DAY\r\n \r\n Ron, Flip, and Sgt. Trapp sit opposite Chief Bridges.\r\n \r\n CHIEF BRIDGES\r\n Again, I can\'t commend you enough for\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-609 | I can\'t commend you enough for\r\n what you\'ve achieved. You know there\r\n was not a Single Cross Burning the\r\n entire time you were involved?\r\n \r\n RON STALLWORTH\r\n I\'m aware.\r\n \r\n CHIEF BRIDGES\r\n But all good things must come to an\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-610 | end...\r\n \r\n Sgt. Trapp shakes his head, resigned.\r\n RON STALLWORTH\r\n What does that mean?\r\n \r\n Ron and Flip look at each other, stunned.\r\n \r\n CHIEF BRIDGES\r\n Budget Cuts.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-611 | FLIP\r\n Budget Cuts?\r\n \r\n CHIEF BRIDGES\r\n Inflation... I wish I had a choice.\r\n My hands are tied. Besides, it looks\r\n like there are no longer any tangible\r\n Threats...\r\n \r\n RON | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-612 | RON STALLWORTH\r\n ...Sounds like we did too good a job.\r\n \r\n CHIEF BRIDGES\r\n Not a Bad Legacy to leave.\r\n \r\n Bridges takes a deliberate pause. Then, THE Sucker Punch...\r\n \r\n CHIEF BRIDGES (CONT\'D)\r\n And I need you, Ron Stallworth, to\r\n destroy all | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-613 | destroy all Evidence of this\r\n Investigation.\r\n \r\n RON STALLWORTH\r\n Excuse me?\r\n \r\n FLIP\r\n This is total Horseshit.\r\n \r\n CHIEF BRIDGES\r\n We | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-614 | We prefer that The Public never knew\r\n about this Investigation.\r\n \r\n Ron and Flip are heated. Sgt. Trapp is silent but gutted.\r\n \r\n RON STALLWORTH\r\n If they found out...\r\n \r\n CHIEF BRIDGES\r\n ...Cease all further contact with The\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-615 | Ku Klux Klan. Effective immediately.\r\n That goes for Flip too. Ron\r\n Stallworth...\r\n \r\n RON STALLWORTH\r\n This is some Fucked up Bullshit.\r\n CHIEF BRIDGES\r\n Take a week off. Go on vacation with\r\n your Girlfriend. We\'ll hold down The\r\n Fort until you get | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-616 | Fort until you get back. Get you\r\n another assignment...Narcotics.\r\n \r\n Ron storms out.\r\n \r\n INT. INTELLIGENCE UNIT - CSPD - DAY\r\n \r\n Ron reflects as he feeds Investigation documents in a\r\n Shredder. The documents shred into pieces. Just then, the\r\n Undercover Phone Line rings on Ron\'s desk.\r\n \r\n Ron stares at the Phone, still ringing. He looks at The\r\n Documents in his hand, about to feed them into The Shredder.\r\n Ron | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-617 | The Shredder.\r\n Ron stops. Throws The Documents in a Folder. Sweeps some\r\n Folders into his Briefcase. Leaves as The Phone still rings.\r\n \r\n EXT. COLORADO SPRINGS POLICE DEPARTMENT BUILDING - DAY\r\n \r\n Ron is walking fast now, trying to make it out of The\r\n Building with The Evidence but he remembers something.\r\n He stops, turns back.\r\n \r\n INT. INTELLIGENCE DIVISION - CSPD - DAY\r\n \r\n Ron sits at his Desk, on The Undercover Phone Line. Flip,\r\n Jimmy and Sgt. Trapp are | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-618 | Jimmy and Sgt. Trapp are behind, both close enough to listen,\r\n giggling.\r\n \r\n RON STALLWORTH\r\n I\'m sorry we didn\'t get to spend more\r\n One-on-One time together.\r\n \r\n INT. DEVIN DAVIS OFFICE - DAY\r\n \r\n INTERCUT RON, FLIP, AND TRAPP WITH DEVIN DAVIS:\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-619 | DEVIN DAVIS\r\n Well, that tragic event. I had just\r\n met those Fine Brothers in the cause.\r\n \r\n RON STALLWORTH\r\n Our Chapter is just shaken to the\r\n core. And poor Connie not only does\r\n she lose her Husband but she\'s facing\r\n a healthy Prison Sentence.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-620 | \r\n DEVIN DAVIS\r\n My God. And then there was that one\r\n Nigger Detective who threatened me.\r\n RON STALLWORTH\r\n Goddamn Coloreds sure know how to\r\n spoil a Celebration.\r\n \r\n Flip and Jimmy snort. Ron holds in a Belly-Laugh.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-621 | DEVIN DAVIS\r\n Christ. You can say that again.\r\n \r\n Ron cracks up into his Hand. Sgt. Trapp is wheezing-- his\r\n Face Bright Pink. Flip is laughing hard in the background.\r\n \r\n RON STALLWORTH\r\n Can I ask you something? That Nigger\r\n Detective who gave you a hard time?\r\n Ever get his name?\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-622 | \r\n DEVIN DAVIS\r\n No, I...\r\n \r\n RON STALLWORTH\r\n ...Are-uh you sure you don\'t know who\r\n he is? Are-uh you absolutely sure?\r\n \r\n Davis looks at his Phone. Ron takes out his SMALL NOTE PAD\r\n out revealing a list of Racial epitaphs he had written down\r\n being on this | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-623 | written down\r\n being on this Investigation. He reads from it to Davis on the\r\n phone.\r\n \r\n ANGLE - SPLIT SCREEN\r\n \r\n Ron Stallworth and Devin Davis.\r\n \r\n RON STALLWORTH (CONT\'D)\r\n Cuz\' dat Niggah Coon, Gator Bait,\r\n Spade, Spook, Sambo, Spear Flippin\',\r\n Jungle Bunny, Mississippi Wind\r\n Chime...Detective is Ron Stallworth\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-624 | is Ron Stallworth\r\n you Redneck, Racist Peckerwood Small\r\n Dick Motherfucker!!!\r\n \r\n CLICK. Ron SLAM DUNKS THE RECEIVER LIKE SHAQ.\r\n \r\n CLOSE - DEVIN DAVIS\r\n \r\n Devin Davis\'s Jaw Drops.\r\n \r\n INT. INTELLIGENCE DIVISION - CSPD - DAY\r\n \r\n THE WHOLE OFFICE EXPLODES IN LAUGHTER. COPS ARE ROLLING ON\r\n THE OFFICE FLOOR.\r\n INT. | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-625 | OFFICE FLOOR.\r\n INT. RON\'S APARTMENT - KITCHEN - NIGHT\r\n \r\n Folders of Evidence sit on The Kitchen Table in a stack in\r\n front of Ron. He sips his Lipton Tea and removes from the\r\n FILES THE\r\n \r\n CLOSE - POLAROID\r\n Ron hugged up, between Devin Davis and Jesse Nayyar. He then\r\n looks at The Klan Membership Card shifting in his hands, his\r\n gaze fixated on the words.\r\n \r\n CLOSE - Ron Stallworth\r\n KKK Member in Good Standing\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-626 | Member in Good Standing\r\n \r\n Patrice comes up from behind.\r\n CLOSE - PATRICE\r\n She pulls out a small handgun from her pocketbook.\r\n \r\n 2 - SHOT - PATRICE AND RON\r\n \r\n PATRICE (O.S.)\r\n Have you Resigned from The KKK?\r\n \r\n RON STALLWORTH\r\n Affirmative.\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-627 | Affirmative.\r\n \r\n PATRICE\r\n Have you handed in your Resignation\r\n as a Undercover Detective for The\r\n Colorado Springs Police Department?\r\n \r\n RON STALLWORTH\r\n Negative. Truth be told I\'ve always\r\n wanted to be a Cop...and I\'m still\r\n for The | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-628 | for The Liberation for My People.\r\n \r\n PATRICE\r\n My Conscience won\'t let me Sleep with\r\n The Enemy.\r\n \r\n RON STALLWORTH\r\n Enemy? I\'m a Black Man that saved\r\n your life.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-629 | PATRICE\r\n You\'re absolutely right, and I Thank\r\n you for it.\r\n \r\n Patrice Kisses Ron on the cheek. Good Bye. WE HEAR a KNOCK on\r\n Ron\'s DOOR. Ron, who is startled, slowly rises. We HEAR\r\n another KNOCK.\r\n \r\n QUICK FLASHES - of a an OLD TIME KLAN RALLY. Ron moves\r\n quietly to pull out his SERVICE REVOLVER from the COUNTER\r\n DRAWER. WE HEAR ANOTHER KNOCK on the DOOR. Patrice stands\r\n behind | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-630 | Patrice stands\r\n behind him.\r\n \r\n QUICK FLASHES - BLACK BODY HANGING FROM A TREE (STRANGE\r\n FRUIT) Ron slowly moves to the DOOR. Ron has his SERVICE\r\n REVOLVER up and aimed ready to fire. Ron swings open the\r\n DOOR.\r\n ANGLE - HALLWAY\r\n \r\n CU - RON\'S POV\r\n \r\n WE TRACK DOWN THE EMPTY HALLWAY PANNING OUT THE WINDOW.\r\n \r\n CLOSE - RON AND PATRICE\r\n \r\n Looking in | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-631 | \r\n Looking in the distance: The Rolling Hills surrounding The\r\n Neighborhood lead towards Pike\'s Peak, which sits on the\r\n horizon like a King on A Throne.\r\n \r\n WE SEE: Something Burning.\r\n \r\n CLOSER-- WE SEE a CROSS, its Flames dancing, sending embers\r\n into The BLACK, Colorado Sky.\r\n OMITTED\r\n \r\n EXT. UVA CAMPUS - NIGHT\r\n \r\n WE SEE FOOTAGE of NEO-NAZIS, ALT RIGHT, THE KLAN, NEO-\r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-632 | ALT RIGHT, THE KLAN, NEO-\r\n CONFEDERATES AND WHITE NATIONALISTS MARCHING, HOLDING UP\r\n THEIR TIKI TORCHES, CHANTING.\r\n \r\n AMERICAN TERRORISTS\r\n YOU WILL NOT REPLACE US!!!\r\n JEWS WILL NOT REPLACE US!!!\r\n BLOOD AND SOIL!!!\r\n \r\n CUT TO BLACK.\r\n \r\n | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-633 | \r\n FINI.\r\n\r\n\r\n\n\n\n\nBlacKkKlansman\nWriters : \xa0\xa0Charlie Wachtel\xa0\xa0David Rabinowitz\xa0\xa0Kevin Willmott\xa0\xa0Spike Lee\nGenres : \xa0\xa0Crime\xa0\xa0Drama\nUser Comments\n\n\n\n\n\r\nBack to IMSDb\n\n\n', lookup_str='', metadata={'source': 'https://imsdb.com/scripts/BlacKkKlansman.html'}, lookup_index=0)] | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
004f5e748bf9-634 | previous
Images
next
Markdown
By Harrison Chase
© Copyright 2023, Harrison Chase.
Last updated on Mar 22, 2023. | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/imsdb.html |
3f6a6ee9618d-0 | .ipynb
.pdf
PDF
Contents
Using PyPDF
Using Unstructured
Retain Elements
Fetching remote PDFs using Unstructured
Using PDFMiner
Using PyMuPDF
PDF#
This covers how to load pdfs into a document format that we can use downstream.
Using PyPDF#
Load PDF using pypdf into array of documents, where each document contains the page content and metadata with page number.
from langchain.document_loaders import PyPDFLoader
loader = PyPDFLoader("example_data/layout-parser-paper.pdf")
pages = loader.load_and_split()
pages[0] | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-1 | Document(page_content='LayoutParser : A Uni\x0ced Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1( \x00), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1Allen Institute for AI\[email protected]\n2Brown University\nruochen [email protected]\n3Harvard University\nfmelissadell,jacob carlson [email protected]\n4University of Washington\[email protected]\n5University of Waterloo\[email protected]\nAbstract. Recent advances in document image analysis (DIA) have been\nprimarily driven by the application of neural networks. Ideally, research\noutcomes could be easily deployed in production and extended for further\ninvestigation. However, various factors like loosely organized codebases\nand sophisticated model con\x0cgurations complicate the easy reuse of im-\nportant innovations by a wide audience. Though there have been on-going\ne\x0borts to improve reusability and simplify deep learning (DL) model\ndevelopment in disciplines like natural language processing and computer\nvision, none of them are optimized for | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-2 | processing and computer\nvision, none of them are optimized for challenges in the domain of DIA.\nThis represents a major gap in the existing toolkit, as DIA is central to\nacademic research across a wide range of disciplines in the social sciences\nand humanities. This paper introduces LayoutParser , an open-source\nlibrary for streamlining the usage of DL in DIA research and applica-\ntions. The core LayoutParser library comes with a set of simple and\nintuitive interfaces for applying and customizing DL models for layout de-\ntection, character recognition, and many other document processing tasks.\nTo promote extensibility, LayoutParser also incorporates a community\nplatform for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available at https://layout-parser.github.io .\nKeywords: Document Image Analysis ·Deep Learning ·Layout Analysis\n·Character Recognition ·Open Source library ·Toolkit.\n1 Introduction\nDeep Learning(DL)-based approaches are the state-of-the-art for | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-3 | Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndocument image analysis (DIA) tasks including document image classi\x0ccation [ 11,arXiv:2103.15348v2 [cs.CV] 21 Jun 2021', lookup_str='', metadata={'source': 'example_data/layout-parser-paper.pdf', 'page': '0'}, lookup_index=0) | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-4 | An advantage of this approach is that documents can be retrieved with page numbers.
from langchain.vectorstores import FAISS
from langchain.embeddings.openai import OpenAIEmbeddings
faiss_index = FAISS.from_documents(pages, OpenAIEmbeddings())
docs = faiss_index.similarity_search("How will the community be engaged?", k=2)
for doc in docs:
print(str(doc.metadata["page"]) + ":", doc.page_content)
9: 10 Z. Shen et al.
Fig. 4: Illustration of (a) the original historical Japanese document with layout
detection results and (b) a recreated version of the document image that achieves
much better character recognition recall. The reorganization algorithm rearranges
the tokens based on the their detected bounding boxes given a maximum allowed
height.
4LayoutParser Community Platform
Another focus of LayoutParser is promoting the reusability of layout detection
models and full digitization pipelines. Similar to many existing deep learning
libraries, LayoutParser comes with a community model hub for distributing
layout models. End-users can upload their self-trained models to the model hub,
and these models can be loaded into a similar interface as the currently available
LayoutParser pre-trained models. For example, the model trained on the News
Navigator dataset [17] has been incorporated in the model hub.
Beyond DL models, LayoutParser also promotes the sharing of entire doc-
ument digitization pipelines. For example, sometimes the pipeline requires the
combination of multiple DL models to achieve better accuracy. Currently, pipelines
are mainly described in academic papers and implementations are often not pub-
licly available. To this end, the LayoutParser community platform also enables
the sharing of layout pipelines to promote the discussion and reuse of techniques.
For each shared pipeline, it has a dedicated project page, with links to the source | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-5 | For each shared pipeline, it has a dedicated project page, with links to the source
code, documentation, and an outline of the approaches. A discussion panel is
provided for exchanging ideas. Combined with the core LayoutParser library,
users can easily build reusable components based on the shared pipelines and
apply them to solve their unique problems.
5 Use Cases
The core objective of LayoutParser is to make it easier to create both large-scale
and light-weight document digitization pipelines. Large-scale document processing
3: 4 Z. Shen et al.
Efficient Data AnnotationC u s t o m i z e d M o d e l T r a i n i n gModel Cust omizationDI A Model HubDI A Pipeline SharingCommunity PlatformLa y out Detection ModelsDocument Images
T h e C o r e L a y o u t P a r s e r L i b r a r yOCR ModuleSt or age & VisualizationLa y out Data Structur e
Fig. 1: The overall architecture of LayoutParser . For an input document image,
the core LayoutParser library provides a set of o-the-shelf tools for layout
detection, OCR, visualization, and storage, backed by a carefully designed layout
data structure. LayoutParser also supports high level customization via ecient
layout annotation and model training functions. These improve model accuracy
on the target samples. The community platform enables the easy sharing of DIA
models and whole digitization pipelines to promote reusability and reproducibility.
A collection of detailed documentation, tutorials and exemplar projects make
LayoutParser easy to learn and use.
AllenNLP [ 8] and transformers [ 34] have provided the community with complete
DL-based support for developing and deploying models for general computer
vision and natural language processing problems. LayoutParser , on the other | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-6 | vision and natural language processing problems. LayoutParser , on the other
hand, specializes specically in DIA tasks. LayoutParser is also equipped with a
community platform inspired by established model hubs such as Torch Hub [23]
andTensorFlow Hub [1]. It enables the sharing of pretrained models as well as
full document processing pipelines that are unique to DIA tasks.
There have been a variety of document data collections to facilitate the
development of DL models. Some examples include PRImA [ 3](magazine layouts),
PubLayNet [ 38](academic paper layouts), Table Bank [ 18](tables in academic
papers), Newspaper Navigator Dataset [ 16,17](newspaper gure layouts) and
HJDataset [31](historical Japanese document layouts). A spectrum of models
trained on these datasets are currently available in the LayoutParser model zoo
to support dierent use cases.
3 The Core LayoutParser Library
At the core of LayoutParser is an o-the-shelf toolkit that streamlines DL-
based document image analysis. Five components support a simple interface
with comprehensive functionalities: 1) The layout detection models enable using
pre-trained or self-trained DL models for layout detection with just four lines
of code. 2) The detected layout information is stored in carefully engineered
Using Unstructured#
from langchain.document_loaders import UnstructuredPDFLoader
loader = UnstructuredPDFLoader("example_data/layout-parser-paper.pdf")
data = loader.load()
Retain Elements#
Under the hood, Unstructured creates different “elements” for different chunks of text. By default we combine those together, but you can easily keep that separation by specifying mode="elements".
loader = UnstructuredPDFLoader("example_data/layout-parser-paper.pdf", mode="elements")
data = loader.load()
data[0] | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-7 | Document(page_content='LayoutParser: A Unified Toolkit for Deep\nLearning Based Document Image Analysis\nZejiang Shen1 (�), Ruochen Zhang2, Melissa Dell3, Benjamin Charles Germain\nLee4, Jacob Carlson3, and Weining Li5\n1 Allen Institute for AI\[email protected]\n2 Brown University\nruochen [email protected]\n3 Harvard University\n{melissadell,jacob carlson}@fas.harvard.edu\n4 University of Washington\[email protected]\n5 University of Waterloo\[email protected]\nAbstract. Recent advances in document image analysis (DIA) have been\nprimarily driven by the application of neural networks. Ideally, research\noutcomes could be easily deployed in production and extended for further\ninvestigation. However, various factors like loosely organized codebases\nand sophisticated model configurations complicate the easy reuse of im-\nportant innovations by a wide audience. Though there have been on-going\nefforts to improve reusability and simplify deep learning (DL) model\ndevelopment in disciplines like natural language processing and computer\nvision, none of them are optimized for | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-8 | processing and computer\nvision, none of them are optimized for challenges in the domain of DIA.\nThis represents a major gap in the existing toolkit, as DIA is central to\nacademic research across a wide range of disciplines in the social sciences\nand humanities. This paper introduces LayoutParser, an open-source\nlibrary for streamlining the usage of DL in DIA research and applica-\ntions. The core LayoutParser library comes with a set of simple and\nintuitive interfaces for applying and customizing DL models for layout de-\ntection, character recognition, and many other document processing tasks.\nTo promote extensibility, LayoutParser also incorporates a community\nplatform for sharing both pre-trained models and full document digiti-\nzation pipelines. We demonstrate that LayoutParser is helpful for both\nlightweight and large-scale digitization pipelines in real-word use cases.\nThe library is publicly available at https://layout-parser.github.io.\nKeywords: Document Image Analysis · Deep Learning · Layout Analysis\n· Character Recognition · Open Source library · Toolkit.\n1\nIntroduction\nDeep Learning(DL)-based approaches are the state-of-the-art | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-9 | Learning(DL)-based approaches are the state-of-the-art for a wide range of\ndocument image analysis (DIA) tasks including document image classification [11,\narXiv:2103.15348v2 [cs.CV] 21 Jun 2021\n', lookup_str='', metadata={'file_path': 'example_data/layout-parser-paper.pdf', 'page_number': 1, 'total_pages': 16, 'format': 'PDF 1.5', 'title': '', 'author': '', 'subject': '', 'keywords': '', 'creator': 'LaTeX with hyperref', 'producer': 'pdfTeX-1.40.21', 'creationDate': 'D:20210622012710Z', 'modDate': 'D:20210622012710Z', 'trapped': '', 'encryption': None}, lookup_index=0) | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-10 | Fetching remote PDFs using Unstructured#
This covers how to load online pdfs into a document format that we can use downstream. This can be used for various online pdf sites such as https://open.umn.edu/opentextbooks/textbooks/ and https://arxiv.org/archive/
Note: all other pdf loaders can also be used to fetch remote PDFs, but OnlinePDFLoader is a legacy function, and works specifically with UnstructuredPDFLoader.
from langchain.document_loaders import OnlinePDFLoader
loader = OnlinePDFLoader("https://arxiv.org/pdf/2302.03803.pdf")
data = loader.load()
print(data) | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |
3f6a6ee9618d-11 | [Document(page_content='A WEAK ( k, k ) -LEFSCHETZ THEOREM FOR PROJECTIVE TORIC ORBIFOLDS\n\nWilliam D. Montoya\n\nInstituto de Matem´atica, Estat´ıstica e Computa¸c˜ao Cient´ıfica,\n\nIn [3] we proved that, under suitable conditions, on a very general codimension s quasi- smooth intersection subvariety X in a projective toric orbifold P d Σ with d + s = 2 ( k + 1 ) the Hodge conjecture holds, that is, every ( p, p ) -cohomology class, under the Poincar´e duality is a rational linear combination of fundamental classes of algebraic subvarieties of X . The proof of the above-mentioned result relies, for p ≠ d + 1 − s , on a Lefschetz\n\nKeywords: (1,1)- Lefschetz theorem, Hodge conjecture, toric varieties, complete intersection Email: [email protected]\n\ntheorem ([7]) and the Hard Lefschetz theorem for projective orbifolds ([11]). When p = | https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/pdf.html |