{"cells":[{"cell_type":"markdown","source":["# nepberta"],"metadata":{"id":"SaV7GpYo1h_2"}},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":502,"status":"ok","timestamp":1731307389266,"user":{"displayName":"Aananda Giri","userId":"10248715758347187876"},"user_tz":-345},"id":"2VWdmLpsq-ri","outputId":"99fc7384-a201-4f8c-e817-41f3a6a865e2"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/drive/MyDrive/Research/datasets/hf_datasets\n"]}],"source":["%cd /content/drive/MyDrive/Research/datasets/hf_datasets"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"cn0UpSL8q0QZ"},"outputs":[],"source":["# Probably should `clean_data(new_crawled_data)` before merging `new_crawled_data.csv` and previous`cleaned_data.csv`\n","\n","from bs4 import BeautifulSoup\n","import csv\n","import json\n","import re\n","import string\n","import pandas as pd\n","\n","from drive.MyDrive.Research.datasets.scrapy_engine.code.load_data import load_data\n","class CleanData:\n"," def __init__(self):\n"," pass\n"," # return text\n"," # Example of removing HTML tags\n"," def clean_html(self, text):\n"," '''\n"," # HTML Tag Removal:\n"," * removes html tags like:

\n"," * Removes css or js code inside Example text\", \"
Another example with special chars: !@#
\"]\n","# data = ['

सुर्खेत र

कर्णालीका अरू जिल्लामा शिशुका लागि आवश्यक एनआईसीयू सेवा नै उपलब्ध छैन।', 'नेपालले करिब एक महिना अघि नै औपचारिक पत्र पठाएर जीबी राईलाई स्वदेश फर्काइदिन गरेको आग्रहबारे मलेशियाले कुनै औपचारिक जबाफ दिएको छैन।', '2024 बीबीसी। अन्य वेबसाइटका सामग्रीहरूका लागि बीबीसी जिम्मेवार छैन।', 'संसदीय छानबिन समिति गठन नभएसम्म संसद्\\u200cको कारबाही अघि बढ्न नदिने प्रतिपक्षी दलको अडानका कारण यसअघिको संसद् अधिवेशनको अन्त्यतिरका कामकारबाही प्रभावित भएका थिए।', 'भारतमा पनि भेपमा प्रतिबन्ध लगाइएको छ तर स्थानीय सञ्चार माध्यमका अनुसार यो व्यवस्था प्रभावकारी रूपमा कार्यान्वयन भएको छैन।', 'इजरेलले रफाहमा आक्रमण गर्न सक्ने आशङ्काका बीच अमेरिकाले गत साता इजरेललाई उपलब्ध गराउन लागेको हजारौँ बमको ढुवानी रोकिदिएको खुलासा भएको छ।', 'शुक्रवारको प्रयत्न सफल भएमा अन्तर्राष्ट्रिय अन्तरिक्ष स्टेशनतिर र बाट उडान गर्ने बोइङ दोस्रो निजी कम्पनी बन्नेछ। अहिलेसम्म इलोन मस्कको स्पेस एक्सले त्यस्तो काम गर्दै आएको छ।', 'हिरादेवी खतिवडाले दैनिक परामर्श दिनेहरूमा जबरजस्ती करणी, यौन दुर्व्यवहार लगायतका घटनाका पीडितहरू हुने गर्छन्।', 'युक्रेनी सेक्युरिटी सर्भिसका अनुसार गिरफ्तार गरिएका दुईजना कर्णेलले जेलेन्स्कीका अङ्गरक्षकहरूमध्ये त्यस्ता व्यक्तिको खोजी गरिरहेका थिए जो उनको अपहरण तथा हत्या गर्नका निम्ति इच्छुक होऊन्।', 'आधिकारिक रूपमा पुटिनले मार्चमा भएको राष्ट्रपतीय चुनावमा ८७ प्रतिशतभन्दा धेरै मत हासिल गरेका थिए। उक्त चुनावमा उनले गम्भीर प्रतिद्वन्दीको सामना गर्नुपरेको थिएन, न उक्त चुनावलाई धेरैले स्वतन्त्र र निष्पक्ष चुनावका रूपमा हेरेका थिए।', 'नेपालका ग्रामीण भेगमा विगतमा पाइने गरेका काठका पुराना ठेकीहरू अचेल नपाइने गरेका मानिसहरू बताउँछन्। आखिर कहाँ जादै छन् सारा ठेकीहरू?', 'चीनको अर्थतन्त्र सोचेभन्दा तीव्र गतिमा विकसित भए पनि यसका अगाडि विभिन्न सङ्कट रहेकाले \\nमहिलाहरू घरखर्च धान्न बचत बढाउन चाहन्छन्।', \"चार वर्षअघि जारी नेपालको पछिल्लो नक्सालाई अन्तर्राष्ट्रिय मान्यता दिलाउन उल्लेख्य प्रगति नभएको अवस्थामा सरकारको यो निर्णय 'लोकप्रियताका लागि मात्रै गरिएको' कतिपय विज्ञहरूको टिप्पणी छ।\", 'जङ्गलमा कुनै प्राणीले औषधीय वनस्पति प्रयोग गरेर चोटपटकको उपचार गरेको यो पहिलो रेकर्ड हो। ', ' ', 'टिकटकले अमेरिकाले प्रतिबन्ध पुष्टि गर्न “अनुमानका आधारमा चिन्ता” व्यक्त गरेको आरोप लगाउँदै उक्त कदम रोक्न अदालतसँग माग गरेको छ।', \"पुरातत्त्वसम्बन्धी विशेषज्ञ चित्रकारहरूले सयौँ टुक्राहरू जोडेर बनाइएको खप्परका आधारमा 'नीयान्डर्टाल' महिलाको थ्री-डी मोडल बनाएका छन्। \", 'प्री-मनसुनको समयमा नेपालमा चट्याङ र हावाहुरीका घटनाहरू धेरै हुने गरेको विज्ञहरू बताउँछन्।', 'त्रिसट्ठी वर्षीया चर्चित कलाकारले क्यान्सरविरुद्ध आफ्नो सङ्घर्ष र रङ्गमञ्च एवं सामाजिक सञ्जालमार्फत् आफ्नो यात्राबारे जनचेतना जगाउने निर्णयबारे बीबीसीसँग कुराकानी गरेकी छन्।', 'आस्ट्राजेनेका खोपले कोभिड महामारीका क्रममा लाखौं मनिसहरूको ज्यान बचाएको विश्वास गरिन्छ, तर सँगसँगै यसले केही दुर्लभ रक्तजन्य घातक समस्या पनि निम्त्याएको बताइन्छ। ', 'गत वर्ष अर्थात् सन् २०२३ मा २० हजार जनाभन्दा बढी नेपाली कोरिया गएका थिए। कोरियामा अहिले नेपाली कामदारको सङ्ख्या ५५ हजार जनाभन्दा धेरै रहेको त्यहाँस्थित नेपाली दूतावासले जनाएको छ।', 'एमालेका हिक्मत कार्की मुख्यमन्त्री नियुक्त भएको दिन नै त्यसविरुद्ध मुद्दा लिएर कांग्रेसका केदार कार्की सर्वोच्च अदालत पुगेका छन्।', \"महत्त्वाकाङ्क्षी 'नीअम' परियोजनाअन्तर्गत 'द लाइन' मरुभूमि सहरका लागि जग्गा खाली गर्ने काममा घातक बल प्रयोग गर्न साउदी अरबका अधिकारीहरूले अनुमति दिएको एक भूतपूर्व गुप्तचर अधिकारीले दाबी गरेका छन्।\\n\", 'कडा कार्य संस्कृति प्रोत्साहन गर्ने टिप्पणीलाई लिएर चिनियाँ प्रविधि कम्पनीकी जनसम्पर्क अधिकारीले किन माफी माग्नु पर्\\u200dयो।', \"केन्द्रमा गत फागुनमा सत्ता समीकरण परिवर्तन भएसँगै त्यसको प्रभाव प्रदेशहरूमा परिरहेको देखिएका बेला जसपा विभाजनले विशेषगरी मधेश प्रदेश सरकार 'ढल्न सक्ने' अनुमानहरू पनि गरिएका छन्।\", 'अदालतले उनलाई चुनाव प्रचारप्रसार गर्न कुनै खालको रोक नलगाएको र आदेशमा उनले के गर्न पाउने वा नपाउने भन्ने कुनै विषयबारे उल्लेख नगरिएको पनि केजरीवालका वकिलले बताए।', 'इजरेली प्रधानमन्त्रीले गाजाको रफाहमा पूर्ण स्तरको आक्रमणलाई अनुमति दिएको खण्डमा हतियारको आपूर्ति रोक्न सकिने अमेरिकी चेतावनीलगत्तै बेन्जमिन नेतन्याहुले इजरेल \"एक्लै खडा हुन सक्ने\" प्रतिक्रिया दिएका छन्।', 'ब्रजिलको रिओ ग्रान्डी डु सुल प्रान्तमा आएको बाढी र पहिरोका कारण धनजनको ठूलो क्षति भएको छ।', 'खासगरी प्रधानमन्त्री, मुख्यमन्त्री एवं प्रदेश प्रमुख परिवर्तन भइरहने अनि मनपरी ढङ्गले आफू अनुकूलका व्यक्तिका तस्बिर राख्दा त्यसको आर्थिकभार राज्यकोषमा पर्ने गरेको जानकारहरू बताउँछन्।', 'नेपाली कांग्रेसले गृहमन्त्री रवि लामिछाने सहकारी ठगीमा संलग्न भएको विवरण सञ्चारमाध्यममा आइरहेको भन्दै उनीमाथि पनि छानबिन हुने गरी संसदीय समिति गठन गरिनुपर्ने अडानमा छ। ', 'हजारौँ आप्रवासीहरूलाई तस्करी गरी यूके पुर्\\u200dयाएका स्करपीअन उपनामले चर्चित बार्जान बीबीसीको एउटा अनुसन्धानपछि पक्राउ गरेका छन्। ', 'अमेरिकाका पूर्वराष्ट्रपति डोनल्ड ट्रम्पविरुद्ध परेको मुद्दामा उनका पूर्ववकिल माइकल कोएनले ट्रम्पविरुद्ध बयान दिएका छन्। उनले के भने र उनको बयान किन महत्त्वपूर्ण छ?', 'नेपालमा जेठ १५ गते बजेट ल्याउने नियम छ। त्यसअघि संसद्\\u200cमा नीति तथा कार्यक्रम प्रस्तुत हुन्छ। यसपालि मङ्गलवार संसद्को दुवै सदनको संयुक्त बैठक बस्दैछ र त्यसमा राष्ट्रपति रामचन्द्र पौडेलले नीति तथा कार्यक्रम प्रस्तुत गर्ने कार्यक्रम तय भएको छ।', 'उत्तर कोरियाको एउटा प्रान्तमा मानिसहरू भोकभोकै मर्न थालेको सुनेपछि देश छाडेर दक्षिण कोरियामा शरण लिन पुगेका यी व्यक्तिले सन् २०१५ देखि बोतलमा अन्य चिजसँगै चामल भरेर पठाउन थालेका हुन्।\\n', \"पिनाइल क्यान्सर भनिने पुरुषहरूमा लिङ्गको क्यान्सरका एकजना बिरामी जोआओ भन्छन्, रोगको निदान भएपछि लिङ्ग काटेर हटाउनुपर्ने अवस्थाबाट उनी 'निकै आत्तिएका' थिए।\", 'सर्वोच्च अदालतको संवैधानिक इजलासको फैसलाको पूर्णपाठमा हदबन्दीभन्दा बढी भएको जग्गा बाँझो राखिएको भेटिए सरकारका नाममा ल्याउन समेत भनिएको छ।', 'इन्टरनेटमा बालबालिकाले कलिलै उमेरमा पहुँच पाउँदा उनीहरू गम्भीर जोखिमको नजिक पुगेको विशेषज्ञहरूले बताएका छन्। ती जोखिमको रोकथामका लागि तपाईँहामी के गर्न सक्छौँ?', 'मृत्यु सन्निकट हुँदा मानिसहरूले गर्ने अनुभूतिबारे डा क्रिस्टोफर केरले अध्ययन गरेका छन्। त्यस्ता मानिसहरूले अन्तिम समयमा अनुभव गर्ने दृश्य र तिनको अर्थबारे उनले कुरा गरेका छन्।', \"आत्मसम्मान कम भएका व्यक्तिमा 'कम्प्लिमेन्ट' अर्थात प्रशंसाले चिन्ता बढाउन सक्छ किनभने उनीहरूको स्वधारणामा त्यसरी भएको तारिफले चुनौती दिन सक्छ। \", 'सन् २०२२ मा जोन म्याकफललाई शारीरिक अपाङ्गता भएका प्रथम अन्तरिक्षयात्रीको उम्मेदवारका रूपमा चयन गरिएको थियो। ', \"थाईल्यान्डमा 'लीज म्याजस्टी' कानुनले राजतन्त्रको आलोचना गर्न प्रतिबन्ध लगाएको छ। राजतन्त्रको संरक्षणका लागि बनाइएको त्यस्तो कानुनलाई विश्वकै कठोर कानुनमध्ये मानिन्छ।\", \"हजारौँ आप्रवासीहरूलाई तस्करी गरी यूके पुर्\\u200dयाएका 'स्कोर्पिअन' उपनामले चर्चित बर्जान मजिद बीबीसीको एउटा अनुसन्धानपछि इराकमा पक्राउ परेका छन्। \", 'नयाँ नोट छपाइमा जानुअघि अन्तर्राष्ट्रिय बोलकबोलसहितका कतिपय कानुनी प्रक्रियाहरू पूरा गर्नुपर्ने अधिकारीहरू बताउँछन्। ', 'अमेरिका, चीन र भारतले चन्द्रमामा मानव पठाउने योजना सार्वजनिक गरेका छन्। अन्तरिक्ष अभियानमा यी देशले किन अर्बौँ डलर लगानी गरेका हुन् र उनीहरूको अपेक्षा के छ?', 'जबरजस्ती करणी मुद्दामा उच्च अदालत पाटनले सफाइ दिएको केही घण्टापछि नेपाल क्रिकेट सङ्घ क्यानको निर्णय सार्वजनिक भएको हो।', ' प्रधानमन्त्रीको टाउको र छातीमा गोली लागेको देखिएको थियो। प्रधानमन्त्रीका सुरक्षाकर्मीमध्ये तीन जनाले उनको उद्धार गरी कारभित्र लगेका थिए।', 'मसला उत्पादन र निर्यातमा भारतको वर्चस्व छ। तर विभिन्न देशमा भारतीय मसलाको गुणस्तरबारे प्रश्न उठेको छ।', 'हीरामन्डीमा प्रमुख भूमिका रहेको मल्लिका जानको अभिनय गरेर फिल्म क्षेत्रमा वाहवाही पाइरहेकी मनीषा कोइरालाले बलुवुडकी चर्चित कलाकार रेखाले आफ्नो प्रशंसा गरेको सुन्दा आँशु आएको बताएकी छन्। रेखाले हीरामन्डी हेरेपछि मनीषालाई के भनिन् र उनको आँखा रसाए?', \"'लेडी बुशरा' नामले चिनिने अमिर डीन यूकेका सर्वाधिक चर्चित 'ड्र्याग कलाकार'मध्ये एक हुन्।\", \"साउदी अरबलाई आधुनिक बनाउने युवराज मोहम्मद बिन सलमानको चाहनाअनुसार 'नीअम' परियोजना बनाउन लागिएको हो। \\n\\n\", 'कृषि जनशक्तिको चरम अभावमाझ राष्ट्रपतिले घोषणा गरेको महत्त्वाकाङ्क्षी कृषिमा लगानी दशक कार्यान्वयनमा नआउँदै गम्भीर प्रश्नहरू तेर्सिएका छन्।', 'युक्रेनमा जारी युद्धमा रुसलाई सघाएको आरोप चीनलाई लागेकै बेला भ्लादिमिर पुटिनले फेरि बेइजिङ भ्रमणमा पुगेका छन्।', 'भारतमा निर्वाचनका बेला डीपफेक र एआईबाट सिर्जित भ्रामक सामग्रीको बिगबिगी बढेपछि विज्ञहरूले त्यसबाट पर्ने प्रभावबारे चिन्ता व्यक्त गरेका छन्।', 'जबरजस्ती करणी मुद्दामा उच्च अदालत पाटनले सफाइ दिएको केही घण्टापछि नेपाल क्रिकेट सङ्घ (क्यान) को निर्णय सार्वजनिक भएको हो।', 'उत्तर अमेरिकामा यो पहिलो विश्वकप हुँदै छ भने आयोजकको हैसियतले अमेरिकाले पनि सीधै विश्वकप खेल्ने मौका पाएको छ।', 'सहकारी संस्थाका सञ्चालकहरूले सम्पत्ति ब्याङ्कमा धितो राखेर ऋण लिएको पाइएका कारण लिलामी प्रक्रियामा समस्या भएको अधिकारीहरूले बताएका छन्।', \"'ब्रेकिङ'लाई ओलिम्पिक्समा पहिलो पटक समावेश गरिएको हो। यसपालि नै तालिबानको धम्कीका बीच 'ब्रेकिङ' सिकेकी मनिजा तलाश शरणार्थी टोलीकी सदस्यका रूपमा खेल्दै छिन्।\"]\n","\n","# # Preprocess the data\n","# cleaned_data = [preprocess_text(doc) for doc in data]\n","# print(cleaned_data)\n","\n","# # Further steps, like tokenization or saving the cleaned data, can follow\n"]},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/","height":1000},"id":"Z-gA4d8MqsOS","outputId":"4f200547-c9c1-4969-beff-0a35eb4e3cf5","executionInfo":{"status":"error","timestamp":1731318523875,"user_tz":-345,"elapsed":5054033,"user":{"displayName":"Aananda Giri","userId":"10248715758347187876"}}},"outputs":[{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["creating folder\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_1.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_2.txt\n","saved file: nepberta/clean_date_categories/chunk_3.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_4.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_5.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_6.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_7.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_8.txt\n","saved file: nepberta/clean_date_categories/chunk_9.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_10.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_11.txt\n","saved file: nepberta/clean_date_categories/chunk_12.txt\n","saved file: nepberta/clean_date_categories/chunk_13.txt\n","saved file: nepberta/clean_date_categories/chunk_14.txt\n","saved file: nepberta/clean_date_categories/chunk_15.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_16.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_17.txt\n","saved file: nepberta/clean_date_categories/chunk_18.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_19.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_20.txt\n","saved file: nepberta/clean_date_categories/chunk_21.txt\n","saved file: nepberta/clean_date_categories/chunk_22.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_23.txt\n","saved file: nepberta/clean_date_categories/chunk_24.txt\n","saved file: nepberta/clean_date_categories/chunk_25.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_26.txt\n","saved file: nepberta/clean_date_categories/chunk_27.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_28.txt\n","saved file: nepberta/clean_date_categories/chunk_29.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_30.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_31.txt\n","saved file: nepberta/clean_date_categories/chunk_32.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_33.txt\n","saved file: nepberta/clean_date_categories/chunk_34.txt\n","saved file: nepberta/clean_date_categories/chunk_35.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_36.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_37.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_38.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_39.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_40.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_41.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_42.txt\n","saved file: nepberta/clean_date_categories/chunk_43.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_44.txt\n","saved file: nepberta/clean_date_categories/chunk_45.txt\n","saved file: nepberta/clean_date_categories/chunk_46.txt\n","saved file: nepberta/clean_date_categories/chunk_47.txt\n","saved file: nepberta/clean_date_categories/chunk_48.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_49.txt\n","saved file: nepberta/clean_date_categories/chunk_50.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_51.txt\n","saved file: nepberta/clean_date_categories/chunk_52.txt\n","saved file: nepberta/clean_date_categories/chunk_53.txt\n","saved file: nepberta/clean_date_categories/chunk_54.txt\n","saved file: nepberta/clean_date_categories/chunk_55.txt\n","saved file: nepberta/clean_date_categories/chunk_56.txt\n","saved file: nepberta/clean_date_categories/chunk_57.txt\n","saved file: nepberta/clean_date_categories/chunk_58.txt\n","saved file: nepberta/clean_date_categories/chunk_59.txt\n","saved file: nepberta/clean_date_categories/chunk_60.txt\n","saved file: nepberta/clean_date_categories/chunk_61.txt\n","saved file: nepberta/clean_date_categories/chunk_62.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_63.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_64.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_65.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_66.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_67.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_68.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_69.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_70.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_71.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_72.txt\n","saved file: nepberta/clean_date_categories/chunk_73.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_74.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_75.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_76.txt\n","saved file: nepberta/clean_date_categories/chunk_77.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_78.txt\n","saved file: nepberta/clean_date_categories/chunk_79.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_80.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_81.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_82.txt\n","saved file: nepberta/clean_date_categories/chunk_83.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_84.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_85.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_86.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_87.txt\n","saved file: nepberta/clean_date_categories/chunk_88.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_89.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_90.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_91.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_92.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_93.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_94.txt\n","saved file: nepberta/clean_date_categories/chunk_95.txt\n","saved file: nepberta/clean_date_categories/chunk_96.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_97.txt\n","saved file: nepberta/clean_date_categories/chunk_98.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_99.txt\n","saved file: nepberta/clean_date_categories/chunk_100.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_101.txt\n","saved file: nepberta/clean_date_categories/chunk_102.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_103.txt\n","saved file: nepberta/clean_date_categories/chunk_104.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_105.txt\n"]},{"metadata":{"tags":null},"name":"stderr","output_type":"stream","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"metadata":{"tags":null},"name":"stdout","output_type":"stream","text":["saved file: nepberta/clean_date_categories/chunk_106.txt\n","saved file: nepberta/clean_date_categories/chunk_107.txt\n","saved file: nepberta/clean_date_categories/chunk_108.txt\n","saved file: nepberta/clean_date_categories/chunk_109.txt\n","saved file: nepberta/clean_date_categories/chunk_110.txt\n","saved file: nepberta/clean_date_categories/chunk_111.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_112.txt\n","saved file: nepberta/clean_date_categories/chunk_113.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_114.txt\n","saved file: nepberta/clean_date_categories/chunk_115.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_116.txt\n","saved file: nepberta/clean_date_categories/chunk_117.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_118.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_119.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_120.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_121.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_122.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_123.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_124.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_125.txt\n","saved file: nepberta/clean_date_categories/chunk_126.txt\n","saved file: nepberta/clean_date_categories/chunk_127.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_128.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_129.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_130.txt\n","saved file: nepberta/clean_date_categories/chunk_131.txt\n","saved file: nepberta/clean_date_categories/chunk_132.txt\n","saved file: nepberta/clean_date_categories/chunk_133.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_134.txt\n","saved file: nepberta/clean_date_categories/chunk_135.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_136.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_137.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_138.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_139.txt\n","saved file: nepberta/clean_date_categories/chunk_140.txt\n","saved file: nepberta/clean_date_categories/chunk_141.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_142.txt\n","saved file: nepberta/clean_date_categories/chunk_143.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_144.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_145.txt\n","saved file: nepberta/clean_date_categories/chunk_146.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_147.txt\n","saved file: nepberta/clean_date_categories/chunk_148.txt\n","saved file: nepberta/clean_date_categories/chunk_149.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_150.txt\n","saved file: nepberta/clean_date_categories/chunk_151.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_152.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_153.txt\n","saved file: nepberta/clean_date_categories/chunk_154.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_155.txt\n","saved file: nepberta/clean_date_categories/chunk_156.txt\n","saved file: nepberta/clean_date_categories/chunk_157.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_158.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_159.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_160.txt\n","saved file: nepberta/clean_date_categories/chunk_161.txt\n","saved file: nepberta/clean_date_categories/chunk_162.txt\n","saved file: nepberta/clean_date_categories/chunk_163.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_164.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_165.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_166.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_167.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_168.txt\n","saved file: nepberta/clean_date_categories/chunk_169.txt\n","saved file: nepberta/clean_date_categories/chunk_170.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_171.txt\n","saved file: nepberta/clean_date_categories/chunk_172.txt\n","saved file: nepberta/clean_date_categories/chunk_173.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_174.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_175.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_176.txt\n","saved file: nepberta/clean_date_categories/chunk_177.txt\n","saved file: nepberta/clean_date_categories/chunk_178.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_179.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_180.txt\n","saved file: nepberta/clean_date_categories/chunk_181.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_182.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_183.txt\n","saved file: nepberta/clean_date_categories/chunk_184.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_185.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_186.txt\n","saved file: nepberta/clean_date_categories/chunk_187.txt\n","saved file: nepberta/clean_date_categories/chunk_188.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_189.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_190.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_191.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_192.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_193.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_194.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_195.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_196.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_197.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_198.txt\n","saved file: nepberta/clean_date_categories/chunk_199.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_200.txt\n","saved file: nepberta/clean_date_categories/chunk_201.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_202.txt\n","saved file: nepberta/clean_date_categories/chunk_203.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_204.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_205.txt\n","saved file: nepberta/clean_date_categories/chunk_206.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_207.txt\n","saved file: nepberta/clean_date_categories/chunk_208.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_209.txt\n","saved file: nepberta/clean_date_categories/chunk_210.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_211.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_212.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_213.txt\n","saved file: nepberta/clean_date_categories/chunk_214.txt\n","saved file: nepberta/clean_date_categories/chunk_215.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_216.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_217.txt\n","saved file: nepberta/clean_date_categories/chunk_218.txt\n","saved file: nepberta/clean_date_categories/chunk_219.txt\n","saved file: nepberta/clean_date_categories/chunk_220.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_221.txt\n","saved file: nepberta/clean_date_categories/chunk_222.txt\n","saved file: nepberta/clean_date_categories/chunk_223.txt\n","saved file: nepberta/clean_date_categories/chunk_224.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n",":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_225.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_226.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_227.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_228.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"stream","name":"stdout","text":["saved file: nepberta/clean_date_categories/chunk_229.txt\n"]},{"output_type":"stream","name":"stderr","text":[":22: MarkupResemblesLocatorWarning: The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.\n"," soup = BeautifulSoup(text, \"lxml\")\n"]},{"output_type":"error","ename":"TypeError","evalue":"object of type 'float' has no len()","traceback":["\u001b[0;31m---------------------------------------------------------------------------\u001b[0m","\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)","\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 51\u001b[0m \u001b[0mos\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmakedirs\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0moutput_folder\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 52\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 53\u001b[0;31m \u001b[0msave_to_txt_in_chunks\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minput_csv\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput_folder\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmax_file_size_mb\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m50\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 54\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m\u001b[0m in \u001b[0;36msave_to_txt_in_chunks\u001b[0;34m(input_file, output_folder, max_file_size_mb)\u001b[0m\n\u001b[1;32m 21\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mchunk\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mchunk_iter\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 22\u001b[0m \u001b[0;31m# Process each chunk\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 23\u001b[0;31m \u001b[0mchunk\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'processed_text'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mchunk\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'text'\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mapply\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata_cleaner\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclean_data\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 24\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 25\u001b[0m \u001b[0;31m# Write each processed row to the output .txt file with token\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/series.py\u001b[0m in \u001b[0;36mapply\u001b[0;34m(self, func, convert_dtype, args, by_row, **kwargs)\u001b[0m\n\u001b[1;32m 4922\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4923\u001b[0m \u001b[0mkwargs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 4924\u001b[0;31m ).apply()\n\u001b[0m\u001b[1;32m 4925\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4926\u001b[0m def _reindex_indexer(\n","\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/apply.py\u001b[0m in \u001b[0;36mapply\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1425\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1426\u001b[0m \u001b[0;31m# self.func is Callable\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1427\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mapply_standard\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1428\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1429\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0magg\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/apply.py\u001b[0m in \u001b[0;36mapply_standard\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1505\u001b[0m \u001b[0;31m# Categorical (GH51645).\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1506\u001b[0m \u001b[0maction\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m\"ignore\"\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0misinstance\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdtype\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mCategoricalDtype\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32melse\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1507\u001b[0;31m mapped = obj._map_values(\n\u001b[0m\u001b[1;32m 1508\u001b[0m \u001b[0mmapper\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcurried\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mna_action\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0maction\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mconvert\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mconvert_dtype\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1509\u001b[0m )\n","\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/base.py\u001b[0m in \u001b[0;36m_map_values\u001b[0;34m(self, mapper, na_action, convert)\u001b[0m\n\u001b[1;32m 919\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0marr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmap\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmapper\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mna_action\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mna_action\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 920\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 921\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0malgorithms\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmap_array\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marr\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmapper\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mna_action\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mna_action\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mconvert\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mconvert\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 922\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 923\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mfinal\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m/usr/local/lib/python3.10/dist-packages/pandas/core/algorithms.py\u001b[0m in \u001b[0;36mmap_array\u001b[0;34m(arr, mapper, na_action, convert)\u001b[0m\n\u001b[1;32m 1741\u001b[0m \u001b[0mvalues\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0marr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mastype\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mobject\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcopy\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1742\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mna_action\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1743\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mlib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmap_infer\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvalues\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmapper\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mconvert\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mconvert\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1744\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1745\u001b[0m return lib.map_infer_mask(\n","\u001b[0;32mlib.pyx\u001b[0m in \u001b[0;36mpandas._libs.lib.map_infer\u001b[0;34m()\u001b[0m\n","\u001b[0;32m\u001b[0m in \u001b[0;36mclean_data\u001b[0;34m(self, text)\u001b[0m\n\u001b[1;32m 158\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mclean_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtext\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 159\u001b[0m \u001b[0;31m# Remove HTML tags\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 160\u001b[0;31m \u001b[0mtext\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclean_html\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 161\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 162\u001b[0m \u001b[0;31m# Normalize some characters\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n","\u001b[0;32m\u001b[0m in \u001b[0;36mclean_html\u001b[0;34m(self, text)\u001b[0m\n\u001b[1;32m 20\u001b[0m \u001b[0;34m*\u001b[0m \u001b[0mRemoves\u001b[0m \u001b[0mcss\u001b[0m \u001b[0;32mor\u001b[0m \u001b[0mjs\u001b[0m \u001b[0mcode\u001b[0m \u001b[0minside\u001b[0m \u001b[0;34m<\u001b[0m\u001b[0mstyle\u001b[0m\u001b[0;34m>\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;34m<\u001b[0m\u001b[0mscript\u001b[0m\u001b[0;34m>\u001b[0m \u001b[0mtags\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 21\u001b[0m '''\n\u001b[0;32m---> 22\u001b[0;31m \u001b[0msoup\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mBeautifulSoup\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m\"lxml\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 23\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 24\u001b[0m \u001b[0;31m# Remove all