diff --git a/source/KNN_Classifier/App.config b/source/KNN_Classifier/App.config new file mode 100644 index 000000000..2f4c55e92 --- /dev/null +++ b/source/KNN_Classifier/App.config @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/source/KNN_Classifier/Articles/CleanedText/politic1.txt b/source/KNN_Classifier/Articles/CleanedText/politic1.txt new file mode 100644 index 000000000..f030e98df --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic1.txt @@ -0,0 +1,299 @@ +biden +confident +hes +the +democratic +nominee +despite +sanders +claiming +still +has +path +sen +bernie +sanders +argues +that +theres +still +narrow +path +for +him +win +the +democratic +presidential +nomination +but +front +runner +joe +biden +disagrees +saying +feels +confident +will +the +partys +nominee +starting +with +his +landslide +victory +south +carolina +one +month +ago +biden +has +crushed +populist +senator +from +vermont +and +built +large +lead +the +crucial +race +for +convention +delegates +making +him +the +all +but +certain +democratic +nominee +biden +also +enjoys +massive +wave +support +from +former +rivals +and +leading +democratic +members +congress +governors +unions +and +other +groups +much +the +party +consolidated +behind +the +former +vice +presidents +white +house +bid +top +democrats +say +convention +may +cancelled +over +coronavirus +threat +sanders +however +said +monday +appearance +late +night +with +seth +meyers +that +were +about +delegates +behind +biden +has +have +there +path +the +progressive +champion +whos +making +his +second +straight +white +house +run +then +acknowledged +admittedly +narrow +path +there +are +lot +people +who +are +supporting +then +said +have +strong +grassroots +movement +who +believe +that +have +got +stay +order +continue +the +fight +make +the +world +know +that +need +medicare +for +all +that +need +raise +the +minimum +wage +living +wage +that +need +paid +family +and +medical +leave +meanwhile +interview +tuesday +night +with +msnbc +biden +emphasized +that +even +with +sanders +staying +the +race +felt +confident +about +being +the +nominee +dont +see +much +thats +going +make +able +change +that +and +bidens +campaign +fundraising +email +wednesday +supporters +described +their +candidate +the +crystal +clear +frontrunner +the +former +vice +president +needs +the +backing +sanders +and +his +legions +younger +voters +and +progressives +fully +unite +the +party +prepares +challenge +president +trump +the +general +election +acknowledged +tuesday +that +bernie +has +lot +very +very +strong +and +ardent +followers +and +think +that +its +hard +decision +not +going +tell +him +whether +has +stay +get +out +thats +his +decision diff --git a/source/KNN_Classifier/Articles/CleanedText/politic2.txt b/source/KNN_Classifier/Articles/CleanedText/politic2.txt new file mode 100644 index 000000000..b421df7f4 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic2.txt @@ -0,0 +1,253 @@ +mcconnell +says +trump +impeachment +trial +diverted +the +attention +the +government +coronavirus +entered +senate +majority +leader +mitch +mcconnell +argued +tuesday +the +federal +government +was +distracted +the +democratic +led +impeachment +trial +president +trump +when +the +coronavirus +outbreak +began +mcconnell +gave +credit +sen +tom +cotton +ark +for +paying +attention +the +severity +the +outbreak +time +when +the +senate +whole +was +occupied +mcconnell +admonishes +pelosi +over +coronavirus +aid +bill +wish +shed +turn +off +those +political +talking +points +was +first +and +think +tom +was +right +the +mark +and +came +while +were +tied +down +the +impeachment +trial +mcconnell +said +hugh +hewitts +radio +program +and +think +diverted +the +attention +the +government +because +everything +every +day +was +all +about +impeachment +but +tom +figured +this +out +early +and +was +absolutely +right +former +mcconnell +aide +john +ashbrook +also +pointed +this +out +tuesday +stating +that +the +pandemic +believed +have +hit +the +united +states +the +same +day +that +house +democrats +marched +articles +impeachment +the +senate +after +house +speaker +nancy +pelosi +held +off +moving +forward +impeachment +for +weeks +the +senate +majority +leader +took +another +dig +pelosi +for +playing +partisan +politics +time +that +both +parties +had +been +working +together +for +common +goal +noting +how +soon +this +took +place +after +partisan +impeachment +process +think +you +know +what +really +noteworthy +about +this +pivoted +from +the +most +partisan +thing +you +could +possibly +involved +the +impeachment +president +unanimous +vote +trillion +dollar +package +all +within +couple +months +said +did +have +outbreak +you +know +kind +the +old +fashioned +impeachment +partisanship +which +think +was +generated +the +speaker +trying +you +know +get +into +the +senate +process diff --git a/source/KNN_Classifier/Articles/CleanedText/politic3.txt b/source/KNN_Classifier/Articles/CleanedText/politic3.txt new file mode 100644 index 000000000..14dd6e6c0 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic3.txt @@ -0,0 +1,283 @@ +trump +administration +wont +reopen +obamacare +enrollment +for +uninsured +coronavirus +spreads +cnnthe +trump +administration +has +decided +not +reopen +enrollment +the +affordable +care +acts +federal +exchanges +amid +the +rising +coronavirus +pandemic +senior +administration +official +said +tuesday +evening +pressure +had +been +building +the +white +house +launch +special +enrollment +period +allow +the +uninsured +purchase +obamacare +policies +the +decision +came +the +same +day +that +president +donald +trump +warned +painful +two +week +stretch +ahead +infections +continue +spread +democratic +lawmakers +asked +administration +officials +temporarily +reopen +the +exchanges +several +weeks +ago +also +two +leading +health +insurance +industry +groups +wrote +congressional +leaders +mid +march +asking +for +such +move +given +the +risk +posed +covid +more +important +than +ever +for +people +have +health +coverage +the +ceos +americas +health +insurance +plans +and +blue +cross +blue +shield +association +wrote +referring +the +disease +caused +coronavirus +the +administrations +decision +was +first +reported +politico +eleven +states +that +run +their +own +obamacare +exchanges +along +with +the +district +columbia +have +launched +temporary +special +enrollment +periods +their +uninsured +residents +can +obtain +coverage +outside +the +usual +time +frame +open +enrollment +typically +runs +from +nov +dec +the +states +that +use +the +federal +exchange +healthcare +gov +nearly +million +non +elderly +americans +were +uninsured +according +the +most +recent +census +bureau +data +available +the +lack +coverage +has +been +key +weak +point +the +nations +fight +stem +the +outbreak +americans +who +are +uninsured +may +hesitate +get +checked +they +feel +ill +which +could +lead +their +infecting +others +experts +say +more +than +people +had +tested +positive +the +and +roughly +had +died +tuesday +evening +according +johns +hopkins +university +thousands +more +have +gone +emergency +rooms +been +hospitalized +potentially +racking +hundreds +thousands +dollars +medical +bills +the +newly +unemployed +who +lose +their +employer +based +coverage +are +allowed +sign +for +obamacare +policies +within +days +becoming +uninsured diff --git a/source/KNN_Classifier/Articles/CleanedText/politic4.txt b/source/KNN_Classifier/Articles/CleanedText/politic4.txt new file mode 100644 index 000000000..b8a1b3422 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic4.txt @@ -0,0 +1,194 @@ +brexit +your +simple +guide +the +leaving +the +feeling +little +lost +brexit +never +really +got +your +head +around +the +first +place +let +walk +you +through +what +brexit +brexit +short +for +british +exit +and +the +word +people +use +talk +about +the +united +kingdoms +decision +leave +the +european +union +what +the +the +political +and +economic +union +countries +that +trade +with +each +other +and +allow +citizens +move +easily +between +the +countries +live +and +work +click +here +you +want +see +the +full +list +the +joined +the +then +known +the +eec +european +economic +community +why +the +leaving +public +vote +called +referendum +was +held +thursday +june +when +voters +were +asked +just +one +question +whether +the +should +leave +remain +the +european +union +the +leave +side +won +nearly +votes +but +the +exit +didnt +happen +straight +away +was +due +take +place +march +but +the +departure +date +has +been +delayed +will +explain +more +detail +below +what +has +happened +far +the +vote +was +just +the +start +since +then +negotiations +have +been +taking +place +between +the +and +the +other +countries +the +discussions +have +been +mainly +over +the +divorce +deal +which +sets +out +exactly +how +the +leaves +not +what +will +happen +afterwards +this +deal +known +the +withdrawal +agreemen diff --git a/source/KNN_Classifier/Articles/CleanedText/politic5.txt b/source/KNN_Classifier/Articles/CleanedText/politic5.txt new file mode 100644 index 000000000..326d6a7e4 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic5.txt @@ -0,0 +1,408 @@ +trump +tweet +political +divisions +fuel +rising +discourse +about +new +civil +war +julia +harte +min +read +middletown +reuters +sporting +confederate +flag +shirt +near +field +clouded +cannon +smoke +where +blue +and +gray +clad +soldiers +reenacted +civil +war +battle +from +years +ago +larry +caldwell +piercy +said +sees +new +war +looming +the +united +states +and +role +for +himself +any +fighting +would +all +guerrilla +warfare +not +this +open +field +style +kind +thing +said +gesturing +the +reenactment +the +battle +cedar +creek +middletown +virginia +earlier +this +month +would +probably +officer +that +effort +piercy +one +the +motorcycle +riders +known +the +mechanized +cavalry +the +sons +confederate +veterans +which +has +estimated +members +and +describes +itself +non +political +heritage +organization +that +preserves +the +history +and +legacy +soldiers +the +pro +slavery +confederacy +the +civil +war +also +fierce +supporter +president +donald +trump +democrats +push +impeach +trump +and +controversy +rages +over +whether +remove +monuments +confederate +generals +like +robert +lee +and +stonewall +jackson +piercy +warned +new +civil +war +brewing +you +look +into +rural +areas +and +were +not +seen +but +theres +lot +thatll +come +out +these +hills +keeps +getting +worse +probably +every +sons +confederate +veterans +member +out +there +the +sons +confederate +veterans +which +limits +membership +men +with +civil +war +veteran +ancestors +not +seeking +secede +from +the +nation +revive +slavery +both +southern +causes +the +civil +war +but +they +say +they +are +trying +preserve +the +honor +the +confederacy +celebrating +its +flag +monuments +and +other +symbols +that +are +widely +criticized +tributes +institutional +racism +civilwar +trended +twitter +september +after +trump +quoted +pastor +twitter +post +saying +would +cause +civil +war +like +fracture +the +united +states +were +removed +from +office +the +next +day +the +right +wing +oath +keepers +militia +affirmed +trumps +tweet +its +own +twitter +post +this +the +truth +this +where +are +are +the +verge +hot +civil +war +like +mary +mccord +who +led +the +justice +departments +national +security +division +from +until +may +noted +the +response +from +the +oath +keepers +and +other +pro +trump +armed +groups +and +said +members +the +militia +movement +have +shown +they +are +ready +take +action +based +the +presidents +comments +the +white +house +did +not +respond +request +for +comment +political +violence +while +there +evidence +that +radical +groups +the +right +left +are +organizing +military +campaign +plunge +the +country +into +civil +war +number +attacks +recent +years +have +raised +concerns +about +surge +political +violence +woman +was +killed +when +white +nationalist +plowed +his +car +into +crowd +counter +protesters +rally +right +wing +extremists +charlottesville +virginia +august +suspected +white +nationalist +shot +dead +people +walmart +store +paso +texas +shortly +after +posting +anti +hispanic +manifesto +online diff --git a/source/KNN_Classifier/Articles/CleanedText/politic6.txt b/source/KNN_Classifier/Articles/CleanedText/politic6.txt new file mode 100644 index 000000000..3dd45b87c --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/politic6.txt @@ -0,0 +1,569 @@ +trump +threatens +heavy +price +iran +conducts +sneak +attack +troops +the +iraqi +military +found +pick +truck +with +rocket +launcher +mounted +the +back +and +three +rockets +still +the +cambers +believed +invovled +the +attack +the +the +taji +military +base +north +baghdad +washington +cnnpresident +donald +trump +tweeted +wednesday +without +citing +any +evidence +that +the +administration +has +information +that +iran +its +proxies +are +planning +sneak +attack +troops +andor +assets +iraq +trump +added +this +happens +iran +will +pay +very +heavy +price +indeed +the +presidents +tweet +which +the +white +house +did +not +elaborate +upon +comes +the +has +picked +more +intelligence +the +last +several +days +from +ongoing +stream +indicating +that +iranian +backed +militias +inside +iraq +are +potentially +planning +attack +against +forces +the +near +future +one +official +said +the +white +house +did +not +respond +requests +for +comment +the +intelligence +some +the +latest +threat +stream +that +the +has +been +monitoring +iraq +recent +months +the +official +said +follows +the +killing +irans +second +most +powerful +official +gen +qasem +soleimani +january +and +tit +for +tat +strikes +between +the +and +iraq +based +militias +march +conducts +airstrikes +against +multiple +iranian +backed +militia +sites +iraq +conducts +airstrikes +against +multiple +iranian +backed +militia +sites +iraq +march +warplanes +struck +five +targets +southern +iraq +affiliated +with +militia +with +ties +iran +after +rocket +attack +the +day +before +killed +two +americans +and +british +soldier +secretary +defense +mark +esper +the +attack +was +carried +out +iranian +backed +shia +militia +groups +soleimanis +killing +prompted +calls +for +revenge +from +iranian +officials +and +affiliated +militias +the +region +this +newest +intelligence +includes +information +gathered +from +people +the +region +well +communications +intercepts +the +official +said +comes +iran +reeling +from +the +coronavirus +pandemic +which +has +killed +senior +officials +sent +others +into +isolation +and +left +health +systems +overwhelmed +estimated +known +infections +according +the +world +health +organization +the +coronavirus +has +slowed +down +much +irans +planning +and +possible +could +still +stall +any +attack +the +official +said +since +the +killed +soleimani +there +has +not +been +leader +his +influence +over +the +militias +and +the +forces +once +controlled +inside +iraq +adding +uncertainty +the +new +york +times +has +reported +that +there +has +been +tension +within +the +trump +administration +about +whether +escalate +military +action +against +iran +with +officials +such +secretary +state +mike +pompeo +urging +harder +response +after +the +march +killing +the +two +americans +pompeo +and +national +security +adviser +robert +obrien +have +argued +that +hard +response +iran +while +the +coronavirus +pummels +the +country +would +make +its +leaders +more +open +negotiating +with +the +the +times +reported +but +pentagon +officials +including +esper +and +chairman +the +joint +chiefs +gen +mark +milley +have +argued +against +such +move +they +have +said +that +they +lacked +clear +evidence +the +march +attack +had +been +ordered +iran +the +times +said +and +theyve +cautioned +that +harsher +response +could +give +rise +wider +war +with +iran +and +further +damage +badly +strained +ties +with +iraq +they +warned +the +end +the +conducted +its +march +airstrikes +weapons +depots +since +then +the +pentagon +has +taken +steps +improve +defenses +for +its +troops +stationed +iraq +uses +encrypted +app +connect +with +iranians +coronavirus +sweeps +their +country +uses +encrypted +app +connect +with +iranians +coronavirus +sweeps +their +country +last +month +gen +kenneth +mckenzie +commander +central +command +said +for +the +first +time +that +the +moving +patriot +missile +systems +into +iraq +weve +put +the +preparatory +materiel +place +that +will +allow +establish +patriot +positions +inside +iraq +mckenzie +told +reporters +the +pentagon +the +will +sending +the +patriots +bases +asad +and +irbil +and +will +also +strengthen +both +places +with +counter +artillery +and +rockets +systems +troops +have +also +consolidated +into +fewer +bases +within +iraq diff --git a/source/KNN_Classifier/Articles/CleanedText/sport10.txt b/source/KNN_Classifier/Articles/CleanedText/sport10.txt new file mode 100644 index 000000000..9469cdc51 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport10.txt @@ -0,0 +1,394 @@ +australian +john +millman +facing +roger +federer +the +third +round +the +australian +open +friday +evening +down +under +was +leading +fifth +set +tiebreaker +just +two +points +away +from +pulling +off +the +upset +but +millmans +end +came +soon +enough +typical +federer +flurry +backhand +winner +via +federers +magic +wand +tennis +racquet +millman +committed +unforced +errors +federer +refused +relinquish +the +point +federer +drop +shot +federer +ran +off +six +straight +points +thanks +his +angles +and +agility +still +strong +age +won +the +match +epic +advance +the +fourth +round +which +hell +face +mrton +fucsovics +hungary +federer +enters +the +season +seeking +cushion +his +grand +slam +record +hes +won +grand +slam +singles +titles +more +than +any +other +male +player +ever +but +rafael +nadal +chasing +him +down +nadal +won +the +french +open +his +ridiculous +and +the +open +give +him +grand +slam +championships +for +his +career +federer +last +won +slam +two +years +ago +the +australian +open +novak +djokovic +who +won +the +aussie +open +and +wimbledon +over +federer +the +final +also +very +much +the +mix +with +career +titles +the +tightening +grand +slam +race +tennis +most +enticing +subplot +the +season +federer +could +face +djokovic +the +semifinals +this +australian +open +and +nadal +potentially +tantalizing +final +federer +however +insists +hes +not +focused +his +slam +total +fans +and +media +the +end +the +day +dont +play +tennis +just +protect +that +record +federer +told +time +before +the +start +the +tournament +actually +here +create +own +story +for +federer +breaking +the +grand +slam +record +was +career +pinnacle +passed +pete +sampras +who +won +singles +titles +wimbledon +when +outlasted +andy +roddick +the +final +winning +the +fifth +set +that +was +moment +says +federer +anything +else +always +said +was +bonus +would +federer +prefer +hold +the +grand +slam +record +forever +course +but +nadal +djokovic +someone +else +down +the +road +surpasses +him +federer +swears +hes +totally +peace +totally +peace +hes +already +began +planning +for +his +future +late +last +year +federer +announced +was +becoming +investor +swiss +footwear +brand +federer +plans +being +much +more +than +passive +participant +the +company +hes +passionate +sneakerhead +and +hell +involved +the +design +shoes +federer +joins +the +growing +list +superstar +athletes +who +are +doing +more +than +simply +signing +rich +endorsement +deals +with +big +companies +though +federer +still +has +plenty +those +with +companies +like +uniqlo +rolex +credit +suisse +lebron +james +has +production +company +tom +brady +has +his +health +imprint +federer +however +hasnt +looked +other +athletes +for +business +inspiration +federer +said +was +unaware +james +production +company +springhill +entertainment +until +mentioned +conversation diff --git a/source/KNN_Classifier/Articles/CleanedText/sport11.txt b/source/KNN_Classifier/Articles/CleanedText/sport11.txt new file mode 100644 index 000000000..7a968c5e5 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport11.txt @@ -0,0 +1,766 @@ +reasons +why +world +football +the +best +sport +the +world +there +are +people +who +debate +what +the +most +popular +sport +the +world +most +people +may +argue +that +american +football +basketball +the +most +popular +sport +however +those +who +try +make +arguments +for +those +sports +will +highly +opposed +the +fans +world +football +world +football +global +game +that +connects +almost +every +single +person +the +planet +here +are +reasons +why +world +football +the +best +sport +the +world +passion +surrounding +the +sport +matter +where +you +watch +football +match +one +thing +never +changes +that +one +thing +the +passion +that +everyone +around +the +game +contains +for +football +regardless +what +part +the +world +you +are +the +passion +for +the +sport +remains +the +same +the +same +passion +that +seen +homes +across +the +world +seen +the +stadium +and +the +pitch +during +each +matchday +every +major +stadium +world +football +packed +each +weekend +with +fans +that +would +anything +for +their +club +and +players +that +would +the +same +other +sport +the +world +can +rival +the +passion +during +matches +and +the +week +leading +each +match +every +week +world +football +rivalry +matches +one +the +best +times +during +each +football +season +when +two +bitter +rivals +face +off +against +each +other +these +rivalry +matches +are +separate +from +the +crosstown +derby +matches +but +they +create +the +same +hate +and +passion +toward +the +opposing +clubs +perfect +example +this +would +the +manchester +united +liverpool +matches +that +showcase +two +the +most +successful +clubs +english +football +other +rivalries +get +created +through +continental +matchups +like +barcelona +manchester +united +two +the +last +four +uefa +champions +league +finals +these +rivalries +not +only +add +intrigue +the +buildup +each +match +but +they +also +add +the +play +the +pitch +each +rivalry +match +played +world +football +the +impetus +the +players +from +both +clubs +raised +above +their +normal +level +age +limit +all +the +primary +american +professional +sports +require +their +athletes +certain +age +play +for +example +the +nfl +has +policy +that +players +have +three +years +out +high +school +before +entering +the +nfl +draft +the +nba +players +must +year +removed +from +high +school +before +entering +the +draft +world +football +there +are +age +requirements +for +players +take +the +pitch +once +club +thinks +player +ready +play +first +team +football +they +will +throw +that +player +out +the +pitch +the +latest +examples +this +process +are +raheem +sterling +liverpool +and +luke +shaw +southampton +both +players +made +their +debuts +the +age +this +season +and +impressed +their +fans +with +spectacular +performances +sterling +shaw +were +american +football +basketball +players +they +would +not +able +represent +their +teams +until +the +age +the +earliest +historic +stadiums +america +you +can +barely +find +historic +stadiums +that +were +built +over +century +ago +across +europe +and +south +america +that +the +custom +for +football +stadiums +palatial +stadiums +like +anfield +old +trafford +camp +nou +maracana +azteca +and +the +bernabeu +have +stood +for +years +and +will +going +nowhere +anytime +soon +every +time +football +fan +steps +into +one +those +wonderful +stadiums +sense +awe +and +wonderment +fill +the +spectators +body +american +sports +stadiums +rarely +last +over +years +due +sports +franchises +the +united +states +having +keep +with +every +other +franchise +the +game +relegation +one +the +most +unique +facets +world +football +the +relegation +most +top +flight +leagues +have +their +worst +three +clubs +sent +down +the +division +below +them +instead +the +reward +high +draft +pick +like +american +sports +the +worst +clubs +world +football +are +forced +suffer +the +utter +pain +relegation +the +relegation +system +truly +unique +and +makes +match +between +two +clubs +the +bottom +table +worth +watching +because +the +relegation +factor +promotion +the +opposite +end +the +spectrum +promotion +the +top +flight +means +everything +club +even +club +stays +top +european +league +like +the +epl +liga +for +just +one +season +the +financial +gains +and +fan +recognition +will +forever +help +the +promoted +club +some +clubs +relish +the +opportunity +earn +promotion +the +top +flight +their +country +more +than +the +opportunity +qualify +for +the +european +places +spot +the +table +where +most +promoted +clubs +barely +reach +dramatic +announcers +world +football +rarely +gets +criticized +for +its +abundance +quality +play +play +announcers +the +cream +the +crop +world +football +announcing +martin +tyler +who +has +been +calling +premier +league +matches +since +its +inception +tylers +voice +has +become +known +across +the +globe +with +his +call +sergio +agueros +goal +win +the +epl +title +last +season +being +his +most +recent +historic +call +fans +the +epl +have +also +been +graced +with +the +voice +ian +darke +who +has +come +the +forefront +football +broadcasting +over +the +past +few +years +his +work +continues +alongside +former +liverpool +player +steve +mcmanaman +for +espn +another +fantastic +voice +call +world +football +matches +ray +hudson +whose +commentary +for +numerous +european +leagues +recent +years +has +gained +plenty +popularity +with +three +the +greatest +voices +the +world +calling +the +sport +why +even +look +another +sport +for +better +commentary diff --git a/source/KNN_Classifier/Articles/CleanedText/sport12.txt b/source/KNN_Classifier/Articles/CleanedText/sport12.txt new file mode 100644 index 000000000..10339198f --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport12.txt @@ -0,0 +1,513 @@ +eddie +jones +has +agreed +contract +extension +coach +england +through +the +rugby +world +cup +france +the +year +olds +current +contract +was +due +expire +august +but +had +been +set +for +new +deal +since +leading +england +the +world +cup +final +last +year +jones +has +win +ratio +since +taking +the +role +the +end +have +great +team +and +excited +about +raising +the +standards +again +jones +said +the +timing +the +announcement +comes +the +midst +the +coronavirus +crisis +with +many +the +rfu +and +the +wider +rugby +community +fearing +for +their +futures +thoughts +and +those +all +the +rfu +are +with +everyone +impacted +covid +both +across +the +country +large +but +also +within +our +own +rugby +union +community +exceptionally +difficult +times +are +pleased +sharing +some +good +news +said +rfu +chief +executive +bill +sweeney +jones +added +the +extension +great +honour +for +but +the +current +environment +only +right +acknowledge +what +difficult +time +the +world +facing +are +all +looking +forward +time +when +can +get +back +playing +rugby +and +use +the +sport +force +for +good +bringing +people +back +together +jones +was +appointed +december +replacing +stuart +lancaster +after +disappointing +home +world +cup +that +autumn +led +england +record +equalling +unbeaten +run +which +included +grand +slam +and +six +nations +title +the +year +after +the +teams +form +slumped +but +jones +arrested +the +slide +before +the +world +cup +japan +there +superb +victories +over +australia +the +quarter +finals +and +new +zealand +the +semi +finals +established +jones +men +favourites +beat +south +africa +the +final +but +inspired +springboks +performance +condemned +under +par +england +defeat +concerns +over +the +impact +that +loss +the +final +were +exacerbated +when +england +were +beaten +france +paris +their +six +nations +opener +but +they +rallied +with +victories +against +scotland +ireland +and +wales +seal +the +triple +crown +before +the +championship +was +curtailed +because +the +coronavirus +pandemic +set +out +four +years +ago +the +best +team +the +world +and +unfortunately +missed +that +minutes +jones +said +thursday +now +want +the +team +that +remembered +being +the +greatest +team +the +game +has +ever +seen +its +big +ambition +but +believe +are +capable +doing +jones +does +lead +england +through +france +will +eclipse +world +cup +winner +sir +clive +woodward +the +countrys +longest +serving +boss +jones +win +record +puts +him +alongside +woodward +one +englands +greatest +ever +coaches +but +successive +rfu +chiefs +have +had +reprimand +him +over +his +conduct +following +the +win +over +wales +the +start +march +the +rfu +apologised +jones +behalf +after +suggested +referee +ben +okeefe +was +biased +his +decision +making +but +sweeney +clearly +comfortable +that +the +occasional +controversy +that +surrounds +jones +fair +exchange +for +establishing +england +leading +force +the +global +game +reached +understanding +soon +after +returning +from +japan +but +there +were +some +things +that +wanted +make +sure +worked +for +both +sides +sweeney +added +have +announced +eddies +contract +extension +few +weeks +later +than +planned +our +focus +was +diverted +support +the +english +rugby +community +during +this +difficult +time +are +now +turning +our +attention +developing +plans +support +the +rebooting +rugby +and +winning +england +team +will +provide +vital +role +that +england +are +third +the +world +rugby +rankings +behind +south +africa +and +new +zealand +last +month +jones +joined +members +the +rfu +executive +board +taking +pay +reduction +excess +predominantly +the +form +forgone +bonuses +response +the +financial +impact +covid diff --git a/source/KNN_Classifier/Articles/CleanedText/sport13.txt b/source/KNN_Classifier/Articles/CleanedText/sport13.txt new file mode 100644 index 000000000..fe9db0986 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport13.txt @@ -0,0 +1,804 @@ +jessie +knight +the +primary +school +teacher +who +beat +some +the +worlds +best +the +indoor +season +big +names +open +small +tracks +chance +for +fans +get +close +athletics +biggest +and +brightest +ask +jessie +knight +the +year +old +primary +school +teacher +from +surrey +travelled +for +the +glasgow +grand +prix +the +citys +emirates +arena +february +justyna +swiety +ersetic +all +time +favourite +runner +love +watching +her +race +and +anchoring +the +polish +relay +team +said +the +week +before +really +hope +shes +the +race +knight +told +bbc +sport +she +was +the +thing +was +was +knight +was +completely +overwhelming +adds +knight +who +gave +athletics +concentrate +teaching +october +only +later +return +the +sport +had +rarely +ever +been +full +stadium +before +was +very +very +nervous +very +starstruck +joining +european +champion +swiety +ersetic +and +knight +the +field +were +the +netherlands +lisanne +witte +bronze +medallist +berlin +doha +world +championship +finalist +iga +baumgart +witan +and +jamaican +pair +janieve +russell +and +stephenie +ann +macpherson +both +veterans +world +and +olympic +individual +finals +was +nervous +the +start +knight +recalls +legs +were +shaking +much +that +when +they +called +back +after +false +start +thought +was +because +was +moving +the +blocks +instead +was +problem +with +the +starting +gun +the +officials +worked +fix +the +faulty +firearm +knight +watched +armand +duplantis +set +new +pole +vault +world +record +the +field +further +underlining +the +elite +company +she +was +keeping +when +the +race +finally +got +under +way +there +was +simple +remedy +ward +off +any +stage +fright +knight +kept +the +stars +out +sight +and +out +mind +going +out +hard +lead +halfway +think +originally +the +crowd +probably +thought +good +you +for +giving +good +she +says +honest +was +just +kind +waiting +for +them +that +whole +second +lap +was +thinking +where +are +they +cant +feel +them +yet +then +the +last +bend +could +sense +swiety +ersetic +shoulder +the +crowd +were +going +mad +down +the +home +straight +and +was +like +please +hold +please +hold +she +did +knights +victory +was +the +biggest +her +career +far +her +winning +time +seconds +makes +her +the +fourth +fastest +woman +the +world +far +this +strangest +sporting +years +they +werent +expecting +there +adds +knight +was +the +only +one +wearing +club +vest +for +example +they +wouldnt +have +known +name +all +nobody +really +said +anything +else +cooldowns +apart +from +swiety +ersetic +kind +patting +the +shoulder +and +congratulating +would +probably +say +they +were +quite +shocked +because +was +too +jessie +knight +her +way +winning +the +the +glasgow +grand +prix +knight +powered +into +the +lead +glasgow +and +never +looked +back +eight +days +later +she +was +back +the +classroom +with +her +year +six +pupils +danetree +school +ewell +since +her +win +glasgow +they +had +enjoyed +their +half +term +holidays +and +knight +had +enjoyed +follow +victory +the +british +indoor +championships +had +round +applause +walked +she +recalls +they +were +very +excited +they +thought +british +championships +medal +was +real +gold +feel +like +they +are +the +journey +with +they +give +lots +cute +cards +and +messages +and +the +parents +and +school +have +been +supportive +miss +knights +superhero +style +side +hustle +world +class +athlete +was +very +nearly +squeezed +out +before +could +start +her +first +year +the +job +she +attempted +combine +teaching +and +competing +after +just +month +the +workload +proved +too +great +actually +felt +quite +relieved +when +made +that +decision +first +just +because +the +month +doing +both +was +tough +she +says +had +decided +teaching +was +career +that +was +how +was +going +earn +money +and +was +time +grown +she +threw +herself +into +teaching +marking +and +planning +late +into +the +night +the +prospect +cold +lonely +winter +training +sessions +was +easy +ignore +but +come +the +summer +her +athlete +friends +social +media +prepared +race +once +more +the +track +called +her +back +suddenly +realised +let +something +that +was +quite +good +and +really +love +she +adds +she +got +back +contact +with +coach +marina +armstrong +and +got +back +work +she +was +within +four +hundredths +second +making +the +british +team +for +doha +last +year +and +had +hoped +secure +individual +spot +the +hurdles +her +preferred +event +for +the +tokyo +olympics +with +perhaps +relay +role +the +cards +those +plans +like +her +teaching +life +have +been +scattered +the +coronavirus +pandemic +but +knight +knows +that +some +her +achievements +cannot +measured +the +stopwatch +weight +medals +denied +quarantine +and +lockdown +shy +eight +year +old +her +talent +was +spotted +her +own +teacher +bezodis +now +she +the +one +broadening +pupils +possibilities +for +what +they +can +they +know +when +come +really +tired +from +lactic +session +the +night +before +she +adds +make +sure +they +know +not +just +wow +miss +knight +can +run +really +fast +its +actually +miss +knight +works +really +hard +and +now +paying +off +that +good +for +them +learn +for +girls +this +age +not +always +their +favourite +subject +but +think +has +definitely +made +them +think +actually +girls +can +sport +because +some +years +old +dont +always +think +that +they +can +having +role +model +that +involved +with +sport +has +definitely +impacted +them +and +made +them +want +more +feel +quite +passionately +about +sport +well +and +the +positive +impact +had +life +glad +that +get +pass +that diff --git a/source/KNN_Classifier/Articles/CleanedText/sport7.txt b/source/KNN_Classifier/Articles/CleanedText/sport7.txt new file mode 100644 index 000000000..7811d75d7 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport7.txt @@ -0,0 +1,409 @@ +the +german +bundesliga +one +europes +top +football +leagues +and +has +produced +some +the +worlds +best +players +over +the +years +with +teams +competing +each +year +the +league +known +for +its +passionate +fans +high +scoring +matches +and +competitive +balance +the +current +season +has +been +dominated +bayern +munich +who +have +been +outstanding +form +winning +their +matches +far +with +formidable +squad +including +star +players +like +robert +lewandowski +and +thomas +muller +its +surprise +that +bayern +are +running +away +with +the +league +title +however +the +race +for +second +place +has +been +closely +contested +battle +with +leipzig +borussia +dortmund +and +eintracht +frankfurt +all +contention +leipzig +particular +have +been +standout +team +this +season +with +their +young +and +talented +squad +putting +some +impressive +performances +another +team +watch +out +for +borussia +monchengladbach +who +have +been +consistently +performing +well +and +sit +just +few +points +behind +the +top +teams +their +manager +marco +rose +has +been +instrumental +their +success +and +the +team +has +strong +chance +securing +champions +league +spot +for +next +season +that +was +mbapps +first +contribution +game +where +had +been +held +quiet +that +point +and +quickly +gave +reminder +why +considered +the +heir +messis +throne +just +minute +later +coman +played +mbapp +who +volleyed +into +the +net +after +was +sent +back +across +marcus +thuram +argentina +were +suddenly +stunned +and +their +heels +messis +moment +danger +evaporating +see +also +emiliano +martinez +saves +randal +kolo +muanis +shot +extra +time +world +cup +emiliano +martnezs +heroics +save +argentina +clutch +for +world +cup +title +was +messi +though +who +delivered +extra +time +goal +that +seemed +put +the +trophy +back +into +argentinas +hands +the +ball +came +off +hugo +lloris +who +had +saved +lautaro +martnezs +initial +shot +and +messi +his +right +leg +whacked +just +over +the +line +for +lead +mbapp +and +france +though +had +one +gasp +left +montiels +handball +the +box +gave +the +year +old +superstar +another +penalty +kick +with +two +minutes +left +extra +time +there +was +question +would +finish +the +hat +trick +and +short +order +did +sealing +the +golden +boot +for +the +most +goals +the +tournament +france +nearly +won +two +minutes +into +stoppage +time +forcing +argentina +keeper +emiliano +martnez +into +desperation +kick +save +muani +but +martnezs +foot +found +the +ball +and +sent +the +game +into +penalties +that +was +where +france +finally +succumbed +with +martnez +getting +hand +kingsley +comans +attempt +and +aurlien +tchouamni +missing +wide +left +argentina +were +flawless +four +for +four +and +was +only +right +that +montiel +provided +the +winner +there +are +lot +emotions +but +its +cruel +the +end +deschamps +said +are +close +something +could +have +touched +but +not +the +case diff --git a/source/KNN_Classifier/Articles/CleanedText/sport8.txt b/source/KNN_Classifier/Articles/CleanedText/sport8.txt new file mode 100644 index 000000000..efbc33492 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport8.txt @@ -0,0 +1,333 @@ +was +supposed +japans +year +delaying +the +olympics +just +the +latest +gut +punch +ichio +yunokis +hotel +was +suffering +even +before +prime +minister +shinzo +abe +announced +the +tokyo +olympics +would +delayed +one +year +nearly +the +guests +who +had +booked +rooms +march +had +cancelled +because +coronavirus +travel +restrictions +and +with +the +postponement +the +games +expects +lose +most +his +bookings +this +summer +well +its +had +huge +impact +our +business +and +for +others +its +been +even +worsea +hotelier +know +had +shut +down +just +couldnt +survive +the +current +situation +said +yunoki +who +runs +the +little +japan +guest +house +asakusabashi +popular +tourist +district +tokyo +abes +announcement +tuesday +that +the +tokyo +olympic +games +which +had +been +scheduled +for +july +would +delayed +until +coupled +with +the +ever +growing +coronavirus +pandemic +one +two +punch +japan +what +was +meant +big +year +for +the +country +but +tuesday +was +becoming +clear +the +olympics +would +not +happen +this +year +and +new +coronavirus +cases +emerged +japan +koike +adjusted +her +tone +saying +citywide +lockdown +tokyo +was +still +possibility +may +have +choice +but +impose +strict +isolation +measures +prevent +further +spread +tokyo +lockdown +soon +shot +the +top +japans +trending +topics +twitter +far +surpassing +anything +about +the +olympics +and +showing +just +how +much +the +long +shadow +coronavirus +has +darkened +what +was +supposed +japans +moment +the +sun +the +delay +was +hardly +surprise +japan +but +came +after +weeks +mounting +criticism +from +athletes +and +national +olympic +organizations +the +world +over +including +several +that +said +they +would +refuse +send +teams +the +tokyo +games +they +carried +planned +tuesday +editorial +asahi +shimbun +one +japans +largest +newspapers +criticized +both +abe +and +the +international +olympic +committee +for +taking +long +come +decision +the +waffling +said +had +awakened +international +distrust +the +ioc +and +japans +leadership +had +bumbled +the +situation +following +abes +announcement +tokyo +gov +yuriko +koike +then +added +that +they +would +still +called +the +olympics +causing +twitter +erupt +one +user +suggested +adding +make +the +name +usable +for +years +another +shared +image +the +logo +with +the +last +covered +red +stampthe +way +mistake +would +corrected +japanese +documents +and +nod +the +countrys +fastidiousness +about +paperwork diff --git a/source/KNN_Classifier/Articles/CleanedText/sport9.txt b/source/KNN_Classifier/Articles/CleanedText/sport9.txt new file mode 100644 index 000000000..9d2215e61 --- /dev/null +++ b/source/KNN_Classifier/Articles/CleanedText/sport9.txt @@ -0,0 +1,209 @@ +you +know +football +currently +postponed +around +the +entire +world +due +the +coronavirus +crisis +apart +from +belarus +that +thats +right +while +the +rest +the +sporting +world +has +been +plunged +into +blackout +the +belarusian +premier +league +continuing +behind +closed +doors +while +its +good +news +for +the +football +fans +belarus +the +decision +has +brought +plenty +criticism +their +way +with +players +union +fifpro +saying +the +decision +carry +despite +the +coronavirus +outbreak +frankly +not +comprehendible +however +belarusian +president +alexander +lukashenko +has +refused +cancel +the +countrys +sporting +action +and +believes +has +found +cure +fight +covid +drinking +vodka +and +going +saunas +but +their +attitude +towards +the +virus +has +seen +big +part +one +belarus +big +sporting +success +stories +quit +and +return +home +the +scottish +coach +peter +leven +the +former +kilmarnock +coach +has +recently +left +his +role +dynamo +brest +assistant +manager +where +helped +the +club +their +first +ever +league +title +last +season +and +knocked +giants +bate +borisov +off +their +perch +after +winning +straight +championships +was +regarded +one +eastern +europes +biggest +football +shocks +and +means +brest +will +the +champions +league +next +season +but +leven +wont +there +after +quit +return +home +and +with +his +family +during +this +difficult +time +joined +former +teammate +ally +mccoist +and +breakfast +host +laura +woods +talksport +explain +why +and +you +can +read +the +full +interview +below diff --git a/source/KNN_Classifier/Articles/Input/Input.txt b/source/KNN_Classifier/Articles/Input/Input.txt new file mode 100644 index 000000000..779a2d21e --- /dev/null +++ b/source/KNN_Classifier/Articles/Input/Input.txt @@ -0,0 +1,19 @@ +The German Bundesliga is one of Europe's top football leagues and has produced some of the world's best players over the years. With 18 teams competing each year, the league is known for its passionate fans, high-scoring matches, and competitive balance. + +The current season has been dominated by Bayern Munich, who have been in outstanding form, winning 20 of their 22 matches so far. With a formidable squad, including star players like Robert Lewandowski and Thomas Muller, it's no surprise that Bayern are running away with the league title. + +However, the race for second place has been a closely contested battle, with RB Leipzig, Borussia Dortmund, and Eintracht Frankfurt all in contention. RB Leipzig, in particular, have been a standout team this season, with their young and talented squad putting in some impressive performances. + +Another team to watch out for is Borussia Monchengladbach, who have been consistently performing well and sit just a few points behind the top teams. Their manager, Marco Rose, has been instrumental in their success, and the team has a strong chance of securing a Champions League spot for next season.That was Mbapps first contribution in a game where he had been held quiet to that point, and he quickly gave a reminder of why he is considered the heir to Messis throne. Just a minute later, Coman played in Mbapp, who volleyed it into the net after it was sent back across by Marcus Thuram. Argentina were suddenly stunned and on their heels, Messis moment in danger of evaporating. + +SEE ALSO +Emiliano Martinez saves Randal Kolo Muani's shot in extra time. +2022 WORLD CUP +Emiliano Martnezs heroics save Argentina in clutch for World Cup title +It was Messi, though, who delivered an extra-time goal that seemed to put the trophy back into Argentinas hands. The ball came off Hugo Lloris, who had saved Lautaro Martnezs initial shot, and Messi, on his right leg, whacked it just over the line for a 3-2 lead. + +Mbapp and France, though, had one gasp left. Montiels handball in the box gave the 23-year-old superstar another penalty kick with two minutes left in extra time. There was no question he would finish the hat trick, and in short order, he did sealing the Golden Boot for the most goals in the tournament. France nearly won it two minutes into stoppage time, forcing Argentina keeper Emiliano Martnez into a desperation kick save on Muani, but Martnezs foot found the ball, and sent the game into penalties. + +That was where France finally succumbed, with Martnez getting a hand to Kingsley Comans attempt and Aurlien Tchouamni missing wide left. Argentina were a flawless four-for-four, and it was only right that Montiel provided the winner. + +There are a lot of emotions, but its cruel in the end, Deschamps said. We are close to something we could have touched, but it is not the case. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/SaveFile b/source/KNN_Classifier/Articles/SaveFile new file mode 100644 index 000000000..88ab2c55d Binary files /dev/null and b/source/KNN_Classifier/Articles/SaveFile differ diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_1.txt b/source/KNN_Classifier/Articles/TrainingData/politic_1.txt new file mode 100644 index 000000000..44b425df0 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_1.txt @@ -0,0 +1,19 @@ +Biden ‘confident’ he’s the Democratic nominee, despite Sanders claiming he still has 'path' +Sen. Bernie Sanders argues that there’s still “a narrow path” for him to win the Democratic presidential nomination – but front-runner Joe Biden disagrees, saying he feels “confident” he will be the party’s nominee. + +Starting with his landslide victory in South Carolina one month ago, Biden has crushed populist senator from Vermont and built up a large lead in the crucial race for convention delegates, making him the all-but-certain Democratic nominee. + +Biden also enjoys a massive wave of support from former 2020 rivals and leading Democratic members of Congress, governors, unions and other groups, as much of the party consolidated behind the former vice president’s White House bid. + +TOP DEMOCRATS SAY CONVENTION MAY BE CANCELLED OVER CORONAVIRUS THREAT + +Sanders, however, said Monday in an appearance on "Late Night with Seth Meyers" that “we’re about 300 delegates behind. Biden has 1,200. We have 900. There is a path.” + +The progressive champion who’s making his second straight White House run then acknowledged, “It is admittedly a narrow path.” + +“There are a lot of people who are supporting me," he then said. " We have a strong grassroots movement, who believe that we have got to stay in order to continue the fight to make the world know that we need 'Medicare-for-all,' that we need to raise the minimum wage to a living wage, that we need paid family and medical leave.” + +Meanwhile, in an interview Tuesday night with MSNBC, Biden emphasized that even with Sanders staying in the race he felt “confident about being the nominee. I don’t see much that’s going to make it — be able to change that.” +And Biden's campaign - in a fundraising email Wednesday to supporters - described their candidate as the "crystal clear frontrunner." + +The former vice president needs the backing of Sanders and his legions of younger voters and progressives to fully unite the party as he prepares to challenge President Trump in the general election. He acknowledged Tuesday that “Bernie has a lot of very, very strong and ardent followers and I think that it’s a hard decision. I’m not going to tell him whether he has to stay in or get out. That’s his decision.” \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_2.txt b/source/KNN_Classifier/Articles/TrainingData/politic_2.txt new file mode 100644 index 000000000..9e958da56 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_2.txt @@ -0,0 +1,13 @@ +McConnell says Trump impeachment trial 'diverted the attention' of the government as coronavirus entered US +Senate Majority Leader Mitch McConnell, R-Ky., argued Tuesday the federal government was distracted by the Democratic-led impeachment trial of President Trump when the coronavirus outbreak began. + +McConnell gave credit to Sen. Tom Cotton, R-Ark., for paying attention to the severity of the outbreak at a time when the Senate as a whole was occupied. + +MCCONNELL ADMONISHES PELOSI OVER CORONAVIRUS AID BILL: 'I WISH SHE'D TURN OFF THOSE POLITICAL TALKING POINTS' + +"He was first, and I think Tom was right on the mark. And it came up while we were tied down on the impeachment trial," McConnell said on Hugh Hewitt's radio program. "And I think it diverted the attention of the government, because everything every day was all about impeachment. But Tom figured this out early, and he was absolutely right." + +Former McConnell aide John Ashbrook also pointed this out Tuesday, stating that the pandemic is believed to have hit the United States the same day that House Democrats marched articles of impeachment to the Senate after House Speaker Nancy Pelosi held off on moving forward on impeachment for weeks. +The Senate majority leader took another dig at Pelosi for playing partisan politics at a time that both parties had been working together for a common goal, noting how soon this took place after a partisan impeachment process. + +"I think you know, what really is noteworthy about this is we pivoted from the most partisan thing you could possibly be involved in, the impeachment of a president, to a unanimous vote on a $2 trillion dollar package all within a couple of months," he said. "So we did have an outbreak of, you know, kind of the old-fashioned impeachment partisanship, which I think was generated by the speaker trying to, you know, get into the Senate process." \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_3.txt b/source/KNN_Classifier/Articles/TrainingData/politic_3.txt new file mode 100644 index 000000000..f17980da1 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_3.txt @@ -0,0 +1,12 @@ +Trump administration won't reopen Obamacare enrollment for uninsured as coronavirus spreads +(CNN)The Trump administration has decided not to reopen enrollment in the Affordable Care Act's federal exchanges amid the rising coronavirus pandemic, a senior administration official said Tuesday evening. + +Pressure had been building on the White House to launch a special enrollment period to allow the uninsured to purchase Obamacare policies. The decision came the same day that President Donald Trump warned of a painful two-week stretch ahead as infections continue to spread. +Democratic lawmakers asked administration officials to temporarily reopen the exchanges several weeks ago. Also, two leading health insurance industry groups wrote congressional leaders in mid-March asking for such a move. +"Given the risk posed by Covid-19, it is more important than ever for people to have health coverage," the CEOs of America's Health Insurance Plans and Blue Cross Blue Shield Association wrote, referring to the disease caused by coronavirus. +The administration's decision was first reported by Politico. +Eleven states that run their own Obamacare exchanges, along with the District of Columbia, have launched temporary special enrollment periods so their uninsured residents can obtain coverage outside the usual time frame. +Open enrollment typically runs from Nov. 1 to Dec. 15 in the 38 states that use the federal exchange, healthcare.gov. +Nearly 28 million non-elderly Americans were uninsured in 2018, according to the most recent Census Bureau data available. The lack of coverage has been a key weak point in the nation's fight to stem the outbreak. Americans who are uninsured may hesitate to get checked if they feel ill, which could lead to their infecting others, experts say. +More than 188,000 people had tested positive in the US and roughly 3,900 had died as of Tuesday evening, according to Johns Hopkins University. Thousands more have gone to emergency rooms or been hospitalized, potentially racking up hundreds or thousands of dollars in medical bills. +The newly unemployed who lose their employer-based coverage are allowed to sign up for Obamacare policies within 60 days of becoming uninsured diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_4.txt b/source/KNN_Classifier/Articles/TrainingData/politic_4.txt new file mode 100644 index 000000000..0a70c7f7c --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_4.txt @@ -0,0 +1,24 @@ +Brexit: Your simple guide to the UK leaving the EU +Feeling a little lost on Brexit? Never really got your head around it in the first place? Let us walk you through it. + +What is Brexit? +Brexit is short for "British exit" - and is the word people use to talk about the United Kingdom's decision to leave the European Union (EU). + +What is the EU? +The EU is a political and economic union of 28 countries that trade with each other and allow citizens to move easily between the countries to live and work (click here if you want to see the full list). + +The UK joined the EU, then known as the EEC (European Economic Community), in 1973. + +Why is the UK leaving? +A public vote - called a referendum - was held on Thursday 23 June 2016 when voters were asked just one question - whether the UK should leave or remain in the European Union. + +The Leave side won by nearly 52% to 48% - 17.4m votes to 16.1m - but the exit didn't happen straight away. + +It was due to take place on 29 March 2019 - but the departure date has been delayed (we will explain in more detail below). + +What has happened so far? +The 2016 vote was just the start. Since then, negotiations have been taking place between the UK and the other EU countries. + +The discussions have been mainly over the "divorce" deal, which sets out exactly how the UK leaves - not what will happen afterwards. + +This deal is known as the Withdrawal Agreemen \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_5.txt b/source/KNN_Classifier/Articles/TrainingData/politic_5.txt new file mode 100644 index 000000000..7628d6d85 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_5.txt @@ -0,0 +1,31 @@ +Trump tweet, political divisions fuel rising discourse about new U.S. civil war +Julia Harte +6 MIN READ + +MIDDLETOWN, Va. (Reuters) - Sporting a Confederate flag shirt near a field clouded by cannon smoke, where blue- and gray-clad soldiers reenacted a Civil War battle from 155 years ago, Larry Caldwell Piercy, Jr. said he sees a new war looming in the United States - and a role for himself in any fighting. +“It would be all guerrilla warfare, not this open field-style kind of thing,” he said, gesturing at the reenactment of the 1864 Battle of Cedar Creek in Middletown, Virginia, earlier this month. “I would probably be an officer in that effort.” + +Piercy, 62, is one of the motorcycle riders known as the “mechanized cavalry” of the Sons of Confederate Veterans, which has an estimated 30,000 members and describes itself as a “non-political heritage organization” that preserves the history and legacy of soldiers in the pro-slavery Confederacy in the 1861-1865 Civil War. + +He is also a fierce supporter of President Donald Trump. + +As Democrats push to impeach Trump and controversy rages over whether to remove monuments to Confederate generals like Robert E. Lee and Stonewall Jackson, Piercy warned a new civil war is brewing. + +“You look into rural areas, and we’re not seen, but there’s a lot of us that’ll come out of these hills if it keeps getting worse. Probably every Sons of Confederate Veterans member out there.” + +The Sons of Confederate Veterans, which limits membership to men with Civil War veteran ancestors, is not seeking to secede from the nation or to revive slavery, both Southern causes in the 1861-1865 Civil War. But they say they are trying to preserve the honor of the Confederacy by celebrating its flag, monuments, and other symbols that are widely criticized as tributes to institutional racism. + +“#CivilWar2” trended on Twitter in September after Trump quoted a pastor in a Twitter post saying it would “cause a Civil War like fracture” in the United States if he were removed from office. + +The next day, the right-wing Oath Keepers militia affirmed Trump’s tweet in its own Twitter post: “This is the truth. This is where we are. We ARE on the verge of a HOT civil war. Like in 1859.” + +Mary McCord, who led the Justice Department’s national security division from 2016 until May 2017, noted the response from the Oath Keepers and other pro-Trump armed groups, and said members of the U.S. militia movement have shown they are ready to take action based on the president’s comments. + +The White House did not respond to a request for comment. + +POLITICAL VIOLENCE +While there is no evidence that radical groups on the right or left are organizing a military campaign to plunge the country into civil war, a number of attacks in recent years have raised concerns about a surge in political violence. + +A woman was killed when a white nationalist plowed his car into a crowd of counter-protesters at a rally of right-wing extremists in Charlottesville, Virginia, in 2017. + +In August, a suspected white nationalist shot dead 22 people at a Walmart store in El Paso, Texas, shortly after posting an anti-Hispanic manifesto online. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/politic_6.txt b/source/KNN_Classifier/Articles/TrainingData/politic_6.txt new file mode 100644 index 000000000..6e5ccb985 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/politic_6.txt @@ -0,0 +1,20 @@ +Trump threatens heavy price if Iran conducts 'sneak attack' on US troops +The Iraqi military found a pick-up truck with a rocket launcher mounted in the back and three rockets still in the cambers, believed to be invovled in the attack on the the Taji military base north of Baghdad. +Washington (CNN)President Donald Trump tweeted Wednesday, without citing any evidence, that the administration has information that "Iran or its proxies are planning a sneak attack on US troops and/or assets in Iraq." Trump added, "If this happens, Iran will pay a very heavy price, indeed!" + +The President's tweet, which the White House did not elaborate upon, comes as the US has picked up more intelligence in the last several days from an ongoing stream indicating that Iranian-backed militias inside Iraq are potentially planning an attack against US forces in the near future, one US official said. +The White House did not respond to requests for comment. +The intelligence is some of the latest in a threat stream that the US has been monitoring in Iraq in recent months, the official said. It follows the US killing of Iran's second most powerful official, Gen. Qasem Soleimani, in January, and tit-for-tat strikes between the US and Iraq-based militias in March. +US conducts airstrikes against multiple Iranian-backed militia sites in Iraq +US conducts airstrikes against multiple Iranian-backed militia sites in Iraq +On March 12, US warplanes struck five targets in southern Iraq affiliated with a militia with ties to Iran after a rocket attack the day before killed two Americans and a British soldier. Secretary of Defense Mark Esper the attack was carried out by Iranian-backed Shia militia groups. Soleimani's killing prompted calls for revenge from Iranian officials and affiliated militias in the region. +This newest intelligence includes information gathered from people in the region as well as communications intercepts, the official said. It comes as Iran is reeling from the coronavirus pandemic, which has killed senior officials, sent others into isolation and left health systems overwhelmed by an estimated 47,000 known infections, according to the World Health Organization. +The coronavirus has slowed down much of Iran's planning and it is possible it could still stall any attack, the official said. Since the US killed Soleimani, there has not been a leader of his influence over the militias and the forces he once controlled inside Iraq, adding to uncertainty. +The New York Times has reported that there has been tension within the Trump administration about whether to escalate military action against Iran, with officials such as Secretary of State Mike Pompeo urging a harder response after the March 11 killing of the two Americans. +Pompeo and national security adviser Robert O'Brien have argued that a hard response to Iran while the coronavirus pummels the country would make its leaders more open to negotiating with the US, the Times reported. +But Pentagon officials, including Esper and Chairman of the Joint Chiefs Gen. Mark Milley, have argued against such a move. They have said that they lacked clear evidence the March 11 attack had been ordered by Iran, the Times said. And they've cautioned that a harsher response could give rise to a wider war with Iran and further damage badly strained ties with Iraq, they warned. +In the end, the US conducted its March 12 airstrikes on weapons depots. Since then, the Pentagon has taken steps to improve defenses for its troops stationed in Iraq. +US uses encrypted app to connect with Iranians as coronavirus sweeps their country +US uses encrypted app to connect with Iranians as coronavirus sweeps their country +Last month, Gen. Kenneth McKenzie, commander of US Central Command, said for the first time that the US is moving PATRIOT missile systems into Iraq. "We've put the preparatory materiel in place that will allow us to establish PATRIOT positions inside Iraq," McKenzie told reporters at the Pentagon. +The US will be sending the PATRIOTs to bases in Al Asad and Irbil, and will also strengthen both places with counter-artillery and rockets systems. US troops have also consolidated into fewer bases within Iraq. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_1.txt b/source/KNN_Classifier/Articles/TrainingData/sport_1.txt new file mode 100644 index 000000000..a01d3ac43 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_1.txt @@ -0,0 +1,13 @@ +2020 Was Supposed to Be Japan’s Year. Delaying the Olympics Is Just the Latest Gut-Punch +ichio Yunoki’s hotel was suffering even before Prime Minister Shinzo Abe announced the 2020 Tokyo Olympics would be delayed one year. Nearly 90% of the guests who had booked rooms in March had cancelled because of coronavirus travel restrictions, and with the postponement of the games, he expects to lose most of his bookings this summer, as well. + +“It’s had a huge impact on our business and for others it’s been even worse—a hotelier I know had to shut down, he just couldn’t survive the current situation,” said Yunoki, who runs the Little Japan Guest House in Asakusabashi, a popular tourist district in Tokyo. + +Abe’s announcement on Tuesday that the Tokyo Olympic games, which had been scheduled for July, would be delayed until 2021, coupled with the ever-growing coronavirus pandemic, is a one-two punch to Japan in what was meant to be a big year for the country. +But on Tuesday, as it was becoming clear the Olympics would not happen this year and new coronavirus cases emerged in Japan, Koike adjusted her tone, saying a citywide lockdown of Tokyo was still a possibility. “We may have no choice but to impose strict isolation measures to prevent further spread.” + +“Tokyo Lockdown” soon shot to the top of Japan’s trending topics on Twitter, far surpassing anything about the “2020 Olympics” and showing just how much the long shadow of coronavirus has darkened what was supposed to be Japan’s moment in the sun. + +The delay was hardly a surprise in Japan, but came after weeks of mounting criticism from athletes and national Olympic organizations the world over, including several that said they would refuse to send teams to the Tokyo games if they carried on as planned. On Tuesday, an editorial in Asahi Shimbun, one of Japan’s largest newspapers, criticized both Abe and the International Olympic Committee for taking so long to come to a decision. The waffling, it said, had “awakened international distrust of the [IOC]” and Japan’s leadership had “bumbled the situation.” + +Following Abe’s announcement, Tokyo Gov. Yuriko Koike then added that they would still be called the “2020 Olympics,” causing Twitter to erupt: One user suggested adding an ‘s’ to 2020 to make the name usable for 10 years. Another shared an image of the 2020 logo with the last 0 covered by a red stamp—the way a mistake would be corrected on Japanese documents and a nod to the country’s fastidiousness about paperwork. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_2.txt b/source/KNN_Classifier/Articles/TrainingData/sport_2.txt new file mode 100644 index 000000000..0860bd4c3 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_2.txt @@ -0,0 +1,19 @@ +As you know, football is currently postponed around the entire world due to the coronavirus crisis. + +Apart from in Belarus, that is! + +That’s right, while the rest of the sporting world has been plunged into a blackout, the Belarusian Premier League is continuing behind closed doors. + +While it’s good news for the football fans of Belarus, the decision has brought plenty of criticism their way, with players’ union FIFPro saying the decision to carry on despite the coronavirus outbreak is ‘frankly not comprehendible’. + +However, Belarusian president Alexander Lukashenko has refused to cancel the country’s sporting action and believes he has found a cure to fight COVID-19 – drinking vodka and going to saunas. + +But their attitude towards the virus has seen a big part of one of Belarus’ big sporting success stories quit and return home to the UK – Scottish coach Peter Leven. + +The former Kilmarnock coach has recently left his role as Dynamo Brest assistant manager, where he helped the club to their first ever league title last season and knocked giants BATE Borisov off their perch after winning 13 straight championships. + +It was regarded as one of Eastern Europe’s biggest football shocks, and means Brest will be in the Champions league next season. + +But Leven won’t be there after he quit to return home and be with his family during this difficult time. + +He joined former teammate Ally McCoist and Breakfast host Laura Woods on talkSPORT to explain why – and you can read the full interview, below… \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_3.txt b/source/KNN_Classifier/Articles/TrainingData/sport_3.txt new file mode 100644 index 000000000..991bb8763 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_3.txt @@ -0,0 +1,11 @@ +australian John Millman, facing Roger Federer in the third round of the Australian Open on Friday evening down under, was leading 8-4 in a fifth-set tiebreaker, just two points away from pulling off the upset. But Millman’s end came soon enough, in a typical Federer flurry. A backhand winner, via Federer’s magic wand of a tennis racquet. Millman committed unforced errors, as Federer refused to relinquish the point. A Federer drop shot. Federer ran off six straight points, thanks to his angles and agility, still strong at age 38. He won the match, a 4-6, 7-6, 6-4, 4-6, 7-6 epic, to advance to the fourth round, in which he’ll face Márton Fucsovics of Hungary. + +Federer enters the 2020 season seeking a cushion on his Grand Slam record. He’s won 20 Grand Slam singles titles, more than any other male player ever. But Rafael Nadal is chasing him down: Nadal won the French Open — his ridiculous 12th — and the U.S. Open in 2019, to give him 19 Grand Slam championships for his career. Federer last won a Slam two years ago, at the Australian Open. Novak Djokovic, who won the Aussie Open and Wimbledon — over Federer in the final — in ’19, is also in very much in the mix, with 16 career titles. + +The tightening Grand Slam race is tennis’ most enticing subplot of the season. Federer could face Djokovic in the semifinals of this Australian Open, and Nadal in a potentially tantalizing final. + +Federer, however, insists he’s not as focused on his Slam total as fans and media. “At the end of the day, I don’t play tennis just to protect that record,” Federer told TIME before the start of the tournament. “I‘m actually here to create my own story.” For Federer, breaking the Grand Slam record was a career pinnacle: he passed Pete Sampras, who won 14 singles titles, at Wimbledon in 2009, when he outlasted Andy Roddick in the final, winning the fifth set 16-14. “That was my moment,” says Federer, “anything else I always said was a bonus.” + +Would Federer prefer to hold the Grand Slam record forever? Of course. But if Nadal, Djokovic or someone else down the road surpasses him, Federer swears he’s “totally at peace. Totally at peace.” + +He’s already began planning for his future. Late last year, Federer announced he was becoming an investor in On, a Swiss footwear brand. Federer plans on being much more than a passive participant in the company: he’s a passionate sneakerhead, and he’ll be involved in the design of On shoes. Federer joins the growing list of superstar athletes who are doing more than simply signing rich endorsement deals with big companies (though Federer still has plenty of those, with companies like Uniqlo, Rolex, Credit Suisse). LeBron James has a production company; Tom Brady has his TB12 health imprint. Federer, however, hasn’t looked to other athletes for business inspiration: Federer said he was unaware of James’ production company, SpringHill Entertainment, until I mentioned it in conversation. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_4.txt b/source/KNN_Classifier/Articles/TrainingData/sport_4.txt new file mode 100644 index 000000000..9866f2e13 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_4.txt @@ -0,0 +1,90 @@ +20 Reasons Why World Football Is the Best Sport in the World +There are people who debate what the most popular sport in the world is. + +Most people may argue that American football or basketball is the most popular sport. + +However, those who try to make arguments for those sports will be highly opposed by the fans of world football. World football is a global game that connects almost every single person on the planet. + +Here are 20 reasons why world football is the best sport in the world. + +Passion Surrounding the Sport +1 OF 20 +No matter where you watch a football match, one thing never changes. + +That one thing is the passion that everyone around the game contains for football. Regardless of what part of the world you are in, the passion for the sport remains the same. + +The same passion that is seen in homes across the world is seen at the stadium and on the pitch during each matchday. + +Every major stadium in world football is packed each weekend with fans that would do anything for their club and players that would do the same, + +No other sport in the world can rival the passion during matches and in the week leading up to each match every week in world football. + +Rivalry Matches +2 OF 20 +One of the best times during each football season is when two bitter rivals face off against each other. + +These rivalry matches are separate from the crosstown derby matches, but they create the same hate and passion toward the opposing clubs. + +A perfect example of this would be the Manchester United vs. Liverpool matches that showcase two of the most successful clubs in English football. Other rivalries get created through continental matchups like Barcelona vs. Manchester United in two of the last four UEFA Champions League finals. + +These rivalries not only add intrigue to the buildup to each match, but they also add to the play on the pitch. + +In each rivalry match played in world football, the impetus of the players from both clubs is raised above their normal level. + +No Age Limit +3 OF 20 +All of the primary American professional sports require their athletes to be a certain age to play. + +For example, the NFL has a policy that players have to be three years out of high school before entering the NFL draft. In the NBA, players must be a year removed from high school before entering the draft. + +In world football, there are no age requirements for players to take the pitch. + +Once a club thinks a player is ready to play first-team football, they will throw that player out on the pitch. + +The latest examples of this process are Raheem Sterling of Liverpool and Luke Shaw of Southampton + +Both players made their debuts at the age of 17 this season and impressed their fans with spectacular performances. + +If Sterling or Shaw were American football or basketball players, they would not be able to represent their teams until the age of 19 at the earliest. + +Historic Stadiums +4 OF 20 +In America, you can barely find historic stadiums that were built over a century ago. + +Across Europe and South America, that is the custom for football stadiums. + +Palatial stadiums like Anfield, Old Trafford, Camp Nou, Maracana, Azteca, and the Bernabeu have stood for years and will be going nowhere anytime soon. + +Every time a football fan steps into one of those wonderful stadiums, a sense of awe and wonderment fill the spectator's body. + +In American sports, stadiums rarely last over 40 years due to sports franchises in the United States having to keep up with every other franchise in the game. + +Relegation +5 OF 20 +One of the most unique facets of world football is the relegation. Most top-flight leagues have their worst three clubs sent down to the division below them. + +Instead of the reward of a high draft pick like in American sports, the worst clubs in world football are forced to suffer the utter pain of relegation. + +The relegation system is truly unique, and it makes a match between two clubs at the bottom of table worth watching because of the relegation factor. + +Promotion +6 OF 20 +On the opposite end of the spectrum, promotion to the top flight means everything to a club. + +Even if a club stays in a top European league like the EPL or La Liga for just one season, the financial gains and fan recognition will forever help the promoted club. + +Some clubs relish the opportunity to earn a promotion to the top flight in their country more than the opportunity to qualify for the European places, a spot in the table where most promoted clubs barely reach. + +Dramatic Announcers +7 OF 20 +World football rarely gets criticized for its abundance of quality play-by-play announcers. + +The cream of the crop in world football announcing is Martin Tyler, who has been calling Premier League matches since its inception in 1992. + +Tyler's voice has become known across the globe, with his call of Sergio Aguero's goal to win the EPL title last season being his most recent historic call. + +Fans of the EPL have also been graced with the voice of Ian Darke, who has come to the forefront of football broadcasting over the past few years as his work continues alongside former Liverpool player Steve McManaman for ESPN. + +Another fantastic voice to call world football matches is Ray Hudson, whose commentary for numerous European leagues in recent years has gained plenty of popularity. + +With three of the greatest voices in the world calling the sport, why even look to another sport for better commentary \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_5.txt b/source/KNN_Classifier/Articles/TrainingData/sport_5.txt new file mode 100644 index 000000000..f18956336 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_5.txt @@ -0,0 +1,43 @@ +Eddie Jones has agreed a contract extension to coach England through to the Rugby World Cup in France in 2023. + +The 60-year-old's current contract was due to expire in August 2021, but he had been set for a new deal since leading England to the World Cup final last year. + +Jones has a 78% win ratio since taking the role at the end of 2015. + +"We have a great team and I am excited about raising the standards again," Jones said. + +The timing of the announcement comes in the midst of the coronavirus crisis, with many at the RFU and in the wider rugby community fearing for their futures. + +"My thoughts and those of all of us at the RFU are with everyone impacted by Covid-19, both across the country at large but also within our own rugby union community. In exceptionally difficult times, we are pleased to be sharing some good news," said RFU chief executive Bill Sweeney. + +Jones added: "The extension is a great honour for me, but in the current environment, it is only right to acknowledge what a difficult time the world is facing. We are all looking forward to a time when we can get back to playing rugby and use the sport as a force for good in bringing people back together." + +Jones was appointed in December 2015, replacing Stuart Lancaster after a disappointing home World Cup that autumn. + +He led England to a record-equalling unbeaten run, which included a Grand Slam in 2016 and a Six Nations title the year after. + +The team's form slumped in 2018, but Jones arrested the slide before the World Cup in Japan. + +There, superb victories over Australia in the quarter-finals and New Zealand in the semi-finals established Jones' men as favourites to beat South Africa in the final, but an inspired Springboks performance condemned an under-par England to a 32-12 defeat. + +Concerns over the impact of that loss in the final were exacerbated when England were beaten by France in Paris in their 2020 Six Nations opener, but they rallied with victories against Scotland, Ireland and Wales to seal the Triple Crown before the Championship was curtailed because of the coronavirus pandemic. + +"We set out four years ago to be the best team in the world and unfortunately we missed that by 80 minutes," Jones said on Thursday. + +"Now we want to be the team that is remembered as being the greatest team the game has ever seen. It's a big ambition but I believe we are capable of doing it." + +If Jones does lead England through to France in 2023, he will eclipse World Cup winner Sir Clive Woodward as the country's longest-serving boss. + +Jones' win record puts him alongside Woodward as one of England's greatest ever coaches, but successive RFU chiefs have had to reprimand him over his conduct. + +Following the win over Wales at the start of March, the RFU apologised on Jones' behalf after he suggested referee Ben O'Keefe was biased in his decision-making. + +But Sweeney is clearly comfortable that the occasional controversy that surrounds Jones is a fair exchange for re-establishing England as a leading force in the global game. + +"We reached an understanding soon after returning from Japan but there were some things that we wanted to make sure worked for both sides," Sweeney added. + +"We have announced Eddie's contract extension a few weeks later than planned as our focus was diverted to support the English rugby community during this difficult time. We are now turning our attention to developing plans to support the rebooting of rugby and a winning England team will provide a vital role in that." + +England are third in the World Rugby rankings, behind South Africa and New Zealand. + +Last month, Jones joined members of the RFU executive board in taking a pay reduction in excess of 25%, predominantly in the form of forgone bonuses, as a response to the financial impact of Covid-19. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sport_6.txt b/source/KNN_Classifier/Articles/TrainingData/sport_6.txt new file mode 100644 index 000000000..a938b8aa0 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sport_6.txt @@ -0,0 +1,72 @@ +jessie Knight: The primary school teacher who beat some of the world's best +The indoor season, as big names open up on small tracks, is a chance for fans to get up close to athletics’ biggest and brightest. + +Ask Jessie Knight. + +The 25-year-old, a primary school teacher from Surrey, travelled up for the Glasgow Grand Prix at the city's Emirates Arena in February. + +"Justyna Swiety-Ersetic is my all time favourite 400m runner. I love watching her race and anchoring the Polish relay team. So I said the week before I really hope she's in the race," Knight told BBC Sport. + +She was. The thing was, so was Knight. + +"It was completely overwhelming,” adds Knight, who gave up athletics to concentrate on teaching in October 2017, only to later return to the sport. + +"I had rarely, if ever, been in a full stadium before. I was very, very nervous. Very starstruck." + +Joining European 400m champion Swiety-Ersetic and Knight in the field were the Netherlands' Lisanne de Witte, a bronze medallist at Berlin 2018, Doha 2019 World Championship finalist Iga Baumgart-Witan, and Jamaican pair Janieve Russell and Stephenie Ann MacPherson, both veterans of world and Olympic individual finals. + +"I was so, so nervous at the start," Knight recalls. "My legs were shaking so much that when they called us back after a false start I thought it was because I was moving in the blocks." + +Instead it was a problem with the starting gun. As the officials worked to fix the faulty firearm, Knight watched as Armand Duplantis set a new pole vault world record in the field, further underlining the elite company she was keeping. + +When the race finally got under way, there was a simple remedy to ward off any stage fright. Knight kept the stars out of sight and out of mind, going out hard to lead at halfway. + +"I think originally the crowd probably thought: 'Good on you for giving it a good go,'" she says. + +"To be honest, I was just kind of waiting for them that whole second lap. I was thinking: 'Where are they? I can't feel them yet.' + +"Then on the last bend I could sense Swiety-Ersetic on my shoulder. The crowd were going mad down the home straight and I was like: 'Please hold on, please, hold on...'" + +She did. Knight’s victory was the biggest of her career by far. Her winning time of 51.57 seconds makes her the fourth fastest woman in the world so far in this strangest of sporting years. + +"They weren't expecting me to be there," adds Knight. "I was the only one wearing a club vest, for example. They wouldn't have known my name at all. + +"Nobody really said anything else in cooldowns, apart from Swiety-Ersetic kind of patting me on the shoulder and congratulating me. + +"I would probably say they were quite shocked - because I was too." + +Jessie Knight on her way to winning the 400m at the Glasgow Grand Prix +Knight powered into the lead in Glasgow and never looked back +Eight days later she was back in the classroom with her year-six pupils at Danetree School in Ewell. Since her win in Glasgow, they had enjoyed their half-term holidays and Knight had enjoyed a follow-up victory at the British Indoor Championships. + +"I had a round of applause as I walked in," she recalls. "They were very excited; they thought my British Championships medal was real gold! + +"I feel like they are on the journey with me. They give me lots of cute cards and messages, and the parents and school have been so supportive." + +Miss Knight’s superhero-style side-hustle as a world-class athlete was very nearly squeezed out before it could start. In her first year on the job, she attempted to combine teaching and competing. After just a month, the workload proved too great. + +"I actually felt quite relieved when I made that decision at first, just because the month of doing both was so tough," she says. + +"I had decided teaching was my career. That was how I was going to earn money and it was time to be a grown-up." + +She threw herself into teaching, marking and planning late into the night. The prospect of cold, lonely winter training sessions was easy to ignore. But come the summer, as her athlete friends on social media prepared to race once more, the track called her back. + +"I suddenly realised I'd let something go that I was quite good at and I really love," she adds. + +She got back in contact with coach Marina Armstrong and got back to work. She was within four hundredths of a second of making the British team for Doha last year and had hoped to secure an individual spot in the 400m hurdles - her preferred event - for the Tokyo 2020 Olympics, with perhaps a relay role on the cards. + +Those plans, like her teaching life, have been scattered by the coronavirus pandemic. + +But Knight knows that some of her achievements cannot be measured on the stopwatch or by weight of medals, or denied by quarantine and lockdown. + +As a shy eight-year-old, her talent was spotted by her own teacher - a Mr Bezodis. + +Now she is the one broadening pupils' possibilities for what they can be. + +"They know when I come in really tired from a lactic session the night before," she adds. + +"I make sure they know it is not just: 'Wow, Miss Knight can run really fast.' It's actually: 'Miss Knight works really hard and now it is paying off.' That is good for them to learn. + +"PE for girls at this age is not always their favourite subject, but I think it has definitely made them think actually girls can do sport, because some at 10 years old don't always think that they can. + +"Having a role model that is so involved with sport has definitely impacted them and made them want to do it more. I feel quite passionately about sport as well and the positive impact it had on my life, so I'm glad that I get to pass that on." \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/TrainingData/sports_7.txt b/source/KNN_Classifier/Articles/TrainingData/sports_7.txt new file mode 100644 index 000000000..8ee6de876 --- /dev/null +++ b/source/KNN_Classifier/Articles/TrainingData/sports_7.txt @@ -0,0 +1,19 @@ +The German Bundesliga is one of Europe's top football leagues and has produced some of the world's best players over the years. With 18 teams competing each year, the league is known for its passionate fans, high-scoring matches, and competitive balance. + +The current season has been dominated by Bayern Munich, who have been in outstanding form, winning 20 of their 22 matches so far. With a formidable squad, including star players like Robert Lewandowski and Thomas Muller, it's no surprise that Bayern are running away with the league title. + +However, the race for second place has been a closely contested battle, with RB Leipzig, Borussia Dortmund, and Eintracht Frankfurt all in contention. RB Leipzig, in particular, have been a standout team this season, with their young and talented squad putting in some impressive performances. + +Another team to watch out for is Borussia Monchengladbach, who have been consistently performing well and sit just a few points behind the top teams. Their manager, Marco Rose, has been instrumental in their success, and the team has a strong chance of securing a Champions League spot for next season.That was Mbappé’s first contribution in a game where he had been held quiet to that point, and he quickly gave a reminder of why he is considered the heir to Messi’s throne. Just a minute later, Coman played in Mbappé, who volleyed it into the net after it was sent back across by Marcus Thuram. Argentina were suddenly stunned and on their heels, Messi’s moment in danger of evaporating. + +SEE ALSO +Emiliano Martinez saves Randal Kolo Muani's shot in extra time. +2022 WORLD CUP +Emiliano Martínez’s heroics save Argentina in clutch for World Cup title +It was Messi, though, who delivered an extra-time goal that seemed to put the trophy back into Argentina’s hands. The ball came off Hugo Lloris, who had saved Lautaro Martínez’s initial shot, and Messi, on his right leg, whacked it just over the line for a 3-2 lead. + +Mbappé and France, though, had one gasp left. Montiel’s handball in the box gave the 23-year-old superstar another penalty kick with two minutes left in extra time. There was no question he would finish the hat trick, and in short order, he did — sealing the Golden Boot for the most goals in the tournament. France nearly won it two minutes into stoppage time, forcing Argentina keeper Emiliano Martínez into a desperation kick save on Muani, but Martínez’s foot found the ball, and sent the game into penalties. + +That was where France finally succumbed, with Martínez getting a hand to Kingsley Coman’s attempt and Aurélien Tchouaméni missing wide left. Argentina were a flawless four-for-four, and it was only right that Montiel provided the winner. + +“There are a lot of emotions, but it’s cruel in the end,” Deschamps said. “We are close to something we could have touched, but it is not the case.” \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/desktop.ini b/source/KNN_Classifier/Articles/desktop.ini new file mode 100644 index 000000000..ab17096ea --- /dev/null +++ b/source/KNN_Classifier/Articles/desktop.ini @@ -0,0 +1,4 @@ +[ViewState] +Mode= +Vid= +FolderType=Documents diff --git a/source/KNN_Classifier/Articles/test/lw_1.txt b/source/KNN_Classifier/Articles/test/lw_1.txt new file mode 100644 index 000000000..36c3d9269 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_1.txt @@ -0,0 +1,26 @@ +Debunking the myths of Brexit ‘disaster capitalism’ + + +Independent economist Julian Jessop debunks the myths that Brexit policy is being driven by a cabal of hedge funds, dodgy corporations and tax avoiders. These myths turn out to be no more than vague insinuations and desperate mudslinging in the hope that some might stick. +The proliferation of daft conspiracy theories has been one of the more depressing features of the painful process of leaving the EU. You might expect this nonsense from notoriously sloppy journalists, ‘fake news’ websites, or desperate politicians. But even some otherwise fairly sensible people have claimed that government policy is being driven by a cabal of hedge funds, dodgy corporations and tax avoiders who stand to benefit from a ‘hard Brexit’. +One of the worst recent examples can be blamed on Byline Media, which ‘revealed’ that some donors to Boris Johnson’s leadership campaign and/or to Vote Leave have links to hedge funds with short positions in UK equities. Fortunately, this story has now been thoroughly debunked by every serious financial commentator who has looked at it, including Frances Coppola, Chris Dillow, Juliet Samuel, and the team at the FT. +In brief, Byline seems to have got its figures wrong (as explained here by Full Fact). More importantly, it is pure financial illiteracy to assume that short positions in UK equities are anything to do with Brexit. They are far more likely to be a bet against particular companies with weak fundamentals, and perhaps even a hedge against a bigger long position. Or they could simply be a reflection of a bearish view on the valuation of equities generally, both in the UK and elsewhere. +Other news outlets have made the same mistake. The Sunday Times has suggested that short positions held by a fund run by Crispin Odey in companies such as the Royal Mail and Intu, a shopping centre owner, are somehow a play on ‘no deal’. These are certainly not companies that I’d choose to sell if I were worried about Brexit. Similar nonsense has appeared in Private Eye and is dutifully parroted by other Remain-supporting publications, such as the i. +What’s more, hedge funds are rarely controlled by one person. Indeed, the principals of some of the funds cited included prominent supporters of both Leave and Remain. +Other conspiracy theorists have focused on the fact that many speculators have been running short positions on sterling. I’m not actually aware of any real evidence (even to the Byline standard) that Brexit-backers are more likely to be betting against the pound. But anyone with a view on the market impact of no deal will position their portfolios accordingly. That’s their job – and it’s a bit odd for a former Chancellor or top Treasury official to criticise them for doing it. +And yet still the conspiracy theories pile up. Another dodgy claim is that Brexit is being driven by the desire to escape EU tax avoidance measures due to come into force in 2020. This trope was recently reheated by the economist Simon Wren-Lewis in a blog which also claimed that ‘Brexiters have controlled the narrative around Brexit’ (if only!), and that ‘the number of people passionate about Brexit is limited to a few thousand people…’ +As it happens, I suspect that the number of Leave supporters who are even aware of the EU tax avoidance measures is vanishingly small. But this would be a feeble reason to back Brexit anyway. To take this position, you’d have to be confident that the UK government would not keep these measures after Brexit, despite having shown every intention of planning to do so. +In fact, these measures are designed to support OECD-wide initiatives that the UK itself has helped to lead. The EU’s own track record here is actually pretty poor. If you’d like to know more I recommend this blog by a genuine tax expert, ‘Is Brexit Really About Tax Avoidance?’, which explains the finer points far better than I ever could. In short, though, the essentials of the EU measures are already part of UK tax law and will remain so, come what may. +Needless to say, Jeremy Corbyn has also tapped into the ‘disaster capitalism’ narrative with a pledge to do everything he can to stop a ‘bankers Brexit’. This phrase is presumably designed to appeal to the hard left and the #FBPE echo chamber. Nonetheless, as lazy slogans go, it still takes some beating. +Let’s not forget that Goldman Sachs, JP Morgan, Citigroup and Morgan Stanley all donated substantial six-figure sums to the Remain campaign ahead of the 2016 referendum. Other major Remain supporters included the financier Mark Coombs and the hedge fund owner David Harding, both counted among the dreaded ‘billionaires’. And that’s even without mentioning George Soros. +So, what was Mr Corbyn driving at? Of course, he’s partly recycling the familiar claptrap that we are controlled by shadowy bankers and their ‘dark money’. Apparently, Leave supporters are particularly susceptible to these evil influences. +But this narrative doesn’t make any more sense if you look at the substance of what he then said. The Labour leader goes on: ‘there were reports over the long weekend that the Tories are going out with their begging bowl to billionaire hedge funders to raise cash for an autumn general election. Let no one be in any doubt what these super-rich donors will be paying for: the chaos and uncertainty caused by a no-deal Brexit is a potential goldmine for speculators betting against the pound.’ +This is daft at so many levels, but let’s just turn the logic around. Does this mean that the financiers who backed Remain, or who now oppose a no-deal Brexit, are only doing so because they hope to gain personally from a rebound in sterling? Of course not. +Mr Corbyn warmed further to his theme: “But the payout for those elements of the super-rich that support no deal won’t just stop there. If we leave without a deal on 31 October, they will use the crisis to push through policies that benefit them and hurt everyone else – as they have since 2010.” +This is guff. My Corbyn does not – and cannot – explain how the ‘super-rich’ will be able to push anything through parliament (particularly this one). We can debate the pros and cons of bolder measures to liberalise the economy, lighten the burdens of tax and regulations, and increase consumer choice, including in the NHS. But there is simply no majority for the more sweeping changes that Mr Corbyn would have us fear, nor is there likely to be one any time soon. It’s yet another ‘disaster capitalism’ myth to claim that Brexit will give any UK government a free hand to do whatever it likes. +We’re just left with vague accusations and mudslinging in the hope that some might stick. ByLine has doubled down by suggesting that ‘Boris Johnson’s decision-making could be swayed by his reliance on financial institutions and hedge funds for donations.’ But this doesn’t work at any level either. Even if these donations did help Mr Johnson become PM, he’s now accountable to the entire British electorate (or hopefully will be soon). +What’s more, you could make the same insinuations of bad faith against almost anybody. For example, Labour is heavily dependent on money from trade unions. The CBI gets most of its money from big business. Some recent Brexit work by the National Institute of Economic and Social Research (NIESR) has been funded by the Peoples Vote campaign. I could go on. +In reality, most people – even politicians – take a particular view or position because they genuinely believe in it. That’s true on all sides of the Brexit debate too. Others might then support them, including financially, because they agree with that position, but it’s crucial to get the direction of causation the right way around. Would you argue, for example, that Molly Scott Cato only backs Green causes because it earns her an MEP’s salary? Again, of course not. +(Paradoxically, I still get trolled by half-wits for my pro bono work with the Institute of Economic Affairs, even though they should know by now that this work is unpaid. Doubtless I’ll get stick for this blog too!) +In summary, the ‘disaster capitalism’ narrative is based on at least three ridiculous assumptions. First, that only the EU can ever be trusted to do the right thing, and we’d therefore be lost without them. Second, that the Johnson administration is beholden to a cabal of special interests motivated solely by money. And third, that Brexit would give any UK government a free hand to do whatever it likes. Serious commentators should be able to do a lot better than peddling such nonsense. + diff --git a/source/KNN_Classifier/Articles/test/lw_2.txt b/source/KNN_Classifier/Articles/test/lw_2.txt new file mode 100644 index 000000000..bb4bcc65a --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_2.txt @@ -0,0 +1,18 @@ +'Immature' No 10 briefings trigger another day of Brexit trouble +Blame game row as Downing Street turns fire on Leo Varadkar and Angela Merkel +The first sign of trouble was in the dawn news bulletins. In a long missive the Spectator published overnight, an anonymous No 10 source – widely presumed to be Dominic Cummings – predicted that Brexit talks would “probably end this week”, blaming the Irish taoiseach, Leo Varadkar, who, it was claimed, had “gone very cold”. The nameless source warned that EU countries supporting an extension of article 50 “will go to the bottom of the queue” on future cooperation with the UK. +While the incendiary briefing was being condemned on the airwaves as “desperate” and something to make the government “ashamed” by the recently departed cabinet minister Amber Rudd, Boris Johnson was on the phone to Angela Merkel. Neither London nor Berlin would offer any detailed official account of their phone call, in line with diplomatic protocol. Yet, by 10am, another explosive anonymous briefing from a No 10 source was lighting up social media with incredible claims about what the German chancellor was meant to have said. And, with that, the Brexit blame game had gone into full swing. +The unknown figure in Downing Street claimed Merkel was making a deal “essentially impossible not just now but for ever” by insisting that Northern Ireland must remain in full regulatory alignment and a customs union. At his regular lobby briefing at midday, Boris Johnson’s official spokesman refused – or was unable – to say whether this was an accurate description of the meeting or represented No 10’s official position. +He was listening to the phone call between Johnson and Merkel, he acknowledged, but he would only tell reporters that it had been a “full and frank exchange” – a coded way of saying there had been an argument between the two leaders. Diplomatic protocol dictates that the official spokesman never comments on remarks made by a foreign leader in a confidential phone call, making the No 10 source’s briefing all the more remarkable. +Donald Tusk had read the reports while travelling to Berlin. The European council president was going to see Merkel at the chancellery as part of a routine tour of European capitals before next week’s EU summit, where Brexit is again crowding out the agenda. Tusk, an anglophile former Polish prime minister with a sharp turn of phrase, has been deeply frustrated by what he sees as Downing Street’s attempt to avoid responsibility. +As his car headed to the chancellery, he decided it was time to hit back and accused Johnson directly of playing “some stupid blame game” and making a deal impossible. “Where are you going?” he asked in Latin. +He was not alone in that view. In Brussels, European diplomats were aghast at what they saw as the No 10 spin machine out of control. “It’s incredibly immature. Kids in the kindergarten behave more maturely than this,” one senior diplomat said of the latest No 10 briefings. “It’s amazing, that’s all I can say.” +The diplomat told the Guardian it might be better to simply ignore the statements, suggesting they could not represent the strategy of a serious country. “This is so strange and immature. This can’t be government policy, this can’t be a majority opinion in Downing Street.” +The same diplomat described No 10’s account of the call with Merkel as “an incredible distortion of facts”, saying she would have repeated the EU’s longstanding position that a customs border was not compatible with the UK’s obligations under the Good Friday agreement. +Another diplomat described No 10’s account of the call as “quite shocking”, pointing to claims that Merkel had apparently said Germany could leave the EU “no problem” if it wanted. “She would never have mentioned Germany leaving the EU - it’s quite gross and ridiculous,” the diplomat said. “For me, it was obvious that it was designed for a domestic audience but, at the same time, how could they attribute that to the chancellor?” +Not everyone agrees with Tusk’s blazing Twitter diplomacy. Some diplomats prefer the quiet German approach. A German government spokesman declined to comment on the Merkel-Johnson call, noting: “As usual, we do not report from such confidential conversations.” Privately, Berlin has long argued it would go the last kilometre for a Brexit deal, but not by jeopardising peace in Northern Ireland or the integrity of the EU single market. +Keir Starmer, the shadow Brexit secretary, later took aim at the shadowy nature of these briefings, saying it reflected a prime minister who did not take responsibility for his No 10 operation. A Labour MP, Alison McGovern, said it was as though “the future of our country is being briefed out as political gossip”. +Behind the scenes, there was some disquiet among cabinet ministers about the briefings, especially the claim in the Spectator that the UK would withdraw security cooperation from any EU state that agrees to extend article 50. Julian Smith, the Northern Ireland secretary, even publicly tweeted that this idea was unacceptable. +As the day’s political storm was abating, Johnson’s chief envoy, David Frost, was leaving the European commission after two days of technical talks. Cocooned in the commission’s star-shaped Berlaymont headquarters, EU officials have for days bombarded Frost and his team with questions, covering customs checks, exemptions for small and medium-sized businesses, agri-food regulations, timelines and transitions – the technical minutiae of a very political deal. +Despite the furore, both sides insist talks have not broken down. But with the EU’s unofficial end-of-week deadline looming, they are going nowhere. In months and years to come, historians may look back on this day of febrile briefings as the moment an always elusive October deal slipped out of grasp. + diff --git a/source/KNN_Classifier/Articles/test/lw_3.txt b/source/KNN_Classifier/Articles/test/lw_3.txt new file mode 100644 index 000000000..0d7d8d4e6 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_3.txt @@ -0,0 +1,16 @@ +Project fear? The last three years have been more catastrophic than even the most pessimistic Remainer predicted + +As leading Leavers seek to subvert parliamentary democracy as we know it, there is no pleasure in saying “I told you so” +If, during the 2016 referendum campaign, you had told voters that MPs would be scrambling to stop the prime minister shutting down the legislature in order to force through food shortages, mass job losses and a crash in the pound, someone might have needed to change the slogan on the side of that bus. What is happening right now in Britain goes beyond any previously conceivable limits of responsible or accountable governance. Viewed against the country which seemed to exist just a few years ago, it is quite literally unbelievable. +It’s not just that Brexit is a case of “I told you so”: the harm to our national political fabric has been more catastrophic than even the most pessimistic Remainer could have contemplated. +Britain is now heading into immediate, unabated crisis, but the consequences could last for years or even decades. Even the most conservative estimates suggest damage to our economy in all circumstances if we leave, contrary to everything campaigners promised. The neutral Office for Budget Responsibility this week forecast a significant recession in the event of no-deal. But the economic damage will almost certainly take less time to repair than the damage to our politics and society. What was billed as a way for people to take back control of democracy has become a systematic attack on every institution which underpins it. +First the Brexiters came for political opponents. Any prominent Remainer who dared question the legitimacy of the referendum or, heaven forbid, suggested a new one in the light of changed circumstances, was branded a traitor, an enemy of democracy, an elitist, a Remoaner, someone who wanted to subvert the will of the people, someone who knew best, someone who hated Britain. It was devastatingly effective. Brexit’s leaders rapidly and comprehensively refigured democratic opposition as opposition to democracy. All potential opponents, particularly in parliament itself, were cowed into affirming “respect for the result.” It became a standard vow of allegiance to a movement they knew to be disastrous, and they had little choice but to make it. In some cases the alternative quite literally threatened to be physical violence. +Then the Brexiters moved on to the media. Journalists or newspapers who attempted to speak for the 48 per cent of voters who had not endorsed the project were denounced for their lack of enthusiasm. The suggestion that journalistic rigour might trump settled belief somehow became suspicious. In the new approved discourse, lying about one’s country was a greater act of love than talking freely about it. +It wasn’t just that telling the truth became radical. Even asking questions was deemed objectionable. Anyone who pointed out the risks, unknown consequences or indeed the verifiable facts of Brexit was accused of “talking Britain down.” Andrea Leadsom on one occasion called for broadcasters to be more “patriotic.” +After the Daily Mail branded High Court judges “enemies of the people” for daring to give parliament (the people’s representatives) the right to trigger Brexit, attention soon enough turned to the civil service. The wiser Brexiters quickly realised that they would have to line up a scapegoat for the inevitable moment their project collapsed, and civil servants were the easiest target. They could not answer back, but were at the same time doomed to fail, because the purpose of Brexit was to satisfy romantic myth and the purpose of Whitehall is to execute political reality. +A key early victim was the UK’s permanent representative to the EU, Ivan Rogers, who resigned after ministers refused to listen to his advice. Then came the prime minister’s negotiator, Olly Robbins, whose failure to deliver a miracle was deemed a sign of pro-Remain bias. Finally and most shamefully came the UK’s ambassador to the US, Kim Darroch, who resigned after someone leaked his frank diplomatic cables. Darroch became a pawn in a much larger campaign, which ultimately demands the replacement of politically neutral civil servants with sycophantic pro-Brexit courtiers. Those who fail to demonstrate sufficient personal passion for the cause must simply be purged. +The Brexiters’ most enduring and destructive assault has been on the legislature. In this lies the greatest irony. The process advertised to “take back control” for parliament has for three years fronted a relentless attempt to take it away. As the mission creep of Brexit itself has advanced (guaranteed access to the single market has now given way to no deal at all) so has the brazenness of the campaign against parliamentary democracy. It was not enough for the executive to attempt to deny MPs a meaningful say. Now it threatens to force through a policy unhindered by opposition. To call this a democratic outrage is to understate the case. It would be a travesty unseen since the English Civil War. The prime minister derives their legitimacy and authority from the House of Commons alone. It is the absolute source of national sovereignty. If you shut down parliament, you shut down democracy. This week MPs voted against prorogation, but many further battles await in the autumn—none of them previously imaginable. +This assault on democratic institutions and norms is not taking place in isolation. It is embedded in a far wider authoritarian movement which aims to empower the right-wing fringes of society and political opinion. We saw it only too clearly this week in Donald Trump’s racist declaration that four ethnic-minority congresswomen should “go back… [to the] places from which they came,” and at his subsequent rally, the chants of “send her back.” The circumstances may be new, but the broader ambition echoes down the ages and across political cultures. It is to attack freedom, pluralism and diversity in the pursuit of power. +What we can see now in Britain is a kind of national derangement. It has become clear that Brexit was never about leaving the EU. Indeed, that is its least important element. Brexit is, or became, a nationalist identitarian culture war. As a project it purports to be open and global but in truth parades dogmatic rigidity and smallness. It requires unquestioned devotion to a creed from people trapped into political submission. This dogma purges dissent, erases opposition and expels non-believers. Because the truth must not be spoken, the institutions which depend on it must be silenced. +It is time to call this project for what it is. Brexit’s leaders are seeking to break every guarantor of British democracy, one by one. Each month brings unprecedented outrage. If we don’t end this soon, it may become too late to end it at all. + diff --git a/source/KNN_Classifier/Articles/test/lw_4.txt b/source/KNN_Classifier/Articles/test/lw_4.txt new file mode 100644 index 000000000..62f50f38c --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_4.txt @@ -0,0 +1,38 @@ +Revealed: the EU's point-by-point rejection of Johnson's Brexit plan +Exclusive: Leaked papers obtained by the Guardian show extent of fundamental objections Brussels has raised +The European Union’s full devastating point-by-point rejection of Boris Johnson’s Brexit proposals for the Irish border has been revealed in documents obtained by the Guardian. +Leaked papers lay bare the scale of the multiple faults highlighted to David Frost, the prime minister’s chief negotiator, during the most recent talks. +The disclosure follows the prime minister’s claim on Monday that he had not yet heard the EU’s thoughts on the legal text tabled by Downing Street, under which a customs border would be reimposed on the island of Ireland. +Under the draft text, which the UK has not published in full, Northern Ireland would stay in the EU’s single market for goods and electricity if Stormont consents, giving the DUP a veto before the arrangement comes into force and then every four years. +The confidential report chronicling the latest negotiations reveals: +• The British have been warned that the proposed Stormont veto provides the DUP with an opportunity to block the all-Ireland regulatory zone from ever materialising. +• The proposals for a customs border were said to risk a major disruption of the all-Ireland economy. EU negotiators have pointed out that it has been rejected by groups representing Northern Irish business. +• The UK is seeking a fallback of no controls, checks and border infrastructure, even if the DUP vetoes Northern Ireland’s alignment with the single market. The bloc’s internal market would be left wide open for abuse, the European commission has said in its rejection of the proposal. +• The UK’s proposal leaves it up to a joint EU-UK committee to work out how to avoid customs checks and infrastructure near the Irish border once there are two customs territories and sets of rules on the island of Ireland, without offering a plan B if no such solution is agreed. +• The UK has called for an overhaul of the common transit convention so as to avoid the need for new infrastructure in the shape of transit offices on either side of the border for the scanning of goods that have passed through multiple territories. Brussels has refused as it would lead other non-EU countries to seek similar exemptions, endangering the internal market. +• The text affords what is seen as an unacceptable wholesale exemption for small and medium-sized businesses from customs duties and processes, but it fails to provide details on how to then combat smuggling. +• On VAT, the British negotiators were told that the proposals fail to offer any solutions as to how to avoid payments and checks at the border. +• Under the UK’s proposals all the state aid and level-playing-field conditions Theresa May agreed to in order to reassure the EU that Northern Ireland businesses would not enjoy a competitive advantage have been deleted. But Northern Irish firms would still be able to compete in the single market for electricity. +• The UK would have access to an unlisted number of EU databases to allow it to police the customs border on the island of Ireland and the regulatory border between Great Britain and Northern Ireland. Whitehall would maintain such access even if the DUP vetoed alignment with the single market. +The EU’s hard-hitting rebuff was delivered to Frost on Friday and Monday, according to the leaked report, which was compiled after a briefing of EU diplomats by the commission. +The message had been passed on to Johnson in a series of phone calls with EU leaders over the weekend, during which Downing Street was left clear that the legal text did not form the basis for serious negotiation. +Following Monday’s discussions between Frost and the commission’s negotiating team, a UK government spokesman said it had offered the clarity that had been sought on the proposals. +UK retailers demand Brexit deal after worst September on record + +Read more +Frost is understood to be staying in Brussels on Monday night but the EU has not yet agreed to negotiate on the detail, given what sources described as the “fundamental flaws”. +The British government spokesman said: “Following hours of discussions last week, the UK provided additional legal text today. This provided further technical detail on customs and goods regulations to further clarify how the UK’s proposals would operate.” +Senior EU sources do not think Frost has any room for manoeuvre to change Johnson’s proposals. The European commission briefed member state diplomats that the UK had outlined “no new concepts” in a slightly revised legal text Frost offered on Monday. +Play Video +1:06 + Boris Johnson claims EU has not explained why it objects to his Brexit plan – video +EU sources scoffed at claims coming out of Downing Street that a “counter-offer” could be expected from Brussels in the coming days. “It is the UK that wants to replace the backstop – and that is our solution,” said one senior EU diplomat. +On Monday, the Brexit secretary, Stephen Barclay, met with the Dutch foreign minister, Stef Blok, who tweeted: “Frank & honest discussion today with Steve Barclay. As good neighbours do. +“Important questions still remain on UK Brexit proposals and more realism and clarity necessary this week. Full support for Michel Barnier.” +An EU commission spokeswoman said the EU27 remained of the opinion that the UK had failed to offer an alternative to the Irish backstop, which would avoid a hard border by keeping Northern Ireland in the single market and the EU’s customs territory. +She said: “We all agree that we need a workable solution now and not something based on untried and revokable arrangements that would be left to negotiation during the transition period. +“The UK’s proposals do not meet at present the objectives of the protocol on Northern Ireland/Ireland and this is the shared view of the EU parliament but also all member states.” +The British government’s refusal to share the detailed legal text beyond the small circle of EU negotiators has infuriated diplomats and sowed confusion about the UK’s intentions on key points, such as the transition extension. +Under the current agreement the UK could extend the transition until the end of 2022, if both sides agree, but the UK is seeking to drop a reference in the Irish protocol to such an extension. +Some EU diplomats suspect the change is presentational, to match the government’s insistence it can get a speedy agreement on a future trade deal. The Guardian understands that the UK does not intend to drop the transition extension from the withdrawal agreement. + diff --git a/source/KNN_Classifier/Articles/test/lw_5.txt b/source/KNN_Classifier/Articles/test/lw_5.txt new file mode 100644 index 000000000..06a9c0271 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_5.txt @@ -0,0 +1,27 @@ +UK prepared for no-deal Brexit but some risks remain, says Gove +Minister admits challenges for some businesses ‘cannot be entirely mitigated’ +Michael Gove, the minister tasked with no-deal Brexit planning, has said the government is ready to take the UK out of the EU without an agreement, hours after a bitter war of words broke out over the state of Brexit talks. +Gove said in a statement to the Commons that he was impressed by the steps manufacturers and supermarkets had taken to prepare for no deal, and by measures put in place by the ports of Dover and Calais and the automotive sector. +However, he said risks remained, some challenges for businesses could not be avoided, and sheep farmers and Northern Irish dairy farmers were likely to be adversely affected by tariffs. +“Of course risks remain and challenges for some businesses cannot be entirely mitigated, even with every possible preparation in place. But the UK economy is in a much better position to meet those risks and challenges thanks to the efforts of these sectors and companies and the chancellor,” he said. +The health secretary, Matt Hancock, has set up a “trade and readiness support unit” to ensure the supply of medical products, and HMRC will write to 180,000 businesses setting out how to import and export from and to the EU after Brexit. +The government will introduce lower tariffs on HGVs entering the UK. There will be adjustments to the duty paid on bioethanol to support UK producers, and some clothing will face tariffs to make sure there is still preferential access to the UK market for developing countries. +Beyond trade, Gove touched pointedly on citizens’ rights, challenging the EU to match the UK’s “generosity” and “flexibility”. “So far very few EU member states have made as generous an offer to UK nationals as the UK has made to EU citizens,” he said. +“We don’t believe citizens rights should be used as a bargaining chip in any scenario. EU citizens in the UK are our friends and family. We want them to stay. We now hope that the EU extends the same hand of friendship towards UK nationals as we have to EU nationals.” + +Sign up to our Brexit weekly briefing + +Read more +The shadow Brexit secretary, Keir Starmer, said Gove’s statement resembled a “reassuring bedtime story” about no deal, which he said would be a disaster for the UK economy. He said some of the sectors and businesses that Gove had said were ready had given warnings that they were not. +On the souring relations with the EU, Starmer said: “Talks with the EU are collapsing as we speak. The proposals the government put forward last week were never going to work. Instead of reacting to the challenge by adapting the proposals, the government is intent on collapsing the talks and engaging in a reckless blame game, and it will be working people who pay the price.” +Stephen Phipson, the chief executive of Make UK, the manufacturers’ organisation, said he was concerned that some sectors of the economy would be affected despite the preparations. +“Some sectors will be dealt an especially hard blow at a time when others are imposing tariffs on us but we are dropping ours,” he said. “In particular, the automotive sector, which is one of the jewels in the crown of high-value manufacturing, faces being severely impacted by these plans. This will prove devastating for jobs and growth in the companies and regions who depend on its success.” +Adam Marshall, the director general of the British Chambers of Commerce, said it was good that government had got its “shoulder to the wheel” but businesses still had many detailed and complex questions about how they would trade successfully in the event of no deal. +He said: “Business concern about an unwanted no-deal exit is rising, particularly given developments over recent days. Both sides need to redouble their commitment and do everything in their power to avoid this in the short time we have left.” +On trade, Marshall added: “The latest temporary tariff regime only contains three changes, so businesses will be frustrated that it took government so long to publish the updates – needlessly extending uncertainty around the entire future tariff schedule. The delay has real-world impacts for businesses trying to plan for the unwanted prospect of a no-deal in a matter of weeks.” +Scotland’s deputy first minister, John Swinney, accused the UK government of making planning for no deal “unnecessarily difficult”. +Announcing the establishment of a Scottish medicines shortage response group and a £7m rapid poverty mitigation fund, Swinney told MSPs at Holyrood that the UK government’s approach had been “to actively limit the analysis shared with us, to exclude the Scottish government from decision-making, and to fail to share with us its own plans for actions to mitigate no deal”. +Swinney also announced plans to use the old port in Stranraer, on the key Northern Irish ferry route, to hold up to 300 HGVs should traffic flows between Northern Ireland and Scotland increase to that extent, and said farmers and crofters were receiving 95% of their common agricultural policy payments early to shield them from the immediate effects of crashing out of the EU without a deal at the end of the month. + + + diff --git a/source/KNN_Classifier/Articles/test/lw_6.txt b/source/KNN_Classifier/Articles/test/lw_6.txt new file mode 100644 index 000000000..61021268a --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_6.txt @@ -0,0 +1,25 @@ +Uncertainty over Brexit will make election hard to call – study + + +An unprecedented period of volatility in party loyalties, in which almost half of voters have switched sides since 2010, and the fluidity of Brexit will make the next general election hugely difficult to call, according to a major study. +The findings from the British Election Study (BES), an ongoing survey running since the 1964 election, augmented by ongoing polling from a 30,000-person online panel, will make uneasy reading for party leaders plotting their strategy. +It shows that following decades of relative stability, voter decisions have been rocked repeatedly by a series of recent “electoral shocks” – immigration and the rise of Ukip; the 2008 crash; the 2010-15 coalition; the Scottish referendum and Brexit. +Amid the repeated shake-ups, traditional party loyalties seem to have eroded. The study found that in the 2015 election, 43% of people voted for a different party than in 2010, bringing a record high share of the vote for parties other than the main three. +Two years later, 33% of people switched for the 2017 poll, and the Conservatives and Labour won more than 82% of the votes. In this election there was also the biggest movement in voters between the two main parties detected in BES data. +Across the three elections of 2010, 2015 and 2017, 49% of people changed votes at least once. +The study concludes that only two recorded elections have had higher aggregate volatility than 2015 and 2017, both of which took place in deeply unusual circumstances. +The first was in 1918, after the first world war and following the expansion of the voting franchise. The other was in 1931, when a post-depression national government won a landslide. +The authors of the research, which is to be collated into a book published this year, say this context, plus the fact that Brexit will still be a live issue in the coming months, makes the likely imminent next election hugely difficult to call. + +Sign up to our Brexit weekly briefing + +Read more +“Given the UK’s recent history of vote switching and the unpredictability of the current climate, it would be unwise for any political party or commentator to presume how voters will behave in a general election, particularly in the middle of an electoral shock,” said Edward Fieldhouse, a politics professor at Manchester University. “But we do expect to see big shifts defined largely by Brexit.” +The idea of electoral shocks seeks to explain the extent of vote switching, which the researchers say goes beyond longer-term factors such as a gradual weakening in party loyalties, especially among new cohorts of younger voters. +The study found that the 2017 election had the largest recorded amount of voter movement between the two big parties. One in eight Conservative voters from 2015 backed Labour, with one in 11 former Labour voters moving the other way. +This totalled 11% of the electorate switching between the two parties. In contrast, during Tony Blair’s landslide election win in 1997, the figure was 9%. +Advertisement +The research suggests that the cumulative effect could be more volatility, as new electoral shocks shift already unattached voters. With the likelihood of a new departure extension before the next election, Brexit seems set to be a key factor – and one that is hard to predict. +“We don’t know what the Brexit situation will be on election day,” said Jane Green, professor of politics at Oxford University. “We don’t know who will get the blame for the current political deadlock, or who will benefit. +“But we do expect there to be clear winners and losers because voters are now more changeable in response to such shock events. A key driver of vote choice will be how competent each party is perceived to be on Brexit.” + diff --git a/source/KNN_Classifier/Articles/test/lw_7.txt b/source/KNN_Classifier/Articles/test/lw_7.txt new file mode 100644 index 000000000..69129e93b --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_7.txt @@ -0,0 +1,51 @@ +Boris Johnson's Brexit deal appears doomed as deadline looms +EU may offer to extend Brexit talks to summer, despite PM’s insistence UK will leave on 31 October + +Boris Johnson’s Brexit plan appeared to beall but dead on Tuesday night as the government admitted there was little prospect of a deal before 31 October, following a day of furious recriminations. +The prime minister spoke to the Irish taoiseach, Leo Varadkar, on the phone after a stormy 24 hours of briefing and counter-briefing, as concerns about his tactics were even raised in Johnson’s cabinet. +In Brussels, a further extension that could be as long as next summer is now considered almost inevitable, despite Johnson’s continued insistence that the UK will leave on 31 October, with or without a deal. +A blame game erupted on Tuesday morning as the cabinet gathered in Downing Street when an anonymous source briefed selected journalists about a private call between the prime minister and the German chancellor, Angela Merkel. +The unnamed figure in No 10 claimed that Berlin’s insistence on keeping Northern Ireland in the EU customs union made a Brexit deal “essentially impossible, not just now but ever”. +That message infuriated Donald Tusk, the European council president, who tweeted directly at Johnson: “What’s at stake is not winning some stupid blame game. At stake is the future of Europe and the UK as well as the security and interests of our people. You don’t want a deal, you don’t want an extension, you don’t want to revoke. Quo vadis? [Where are you going?].” + +EU may offer to extend deadline for Brexit deal to summer + +Read more +That sentiment was echoed by the European commission president, Jean-Claude Juncker, who said “nobody would come out a winner” in a no-deal scenario. “I do not accept this ‘blame game’ of pinning the eventual failure of the negotiations on the EU. If that’s the case, the explanation is actually in the British camp,” he said. +Juncker said Johnson’s Brexit proposals would leave the UK with a relationship with the EU that was “less intimate than with Canada”. +A senior UK government source conceded the talks had stalled, even though David Frost, the UK’s chief negotiator, is still trying to keep discussions going in Brussels. +Advertisement +“At some point, we were going to hit this rock on both sides on the customs issue. If it’s the EU position that Northern Ireland has to be in the customs union, and that does appear to be the case, that’s not acceptable to us. Our position is that we need to come out and that seems to be where we are stuck.” +Both sides agree that customs arrangements on the island of Ireland are at the crux of the standoff – though Brussels also rejects what it regards as a Democratic Unionist party veto over plans to keep Northern Ireland’s regulations in line with those of the EU. +The Irish foreign minister, Simon Coveney, said that Johnson had told Varadkar on Tuesday evening that he still wanted a deal. +But Coveney said the “onus had to be back here in Brussels”, adding: “There are some in the UK who seem to be planning for a general election ahead of trying to plan to get a deal.” + +Sign up to our Brexit weekly briefing + +Read more +Nicky Morgan and Julian Smith were among those who challenged Johnson during what several sources claimed was a tetchy cabinet meeting. When Morgan questioned the prime minister about anonymous briefings, he replied that ministers should listen to him instead. +After the meeting was over, Smith issued a rebuke to the person – believed to be the prime minister’s senior adviser, Dominic Cummings – who anonymously briefed the Spectator that the government would withhold security cooperation from EU countries who supported a Brexit delay. +“I am clear that any threat on withdrawing security cooperation with Ireland is unacceptable. This is not in the interest of Northern Ireland or the Union,” Smith tweeted. +The statement triggered speculation that he could resign, but sources close to Smith insisted that he was “going nowhere”. +When Johnson arrived in Downing Street in July, he insisted that all recruits to his cabinet sign up to the idea of pursuing a no-deal Brexit if it proved impossible to strike an agreement with Brussels. +But some are privately concerned about persistent suggestions Johnson could try to circumvent the Benn act, which is aimed at forcing him to request a Brexit delay if he fails to strike a deal at next week’s European council meeting. +The Benn act suggests an extension of Brexit talks until the end of January 2020 but there will be concern in EU capitals that this may not provide sufficient time for any potential fallout from a general election to play out. +During angry exchanges in the House of Commons on Tuesday, the shadow Brexit secretary, Keir Starmer, accused Johnson of deliberately making a proposal he knew Brussels would reject. +“Talks with the EU are collapsing as we speak,” he said, responding to a defiant statement from Michael Gove about no-deal Brexit preparedness. +“The proposals that the government introduced last week were never going to work and instead of reacting to challenge by adapting them, they are intent on collapsing the talks and engaging in a reckless blame game. It will be working people who pay the price. The prime minister should be here to account for his actions.” +Johnson and Varadkar have agreed to meet in the next few days, with both sides keen to avoid blame if no deal is agreed. +The European parliament president, David Sassoli, emerged downbeat from discussions with Johnson in London on Tuesday, telling reporters the UK government’s plans were “not an actual proposal”. +Sassoli appeared exasperated and said that Johnson had refused to consider any new holistic proposals, instead repeating that the UK would leave on 31 October come what may. This lack of flexibility was “extremely sad”, the Italian said. +Asked if he thought Johnson was serious about a deal, the Sassoli repeated that Johnson had given no new proposals and merely insisted on a 31 October departure. +“I think each and every one of us must reach the conclusions that they believe the most appropriate,” he said. “I sincerely hope that there will be a wake-up call. Up to the very last minute, it will be possible for the European Union and parliament to try and find a deal.” +In Brussels, diplomats are beginning to turn their minds to the length of any potential extension. A range of dates will be in play at the meeting of European leaders next week, but sources suggested the natural cut-off date would be next June. +With an extension of the UK’s EU membership now looking inevitable, other diplomatic sources suggested an unlikely outlier for an end date could even precede a possible general election so as to force the Commons into accepting a deal. “But politicians like to keep things off their plates for as long as possible and so pushing it longer seems more realistic,” a senior EU diplomat said. +Brussels appears to have accepted that negotiations over a deal are effectively dead, following Downing Street’s extraordinary claims over the substance of the phone conversation between Merkel and Johnson. +'Immature' No 10 briefings trigger another day of Brexit trouble + +Read more +The alleged content of the Merkel-Johnson call was dismissed by senior politicians in Berlin as being “improbable”. +MPs were sent home on Tuesday night as parliament is suspended for a few days in the run-up to next week’s Queen’s speech, which Johnson will use to set out an election-friendly list of domestic priorities. +Most at Westminster expect Johnson to be forced into requesting a Brexit extension and then trigger a general election, which could be held in November or early December. +However, Johnson continues to insist that Britain will leave the EU on 31 October – a message the government is promoting with a multimillion pound public information campaign urging businesses and the public to “get ready”. + diff --git a/source/KNN_Classifier/Articles/test/lw_8.txt b/source/KNN_Classifier/Articles/test/lw_8.txt new file mode 100644 index 000000000..9d813383a --- /dev/null +++ b/source/KNN_Classifier/Articles/test/lw_8.txt @@ -0,0 +1,31 @@ +A new Tory Project Fear +Mr Philip Hammond on Tuesday stated in the House of Commons that a “No Deal” Brexit could cost the country £90 billion. Mr Jeremy Hunt — supposedly prepared to preside over a “No Deal” if necessary — nevertheless warned that it could do economic damage equivalent to the 2008 Financial Crash. +Both these forecasts are at the most extreme end of alarmism, even if they are worded ambiguously (“a disruptive No Deal”; “if we get this wrong”). They are not justified by any serious analysis. Given the positions presently held by these two men, they are utterly irresponsible. +At least Mr Hammond is consistent: he has always opposed Brexit, and done his best to make it impossible, frightening and (by holding back necessary preparations) damaging. What on earth can Mr Hunt be doing? Looking for excuses to go back on his ambiguous promises? +1 The Chancellor stated that “the Government’s analysis suggests that in a disruptive no-deal exit there will be a hit to the Exchequer of about £90 billion.” +• This seems still to be relying on old Treasury forecasts made to influence the 2016 Referendum, and which he is again presenting in the most tendentious and alarming way. These forecasts were made using methods and inputs that can only have been chosen to produce the desired result: to try to show that Brexit was a disaster. +• They have been so thoroughly discredited that even the Treasury has given them up. +• Among the authoritative independent economists who have rubbished these forecasts are former Bank of England governor Lord King (“a scare story”); the Nobel laureate and Remain-sympathiser Paul Krugman (“sloppy thinking is always a vice, no matter what cause it’s used for”), and the former assistant director of the International Monetary Fund’s European Department, Professor Ashoka Mody (“their projected costs of exit have no basis in economic theory or empirical findings”). +• Moreover, the Treasury have blankly refused to discuss their methods and results with academic economists. +• This is shameless propaganda, once again being wheeled out for blatantly political purposes. +2 Mr Hunt’s comparison of No Deal with the 2008 Crash is seemingly based on Bank of England forecasts: he said that the Bank’s “predictions are that it wouldn’t be quite [as bad as the financial crisis], but that it could be very serious if we get this wrong”, leading to an increase in the national debt of £90 billion (that suspiciously magic number again!) The Bank of England’s forecasts have a record of inaccuracy just as bad as those of the Treasury. No serious economic analysis suggests that a ‘No Deal’ could be anything like 2008. Paul Krugman said that the Bank had “gone pretty far out on a limb here” … “I don’t understand how you can get that kind of cost without making some big ad hoc assumptions”. +3 What is the real likely effect of a WTO Brexit? +Of course, this depends to a great extent on what British and EU governments do. It is now clear that thorough preparations have been made on all sides to minimize or eliminate disruption. Normal business and travel will carry on. Arrangements have been made to transmit goods without hindrance. Trade agreements with many of our most important global customers have already been agreed or are close to agreement. +On the other hand, what the Treasury and Bank forecasts resolutely refuse to contemplate are the major short and long-term gains that a WTO exit offers. +These include: +• Big price reductions in food and consumer goods such as clothing and footwear: EU tariffs and other trade barriers raise clothing prices by up to 8%, and food prices by around 5%. Essentially, the EU currently works to impoverish UK households by forcing them to buy expensive goods from within the EU +• The ability to reorient our future trade towards the most dynamic areas of growth, e.g. Asia, South America and Africa. The EU’s own analysis suggests a network of such deals could add 2% to UK GDP in the long term. +• After Brexit, the UK can reduce trade barriers with the rest of the world and reorganise its regulatory system, dropping many of the costly EU regulations that hold back UK businesses (these costs are estimated by the EU itself at as much as 4-6% of GDP) and adopting best practice systems in line with those of more dynamic economies. +• No longer paying £10bn a year to the EU in membership fees – which are equivalent to a tariff of 6% on our exports to the EU +• Taking full control of fishing grounds – worth up to £3bn a year in the medium term +• Having a tailored, skills-based immigration policy without EU preferences, which could cut the benefit bill by £1.6bn per year +• This would constitute in total a major spending boost: tariff cuts alone could boost consumer incomes by £15 billion – around £800 per family per year +Taking all these benefits into account, the result of a well managed WTO exit would be not a major economic loss, but potentially a huge economic gain of up to £80 billion a year. +For further information on these points, see: +On preparations already made by the EU for a WTO exit; +On preparations already made by the UK for a WTO exit; +A summary of the benefits of removing trade barriers for consumers; +The EU assessment of potential gains to British trade: External sources of growth (Commission Staff Working Document) posted in the Report section of the website. +EU’s own estimates the of the cost of its regulations; +A demonstration that British trade will shift outside the EU – an advantage in itself given the EU’s alarming financial instability; + diff --git a/source/KNN_Classifier/Articles/test/rw_1.txt b/source/KNN_Classifier/Articles/test/rw_1.txt new file mode 100644 index 000000000..bc4816e63 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_1.txt @@ -0,0 +1,25 @@ +Speaking in an interview with Tatler, Morgan said "Thanks to the fall-out from our interview, Ronaldo signed the biggest transfer deal in football history, and is now the world's highest-paid athlete, at the age of 37." + +"He's also doing what he's done throughout his career, and which for me gives him the edge over Messi, and that's challenge himself in a new country, and new league, at a time when football in the Middle East is really taking off, as we saw at the Qatar World Cup where Morocco reached the semi-finals and Saudi Arabia beat the eventual winners, Messi's Argentina." he added + +"He wanted freedom from Manchester United, where he rightly felt he had been badly disrespected by both the manager and senior club executives," he said.Argentina are atop the world again, champions for the first time since 1986, defeating title-holding France, 4-2 in penalty kicks after the teams played to a 3-3 tie through 120 minutes, in a coronation that became an all-time classic. And just like that 1986 victory in Mexico that was the pinnacle for Diego Maradona, this tournament will go down in history for an all-time player stating his case to be the best ever. + +“I knew,” said Lionel Messi, “that God was going to give it to me.” + +Whatever your theory on destiny, this was a game worthy of the heavens — one that seemed to tilt, turn and gasp along with everyone watching as it shaped up into a complete madness of a finish.These players play for their country, for Argentina fans,” coach Lionel Scaloni said. “That’s what I’ve been saying about them. There are no rivalries in the team, they play for each other, everyone pushing in the right direction. They have so much pride to play for their country — the players broke their backs.” + +For nearly 80 minutes, Argentina were firmly in control, and La Albiceleste seemed to have one hand on the trophy when France coach Didier Deschamps threw on two attacking substitutions — Eduardo Camavinga and Kingsley Coman — in the 71st minute in a desperate bid to inject energy into his side, which was down 2-0 thanks to goals from Messi and Angel Di María. + +Coman quickly helped open the game up, and in the 79th minute, Randal Kolo Muani forced Nicolás Otamendi into a massive error, tackling Muani in the box and giving away a penalty, which Kylian Mbappé thumped in to cut the lead in half.That was Mbappé’s first contribution in a game where he had been held quiet to that point, and he quickly gave a reminder of why he is considered the heir to Messi’s throne. Just a minute later, Coman played in Mbappé, who volleyed it into the net after it was sent back across by Marcus Thuram. Argentina were suddenly stunned and on their heels, Messi’s moment in danger of evaporating. + +SEE ALSO +Emiliano Martinez saves Randal Kolo Muani's shot in extra time. +2022 WORLD CUP +Emiliano Martínez’s heroics save Argentina in clutch for World Cup title +It was Messi, though, who delivered an extra-time goal that seemed to put the trophy back into Argentina’s hands. The ball came off Hugo Lloris, who had saved Lautaro Martínez’s initial shot, and Messi, on his right leg, whacked it just over the line for a 3-2 lead. + +Mbappé and France, though, had one gasp left. Montiel’s handball in the box gave the 23-year-old superstar another penalty kick with two minutes left in extra time. There was no question he would finish the hat trick, and in short order, he did — sealing the Golden Boot for the most goals in the tournament. France nearly won it two minutes into stoppage time, forcing Argentina keeper Emiliano Martínez into a desperation kick save on Muani, but Martínez’s foot found the ball, and sent the game into penalties. + +That was where France finally succumbed, with Martínez getting a hand to Kingsley Coman’s attempt and Aurélien Tchouaméni missing wide left. Argentina were a flawless four-for-four, and it was only right that Montiel provided the winner. + +“There are a lot of emotions, but it’s cruel in the end,” Deschamps said. “We are close to something we could have touched, but it is not the case.” \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_2.txt b/source/KNN_Classifier/Articles/test/rw_2.txt new file mode 100644 index 000000000..44746b793 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_2.txt @@ -0,0 +1,7 @@ +The EFL is asking the Premier League to halve the financial gap between the top flight and the Championship as part of negotiations over a new settlement for English football. + +As the government revealed that the long-awaited white paper on an independent regulator is due to be put before parliament in a fortnight, the EFL and Premier League continue to wrangle over the details of a deal that would see more money move down the football pyramid. + +Morgan Gibbs-White of Nottingham Forest against Manchester United. Forest rank bottom in the Premier League for financial stability, according to a sustainability index. +Good governance should bring cash rewards, insists football clubs’ body. +The EFL has long called for the Premier League to share 25% of its TV revenue with its 72 clubs, but has met with strong resistance and recently wrote to clubs saying it was “not hopeful” of achieving such a goal. Although the EFL has not dropped its ambition, nor its hopes of greater funding for League One and League Two clubs to make them financially sustainable, the emphasis now appears to be on reducing the financial difference between the top tier and the Championship. Last season Norwich City earned £100m for finishing 20th in the Premier League and Fulham earned about £10m by winning the Championship. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_3.txt b/source/KNN_Classifier/Articles/test/rw_3.txt new file mode 100644 index 000000000..39f678969 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_3.txt @@ -0,0 +1,15 @@ +The Italian Serie A is one of Europe's oldest and most prestigious football leagues. With 20 teams competing each year, the league is renowned for its tactical play, passionate fans, and world-class players. + +The current season has been dominated by Inter Milan, who have been in outstanding form, winning 19 of their 22 matches so far. With a strong squad, including star players like Romelu Lukaku and Lautaro Martinez, Inter are currently sitting comfortably at the top of the table. + +However, the race for second place has been a closely contested battle, with AC Milan, Juventus, and Atalanta all in contention. AC Milan, in particular, have been a standout team this season, with their young and talented squad putting in some impressive performances. They have been led by veteran striker Zlatan Ibrahimovic, who has been in remarkable form, scoring 10 goals in 13 appearances. + +Juventus, who have won the league for the past 9 seasons, have been in transition this season, with new manager Andrea Pirlo trying to rebuild the team. Despite a slow start, they have been steadily improving and sit just a few points behind the top teams. + +Another team to watch out for is Atalanta, who have been consistently performing well and sit just a few points behind the top teams. Their manager, Gian Piero Gasperini, has been instrumental in their success, and the team has a strong chance of securing a Champions League spot for next season. + +The Serie A is known for its tactical play and this season has been no exception. Teams like Napoli, Lazio, and Roma have been putting up a strong fight, with some exciting and closely contested matches. The league's focus on defensive play and tactical play has made it one of the most competitive leagues in Europe. + +Off the field, the Serie A has been making headlines with the proposed reforms to the Champions League, which would see the top teams from across Europe compete in a new format. The league is supportive of the reforms, which they believe will bring more revenue and exposure to the league. + +In conclusion, the current Serie A season is shaping up to be an exciting one, with Inter Milan running away with the title and several teams battling it out for second place. With the league's tactical play, passionate fans, and world-class players, it's no wonder why the Serie A is one of Europe's top football leagues. Whether you are a fan of defensive play or attacking football, the Serie A has something to offer for everyone, and this season is sure to be a thrilling one. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_4.txt b/source/KNN_Classifier/Articles/test/rw_4.txt new file mode 100644 index 000000000..324c67a07 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_4.txt @@ -0,0 +1,13 @@ +The English Premier League is one of the most popular and competitive football leagues in the world. With 20 teams competing each year, the league attracts top players from around the world and is watched by millions of fans globally. + +The current season has been nothing short of exciting, with several teams putting up a strong fight for the top spot. Manchester City, the reigning champions, have once again been dominant and currently sit at the top of the table with a comfortable lead. Despite this, they have faced a few unexpected setbacks, including a surprise loss to Newcastle United. + +Liverpool, who won the league the previous season, have had a tumultuous campaign and sit mid-table, struggling to keep pace with the top teams. On the other hand, Tottenham Hotspur have been a pleasant surprise, with their new manager, Ryan Mason, leading the team to several impressive wins. + +Another team to watch out for is Aston Villa, who have been consistently performing well and sit just a few points behind the top teams. Their young and talented squad, including Jack Grealish, have been pivotal in their success. + +The race for the top four is heating up, with several teams in contention to secure a spot in the Champions League next season. Chelsea, Leicester City, and West Ham United are among the teams in the mix, making for an exciting end to the season. + +Off the field, the Premier League has been making headlines with the proposed European Super League, which would see some of the top teams from across Europe compete in a separate competition. The league has faced widespread criticism, with fans and players alike speaking out against the proposal. + +In conclusion, the current Premier League season is shaping up to be one of the most unpredictable and exciting in recent years, with several teams battling it out for the top spots. With the race for the top four heating up and the controversy surrounding the European Super League, it will be interesting to see how the rest of the season plays out. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_5.txt b/source/KNN_Classifier/Articles/test/rw_5.txt new file mode 100644 index 000000000..f569642b8 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_5.txt @@ -0,0 +1,15 @@ +Mikel Arteta marvelled at an “extraordinary” first half of the season from his Arsenal team but warned that they are still short of the level set by Manchester City, despite sitting five points clear at the top of the league with a game in hand. + +Arsenal retained their cushion after Eddie Nketiah’s last-gasp winner against Manchester United and their tally of 50 points represents the club’s best start to a Premier League season. They are already in with a tantalising chance of winning their first title since 2004; even so, Arteta believes they will have to improve in order to complete the feat. + +Eddie Nketiah cleverly diverts the ball past David de Gea in the 90th minute +Eddie Nketiah’s late goal settles thriller as Arsenal inch past Manchester United +Read more +“Extraordinary: it doesn’t get much better than that,” he said when asked to summarise Arsenal’s first 19 games. “We deserved the points we have. I think we have played well enough to win most of the matches. But the reality is we have things we can get better at. That’s the aim.” +He continued to evade the suggestion Arsenal are firm favourites to win the league and cited City’s relentlessness of the past half decade. “I don’t have an opinion,” he said. “It can be a perception. I know my team so well, I know where we are, I know why we are here and I know where we want to be and we are far from that. I know the levels of the other teams and one especially that has won in the last five or six years [City] and we are not there yet.” + +Arteta was delighted with Nketiah, who also equalised Marcus Rashford’s first-half strike in Arsenal’s 3-2 win and continues to make light of Gabriel Jesus’s injury-enforced absence. “What Eddie is doing is incredible,” he said. “We cannot say we saw that [coming]. It is a big blow losing Gabi but Eddie is responding with the team in an exceptional way.” + +The Poland international defender Jakub Kiwior watched from the stands ahead of his move from Serie A club Spezia, although Arteta would not comment ahead of the deal’s completion. + +Nketiah’s instinctive strike came as a frustration to Erik ten Hag, whose United team had invited pressure in the final 20 minutes and could barely get out of their own half by the time they were breached. He felt it showed the leap they must still take to become genuine contenders. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_6.txt b/source/KNN_Classifier/Articles/test/rw_6.txt new file mode 100644 index 000000000..0d4c39966 --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_6.txt @@ -0,0 +1,7 @@ +The German Bundesliga is one of Europe's top football leagues and has produced some of the world's best players over the years. With 18 teams competing each year, the league is known for its passionate fans, high-scoring matches, and competitive balance. + +The current season has been dominated by Bayern Munich, who have been in outstanding form, winning 20 of their 22 matches so far. With a formidable squad, including star players like Robert Lewandowski and Thomas Muller, it's no surprise that Bayern are running away with the league title. + +However, the race for second place has been a closely contested battle, with RB Leipzig, Borussia Dortmund, and Eintracht Frankfurt all in contention. RB Leipzig, in particular, have been a standout team this season, with their young and talented squad putting in some impressive performances. + +Another team to watch out for is Borussia Monchengladbach, who have been consistently performing well and sit just a few points behind the top teams. Their manager, Marco Rose, has been instrumental in their success, and the team has a strong chance of securing a Champions League spot for next season. \ No newline at end of file diff --git a/source/KNN_Classifier/Articles/test/rw_7.txt b/source/KNN_Classifier/Articles/test/rw_7.txt new file mode 100644 index 000000000..9d813383a --- /dev/null +++ b/source/KNN_Classifier/Articles/test/rw_7.txt @@ -0,0 +1,31 @@ +A new Tory Project Fear +Mr Philip Hammond on Tuesday stated in the House of Commons that a “No Deal” Brexit could cost the country £90 billion. Mr Jeremy Hunt — supposedly prepared to preside over a “No Deal” if necessary — nevertheless warned that it could do economic damage equivalent to the 2008 Financial Crash. +Both these forecasts are at the most extreme end of alarmism, even if they are worded ambiguously (“a disruptive No Deal”; “if we get this wrong”). They are not justified by any serious analysis. Given the positions presently held by these two men, they are utterly irresponsible. +At least Mr Hammond is consistent: he has always opposed Brexit, and done his best to make it impossible, frightening and (by holding back necessary preparations) damaging. What on earth can Mr Hunt be doing? Looking for excuses to go back on his ambiguous promises? +1 The Chancellor stated that “the Government’s analysis suggests that in a disruptive no-deal exit there will be a hit to the Exchequer of about £90 billion.” +• This seems still to be relying on old Treasury forecasts made to influence the 2016 Referendum, and which he is again presenting in the most tendentious and alarming way. These forecasts were made using methods and inputs that can only have been chosen to produce the desired result: to try to show that Brexit was a disaster. +• They have been so thoroughly discredited that even the Treasury has given them up. +• Among the authoritative independent economists who have rubbished these forecasts are former Bank of England governor Lord King (“a scare story”); the Nobel laureate and Remain-sympathiser Paul Krugman (“sloppy thinking is always a vice, no matter what cause it’s used for”), and the former assistant director of the International Monetary Fund’s European Department, Professor Ashoka Mody (“their projected costs of exit have no basis in economic theory or empirical findings”). +• Moreover, the Treasury have blankly refused to discuss their methods and results with academic economists. +• This is shameless propaganda, once again being wheeled out for blatantly political purposes. +2 Mr Hunt’s comparison of No Deal with the 2008 Crash is seemingly based on Bank of England forecasts: he said that the Bank’s “predictions are that it wouldn’t be quite [as bad as the financial crisis], but that it could be very serious if we get this wrong”, leading to an increase in the national debt of £90 billion (that suspiciously magic number again!) The Bank of England’s forecasts have a record of inaccuracy just as bad as those of the Treasury. No serious economic analysis suggests that a ‘No Deal’ could be anything like 2008. Paul Krugman said that the Bank had “gone pretty far out on a limb here” … “I don’t understand how you can get that kind of cost without making some big ad hoc assumptions”. +3 What is the real likely effect of a WTO Brexit? +Of course, this depends to a great extent on what British and EU governments do. It is now clear that thorough preparations have been made on all sides to minimize or eliminate disruption. Normal business and travel will carry on. Arrangements have been made to transmit goods without hindrance. Trade agreements with many of our most important global customers have already been agreed or are close to agreement. +On the other hand, what the Treasury and Bank forecasts resolutely refuse to contemplate are the major short and long-term gains that a WTO exit offers. +These include: +• Big price reductions in food and consumer goods such as clothing and footwear: EU tariffs and other trade barriers raise clothing prices by up to 8%, and food prices by around 5%. Essentially, the EU currently works to impoverish UK households by forcing them to buy expensive goods from within the EU +• The ability to reorient our future trade towards the most dynamic areas of growth, e.g. Asia, South America and Africa. The EU’s own analysis suggests a network of such deals could add 2% to UK GDP in the long term. +• After Brexit, the UK can reduce trade barriers with the rest of the world and reorganise its regulatory system, dropping many of the costly EU regulations that hold back UK businesses (these costs are estimated by the EU itself at as much as 4-6% of GDP) and adopting best practice systems in line with those of more dynamic economies. +• No longer paying £10bn a year to the EU in membership fees – which are equivalent to a tariff of 6% on our exports to the EU +• Taking full control of fishing grounds – worth up to £3bn a year in the medium term +• Having a tailored, skills-based immigration policy without EU preferences, which could cut the benefit bill by £1.6bn per year +• This would constitute in total a major spending boost: tariff cuts alone could boost consumer incomes by £15 billion – around £800 per family per year +Taking all these benefits into account, the result of a well managed WTO exit would be not a major economic loss, but potentially a huge economic gain of up to £80 billion a year. +For further information on these points, see: +On preparations already made by the EU for a WTO exit; +On preparations already made by the UK for a WTO exit; +A summary of the benefits of removing trade barriers for consumers; +The EU assessment of potential gains to British trade: External sources of growth (Commission Staff Working Document) posted in the Report section of the website. +EU’s own estimates the of the cost of its regulations; +A demonstration that British trade will shift outside the EU – an advantage in itself given the EU’s alarming financial instability; + diff --git a/source/KNN_Classifier/BOW.cs b/source/KNN_Classifier/BOW.cs new file mode 100644 index 000000000..94e1e16b5 --- /dev/null +++ b/source/KNN_Classifier/BOW.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +/************************************************************************************************************************************* + +################################################# CLASS SUMMARY ###################################################################### + +Class BOW: + +- This C# code defines a class called BOW, which is used to create a bag of words from training data text files. The class is marked +with the [Serializable] attribute, which means that it can be serialized and deserialized. + +- The class has a static member called BagOfWords, which is a list of strings representing the bag of words. The class also has a static +method called CreateBoW, which takes an array of file paths as input and returns a list of strings representing the bag of words. + +- The CreateBoW method works by iterating over each file path in the input array. For each file, it reads the contents of the file using +File.ReadAllText, splits the text into words using a regular expression, and then iterates over each word. For each word, it creates +a StringBuilder and adds all alphanumeric characters (i.e. basic Latin letters without special characters and punctuations) to the +StringBuilder. + +- If the resulting string is longer than two characters, it is written to a file (depending on the file name) and added +to the BagOfWords list (if it is completely unique). Overall, this class provides a useful utility for text processing tasks that +require a bag of words representation of text data. + +*************************************************************************************************************************************/ + +namespace textClassification +{ + /// + /// This class is used to create bag of words from the training data text files which is a string data type. + /// + [Serializable] + public class BOW + { + /// + /// A list of all unique words in the bag of words. + /// + public static List BagOfWords = new List(); + + + /// + /// Creates a bag of words from the training data text files. + /// + /// An array of file paths for the training data text files. + /// A list of unique words in the bag of words. + public static List CreateBoW(string[] path) + { + + int article = 1; + + foreach (string file in path) + { + + var everyWords = System.Text.RegularExpressions.Regex.Split(File.ReadAllText(file), @"[\s,;:.!?-]+"); + + //Creating new files with the cleaned words with SteamWriter + TextWriter tw; + if (file.Contains("politic")) + { + tw = new StreamWriter(@"..\..\..\Articles\CleanedText\politic" + article.ToString() + ".txt"); + } + else if (file.Contains("sport")) + { + tw = new StreamWriter(@"..\..\..\Articles\CleanedText\sport" + article.ToString() + ".txt"); + } + else + { + tw = new StreamWriter(@"..\..\..\Articles\CleanedText\unkown" + article.ToString() + ".txt"); + } + + // Get all words from txt files + foreach (var word in everyWords) + { + var builder = new StringBuilder(); + foreach (char letter in word) + { + // If the char matches basic latin alphabet (without special chars and punctuations) + //than the program will add them to the StringBuilder + if (letter <= 90 && letter >= 65 || letter >= 97 && letter <= 122) + { + builder.Append(letter.ToString().ToLower()); + } + } + + // All words which are longer than 2 chars will be added to the list + if (builder.Length > 2) + { + tw.WriteLine(builder); + + if (!BagOfWords.Contains(builder.ToString())) + { + BagOfWords.Add(builder.ToString()); + } + } + } + tw.Close(); + article++; + + } + return BagOfWords; + + } + } +} \ No newline at end of file diff --git a/source/KNN_Classifier/HTM.cs b/source/KNN_Classifier/HTM.cs new file mode 100644 index 000000000..0e665d230 --- /dev/null +++ b/source/KNN_Classifier/HTM.cs @@ -0,0 +1,118 @@ +using System; +using System.Collections.Generic; +using System.IO; + +/************************************************************************************************************************************* + +################################################# CLASS SUMMARY ###################################################################### + +Class HTM: + +- This C# code contains a class called "HTM" that performs text classification by converting input text into vectors. +The class contains public method, "generateInputVector". + +- Method "generateInputVector": A static public method that takes a List of strings containing Bag of Words and a string array of +words from the input text as input. The method creates an input vector of integers by checking if each word in the Bag of Words list +exists in the input array and assigns the value of 1 or 0 to the corresponding index in the input vector. The method returns the +input vector. + +*************************************************************************************************************************************/ + + +namespace textClassification +{ + /// + /// This class represents a Hierarchical Temporal Memory (HTM) model for text classification. It takes in input text and converts it into vectors for further processing. + /// + + public class HTM + { + //private Dictionary _wordCount; + public static int[] inputVector; +<<<<<<< HEAD:MySEProject/KNN_Project/KNN_Classifier/HTMClassifier.cs +======= + /// + /// Constructor for HTM class. + /// + public HTM() + { + _wordCount = new Dictionary(); + } + + /// + /// Trains the HTM model by processing input text files. + /// + /// Array of file paths to the input text files. + public void Train(string[] filePaths) + { + foreach (string filePath in filePaths) + { + string[] words = File.ReadAllText(filePath).ToLower().Split(' ', '\n', '\r', '\t'); + foreach (string word in words) + { + if (string.IsNullOrWhiteSpace(word)) + { + continue; + } + + if (!_wordCount.ContainsKey(word)) + { + _wordCount[word] = 0; + } + + _wordCount[word]++; + } + } + } + + /// + /// Converts input text into a vector for further processing. + /// + /// Array of words in the input text. + /// Array of integers representing the vector of the input text. + public int[] ConvertToVector(string[] words) + { + List vector = new List(); + foreach (string word in _wordCount.Keys) + { + if (Array.IndexOf(words, word) >= 0) + { + vector.Add(1); + } + else + { + vector.Add(0); + } + } + return vector.ToArray(); + } +>>>>>>> 7305e039302f6b4e10550ca91874c0d57699aba4:MySEProject/KNN_Project/KNN_Classifier/HTM.cs + + /// + /// Generates an input vector from the Bag of Words and the input text. + /// + /// List of words to consider for the input vector. + /// Array of words in the input text. + /// Array of integers representing the input vector. + public static int[] generateInputVector(List BagOfWords, String[] wordsInInput) + { + + + inputVector = new int[BagOfWords.Count]; + + for (int i = 0; i < BagOfWords.Count; i++) + { + if (wordsInInput.Contains(BagOfWords[i])) + { + inputVector[i] = 1; + } + else + { + inputVector[i] = 0; + } + } + return inputVector; + + } + } +} \ No newline at end of file diff --git a/source/KNN_Classifier/KNN.cs b/source/KNN_Classifier/KNN.cs new file mode 100644 index 000000000..3edb8c819 --- /dev/null +++ b/source/KNN_Classifier/KNN.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +/************************************************************************************************************************************* + +################################################# CLASS SUMMARY ###################################################################### + +Class KNN: + +- This C# code defines a class called KNN that implements the K-Nearest Neighbors algorithm for text classification. The class is +marked with the [Serializable] attribute, which means that it can be serialized and deserialized. + +- The class has three member variables: trainingData, labels, and k. trainingData is a list of feature vectors used to train the model, +labels is a list of string labels corresponding to each feature vector, and k is an integer that represents the number of neighbors +to consider when classifying a new input vector. + +- The class has a constructor that takes an integer k as input and sets the k member +variable to the input value. The class also has two public methods: Train and Classify. + +*************************************************************************************************************************************/ + + + +namespace textClassification +{ + [Serializable] + + /// + /// This class implements the K-Nearest Neighbors (KNN) algorithm for text classification. + /// + public class KNN + { + public List trainingData = new List(); + public List labels = new List(); + public int k; + + + /// + /// Constructor for the KNN class. + /// + /// The number of nearest neighbors to consider for classification. + public KNN(int k) + { + this.k = k; + } + + + /// + /// Train the KNN algorithm with the given feature vectors and labels. + /// + /// A list of feature vectors, where each vector represents a text document. + /// A list of labels, where each label corresponds to a text document in the featureVectors list. + public void Train(List featureVectors, List labels) + { + this.trainingData = featureVectors; + this.labels = labels; + } + + + /// + /// Classify the input text document as either "politic" or "sport" based on its feature vector. + /// + /// The feature vector of the input text document. + /// The predicted label of the input text document. + public string Classify(int[] inputVector) + { + + // Calculate the distances between the input vector and the training data. + Dictionary distances = new Dictionary(); + Random random = new Random(); + for (int i = 0; i < trainingData.Count; i++) + { + double distance = CalculateDistance(trainingData[i].vector, inputVector); + + // If two distances are the same, add a small random value to one of them to ensure unique keys in the dictionary. + while (distances.ContainsKey(distance)) + { + distance += random.NextDouble() * 1e-6; // add small random value to distance + } + distances.Add(distance, trainingData[i].label); + } + + // Get the k-nearest neighbors and their corresponding labels. + List kNearestLabels = new List(); + + foreach (var distance in distances.OrderBy(x => x.Key).Take(k)) + { + kNearestLabels.Add(distance.Value); + } + + // Predict the label of the input text document based on the most common label among its k-nearest neighbors. + return kNearestLabels.GroupBy(x => x) + .OrderByDescending(x => x.Count()) + .First() + .Key; + } + + + /// + /// Calculates the Euclidean distance between two vectors for KNN. + /// + /// The first vector. + /// The second vector. + /// The Euclidean distance between the two vectors. + private double CalculateDistance(int[] vector1, int[] vector2) + { + return Math.Sqrt(vector1.Zip(vector2, (x, y) => Math.Pow(x - y, 2)).Sum()); + } + + } +} diff --git a/source/KNN_Classifier/KNN_Classifier.csproj b/source/KNN_Classifier/KNN_Classifier.csproj new file mode 100644 index 000000000..ca9449db3 --- /dev/null +++ b/source/KNN_Classifier/KNN_Classifier.csproj @@ -0,0 +1,20 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + diff --git a/source/KNN_Classifier/KNN_Classifier.sln b/source/KNN_Classifier/KNN_Classifier.sln new file mode 100644 index 000000000..a044ab43e --- /dev/null +++ b/source/KNN_Classifier/KNN_Classifier.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32929.385 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KNN_Classifier", "KNN_Classifier.csproj", "{7DF881E6-FFF9-46C1-94F5-97B35320748D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {7DF881E6-FFF9-46C1-94F5-97B35320748D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7DF881E6-FFF9-46C1-94F5-97B35320748D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7DF881E6-FFF9-46C1-94F5-97B35320748D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7DF881E6-FFF9-46C1-94F5-97B35320748D}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F03BFBDE-3FA9-4588-9130-F9A94E9DD2E7} + EndGlobalSection +EndGlobal diff --git a/source/KNN_Classifier/Model/KNNmodel.bin b/source/KNN_Classifier/Model/KNNmodel.bin new file mode 100644 index 000000000..88ab2c55d Binary files /dev/null and b/source/KNN_Classifier/Model/KNNmodel.bin differ diff --git a/source/KNN_Classifier/Program.cs b/source/KNN_Classifier/Program.cs new file mode 100644 index 000000000..21ae01882 --- /dev/null +++ b/source/KNN_Classifier/Program.cs @@ -0,0 +1,207 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Runtime.Serialization.Formatters.Binary; + +/************************************************************************************************************************************ + +################################################# CLASS SUMMARY ##################################################################### + +Class Program: + +- This class contains the main method that controls the execution flow of the application. +It prompts the user for input data and training data paths, creates a bag of words and feature vectors based on the training data, +trains a KNN model on the feature vectors, saves the model and bag of words to a binary file, loads the saved model and bag of words, +classifies the input data using the KNN model, and evaluates the KNN model on the test set using various metrics. + +Class ModelSave: + +- This class defines a static method to save the KNN model and bag of words to a binary file. + +Class ModelLoad: + +- This class defines a static method to load the KNN model and bag of words from a binary file. + +Class Evaluate: + +- This class defines a static method to evaluate the KNN model on a test set using various metrics. + +*************************************************************************************************************************************/ + + +namespace textClassification +{ + /// + /// Main class for the text classification program. + /// + class Program + { + /// + /// Entry point of the program. + /// + /// + static void Main(string[] args) + { + Console.WriteLine("Enter the Training Data Path: "); + string trainingDataPath = Console.ReadLine(); + + // Load the training data files and create feature vectors + string[] path = Directory.EnumerateFiles(@trainingDataPath, "*.txt").ToArray(); + KNN knn = new KNN(k: 3); + List BagOfWords = BOW.CreateBoW(path); + List featureVectors = Vector.CreateVector(BagOfWords); + List labels = Vector.CreateLabels(path); + + // Train the KNN model using the feature vectors and labels + knn.Train(featureVectors, labels); + + // Save the trained KNN model and bag of words to a binary file + Console.WriteLine("Enter the model file path to save: "); + string modelFilePath = Console.ReadLine(); + ModelSave.Save(knn, BagOfWords, modelFilePath); + Console.WriteLine($"Model saved to {modelFilePath}"); + + // Load the trained KNN model and bag of words from a binary file + Console.WriteLine("Enter the model file path to load: "); + string loadModelFilePath = Console.ReadLine(); + (KNN loadedKnn, List loadedBagOfWords) = ModelLoad.Load(loadModelFilePath); + Console.WriteLine($"Model loaded from {loadModelFilePath}"); + + Console.WriteLine("Enter the Input Data Path: "); + string inputPath = Console.ReadLine(); + + // Load the input text file for HTM + String[] wordsInInput = System.Text.RegularExpressions.Regex.Split(File.ReadAllText(inputPath), @"[\s,;:.!?-]+"); + Vector.GetWordsFromInput(wordsInInput); + + // Convert the input text into an output vector using HTM + int[] inputVector = HTM.generateInputVector(loadedBagOfWords, wordsInInput); + + // Use the output vector as input to the KNN model for classification + string classification = loadedKnn.Classify(inputVector); + Console.WriteLine(classification); + + // Evaluate the KNN model on the test set + Evaluate.ModelEvaluate(knn, featureVectors, labels, "sport","politic"); + Console.ReadKey(); + } + } + + + /// + /// Provides functionality to save a trained KNN model and Bag of Words to a binary file + /// + /// The KNN model to save. + /// The bag of words used to train the KNN model. + /// The file path where the model should be saved. + public class ModelSave + { + public static void Save(KNN knn, List bagOfWords, string filePath) + { + using (FileStream stream = new FileStream(filePath, FileMode.Create, FileAccess.Write)) + { + BinaryFormatter formatter = new BinaryFormatter(); + formatter.Serialize(stream, knn); + formatter.Serialize(stream, bagOfWords); + } + } + } + + + public class ModelLoad + { + /// + /// Provides functionality to load a trained KNN model and Bag of Words from a binary file + /// + /// The path to the file containing the serialized model. + /// A tuple containing the loaded KNN model and its associated bag of words. + + public static (KNN, List) Load(string filePath) + { + KNN loadedKnn; + List bagOfWords; + + // Open the file for reading + using (FileStream stream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) + { + BinaryFormatter formatter = new BinaryFormatter(); + + // Deserialize the KNN model and bag of words from the file + loadedKnn = (KNN)formatter.Deserialize(stream); + bagOfWords = (List)formatter.Deserialize(stream); + } + + // Return the loaded KNN model and its associated bag of words as a tuple + return (loadedKnn, bagOfWords); + } + } + + public class Evaluate + { + + /// + /// Evaluate the KNN model on a test set + /// + /// The KNN model to evaluate + /// The feature vectors of the test set + /// The labels of the test set + /// The positive class label + /// The negative class label + public static void ModelEvaluate(KNN knn, List testFeatureVectors, List testLabels, string class1, string class2) + { + + // Initialize variables for counting true/false positives/negatives + int truePositives = 0; + int falsePositives = 0; + int falseNegatives = 0; + int trueNegatives = 0; + + // Iterate through the test set + for (int i = 0; i < testFeatureVectors.Count; i++) + { + // Classify the feature vector + string predictedLabel = knn.Classify(testFeatureVectors[i].vector); + + // Update the counts based on the predicted and actual labels + if (predictedLabel == testLabels[i]) + { + if (predictedLabel == class1) + { + truePositives++; + } + else + { + trueNegatives++; + } + } + else + { + if (predictedLabel == class1) + { + falsePositives++; + } + else + { + falseNegatives++; + } + } + } + + // Calculate the accuracy, precision, recall, and F1 score + double accuracy = (double)(truePositives + trueNegatives) / (truePositives + trueNegatives + falsePositives + falseNegatives); + double precision = (double)truePositives / (truePositives + falsePositives); + double recall = (double)truePositives / (truePositives + falseNegatives); + double f1Score = 2 * precision * recall / (precision + recall); + + // Print the evaluation metrics + Console.WriteLine($"Accuracy: {accuracy}"); + Console.WriteLine($"Precision: {precision}"); + Console.WriteLine($"Recall: {recall}"); + Console.WriteLine($"F1 Score: {f1Score}"); + } + } + +} + diff --git a/source/KNN_Classifier/Result.cs b/source/KNN_Classifier/Result.cs new file mode 100644 index 000000000..a34a9a616 --- /dev/null +++ b/source/KNN_Classifier/Result.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +/************************************************************************************************************************************ + +################################################# CLASS SUMMARY ###################################################################### + +Class Result: + +- The Result class is a simple data class with two properties: label and result. It has a constructor that takes in a string and a +double value to initialize the properties. + +- The purpose of this class is to represent the class label and result represents the confidence score or probability associated +with that label. + +*************************************************************************************************************************************/ + +namespace textClassification +{ + /// +<<<<<<< HEAD + /// Represents the result of a classification model prediction. + /// + public class Result + { + /// + /// The label assigned to the predicted class. + /// + public string label { get; set; } + + /// + /// The confidence score associated with the predicted class. + /// + public double result { get; set; } + + /// + /// Initializes a new instance of the Result class with the specified label and confidence score. + /// + /// The label assigned to the predicted class. + /// The confidence score associated with the predicted class. +======= + /// Represents a classification result, which includes a label and a corresponding classification score. + /// + + public class Result + { + /// + /// The label of the classification result. + /// + + public String label { get; set; } + /// + /// The classification score of the label. + /// + /// + public double result { get; set; } + /// + /// Creates a new Result object with the specified label and classification score. + /// + /// The label of the classification result. + /// The classification score of the label. +>>>>>>> 7305e039302f6b4e10550ca91874c0d57699aba4 + public Result(string label, double result) + { + this.label = label; + this.result = result; + } + } +} diff --git a/source/KNN_Classifier/Vector.cs b/source/KNN_Classifier/Vector.cs new file mode 100644 index 000000000..0a88d6080 --- /dev/null +++ b/source/KNN_Classifier/Vector.cs @@ -0,0 +1,172 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +/************************************************************************************************************************************* + +################################################# CLASS SUMMARY ###################################################################### + +Class Vector: + +- This C# code includes a namespace called "textClassification" which has a class called "Vector". The purpose of this class is to +hold a label and a vector of integers. The class also contains static methods to retrieve words from input, create a vector from a +list of words, and create labels based on filenames. + +- the Vector class is used to create and manipulate vectors of integers with labels, and provides methods for cleaning input text, +creating vectors from lists of words, and creating labels for files based on their filenames. It is used as a helper class in the +KNN class for text classification. + +*************************************************************************************************************************************/ + + + +namespace textClassification +{ + [Serializable] + /// + /// This class represents a vector that contains a label and an int array that forms the vector. + /// + public class Vector + { + /// + /// The label of the vector. + /// + public String label { get; set; } + + /// + /// The int array that represents the vector. + /// + public int[] vector { get; set; } + + /// + /// A dynamic variable that holds the cleaned files. + /// + public static dynamic cleanedFiles; + + /// + /// The input vector that will be used to compare with other vectors. + /// + public static int[] inputVector; + + + /// + /// Initializes a new instance of the Vector class. + /// + /// The label of the vector. + /// The int array that represents the vector. + public Vector(string label, int[] vector) + { + this.label = label; + this.vector = vector; + } + + /// + /// This method takes input in the class. + /// + /// The words in the input. + public static void GetWordsFromInput(String[] wordsInInput) + { + + List listOfInputWords = new List(); + + foreach (var word in wordsInInput) + { + + var builder = new StringBuilder(); + + foreach (char letter in word) + { + + if (letter <= 90 && letter >= 69 || letter >= 97 && letter <= 122) //changed letter number by 1 not worked so restoring back to normal + { + builder.Append(letter); + } + + listOfInputWords.Add(builder.ToString().ToLower()); + } + } + } + + + + /// + /// This method creates vectors for each document in the dataset. + /// + /// The list of unique words in the dataset. + /// A list of vectors representing the dataset. + public static List CreateVector(List BagOfWords) + { + List listOfVectors = new List(); + + // Get the list of cleaned text files in the Articles\CleanedText directory. + cleanedFiles = Directory.EnumerateFiles(@"..\..\..\Articles\CleanedText\", "*.txt"); + + // For each cleaned text file, create a vector by counting the number of occurrences of each word in the BagOfWords. + foreach (var cleanedFile in cleanedFiles) + { + + // Load all words in that file into a string array. + String[] Words = System.Text.RegularExpressions.Regex.Split(File.ReadAllText(cleanedFile), @"[\s,;:.!?-]+"); + String label = ""; + int[] temporaryVectorList = new int[BagOfWords.Count]; + + // For every word in BagOfWords in the cleaned Textfile. check if the WORD is present in the file, return value 1, else 0. + for (int i = 0; i < BagOfWords.Count; i++) + { + if (Words.Contains(BagOfWords[i])) + { + temporaryVectorList[i] = 1; + } + else + { + temporaryVectorList[i] = 0; + } + } + + // Based on the file name of the cleaned textfile, identify which theme it belongs to and save that as the attached label. + if (cleanedFile.Contains("politic")) + { + label = "politic"; + } + else if (cleanedFile.Contains("sport")) + { + label = "sport"; + } + + // Add a new entry into my listOfVector with the Object Vector, which consists of a label to indentify it's belonging, along with an int vector of 0,0,0,0,1,1,1 etc. + listOfVectors.Add(new Vector(label, temporaryVectorList)); + } + return listOfVectors; + } + + + /// + /// This method creates labels for each file based on its name. + /// + /// The list of files to create labels for. + /// A list of labels corresponding to the files. + public static List CreateLabels(string[] files) + { + List labels = new List(); + + // For each file in the list of files, determine its label based on its file name. + foreach (string file in files) + { + if (file.Contains("politic")) + { + labels.Add("politic"); + } + else if (file.Contains("sport")) + { + labels.Add("sport"); + } + } + return labels; + } + + } +} +