Note
Go to the end to download the full example code. or to run this example in your browser via JupyterLite or Binder
Various string encoders: a sentiment analysis example#
In this example, we explore the performance of string and categorical encoders available in skrub.
The Toxicity dataset#
We focus on the toxicity dataset, a corpus of 1,000 tweets, evenly balanced between the binary labels “Toxic” and “Not Toxic”. Our goal is to classify each entry between these two labels, using only the text of the tweets as features.
from skrub.datasets import fetch_toxicity
dataset = fetch_toxicity()
X, y = dataset.X, dataset.y
X["is_toxic"] = y
Downloading 'toxicity' from https://github.com/skrub-data/skrub-data-files/raw/refs/heads/main/toxicity.zip (attempt 1/3)
When it comes to displaying large chunks of text, the TableReport
is especially
useful! Click on any cell below to expand and read the tweet in full.
from skrub import TableReport
TableReport(X)
text | is_toxic | |
---|---|---|
0 | Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page. | Toxic |
1 | The senile credit card shrill from Delaware needs to resign!! | Toxic |
2 | He does that a lot -- makes everyone look good but him...I guess it's also probably the Dems and the Media that force him to compulsively tweet abject bullshit like a lying bitch. They're tricky, them libs. | Toxic |
3 | F*ck Lizzo | Toxic |
4 | Epstein and trump were best buds!!! Pedophiles who play together!! | Toxic |
995 | My maternal abuelita taught me how to make plantain empanadas 🥺 and my paternal abuelita needed me to help her brush her dentures 😌 I love them so much 🥰 | Not Toxic |
996 | Funnily enough I was looking online last week and wondering why nobody has opened an eSports/Gaming bar round here. Can’t wait to pop in at some point :) | Not Toxic |
997 | I can't bear how nice this is. I guess its bearnessities. I'll see my self out | Not Toxic |
998 | Going to buy a share of Tesla just to ensure it starts going back down | Not Toxic |
999 | I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah. | Not Toxic |
text
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
Most frequent values
Post was funny, but this took it to another level.
I’m 70 and I agree.
Anyone have this gif without the text?
He is definitely a maggot...
I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.
Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page.
The senile credit card shrill from Delaware needs to resign!!
WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!
After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***
This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I'm all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It's the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don't wanna Fly Covid Airlines or I'm a lil Drunk Airlines ...
['Post was funny, but this took it to another level.', 'I’m 70 and I agree.', 'Anyone have this gif without the text?', 'He is definitely a maggot...', "I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.", 'Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world.\n All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid.\n I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. \n He is not a representation of our community. Don’t celebrate him on this page.', 'The senile credit card shrill from Delaware needs to resign!!', "WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!", 'After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***', 'This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I\'m all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It\'s the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don\'t wanna Fly Covid Airlines or I\'m a lil Drunk Airlines ...']
is_toxic
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 2 (0.2%)
Most frequent values
Toxic
Not Toxic
['Toxic', 'Not Toxic']
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Column
|
Column name
|
dtype
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
---|---|---|---|---|---|---|---|---|---|
0 | text | ObjectDType | 0 (0.0%) | 999 (99.9%) | |||||
1 | is_toxic | ObjectDType | 0 (0.0%) | 2 (0.2%) |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
text
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
Most frequent values
Post was funny, but this took it to another level.
I’m 70 and I agree.
Anyone have this gif without the text?
He is definitely a maggot...
I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.
Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page.
The senile credit card shrill from Delaware needs to resign!!
WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!
After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***
This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I'm all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It's the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don't wanna Fly Covid Airlines or I'm a lil Drunk Airlines ...
['Post was funny, but this took it to another level.', 'I’m 70 and I agree.', 'Anyone have this gif without the text?', 'He is definitely a maggot...', "I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.", 'Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world.\n All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid.\n I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. \n He is not a representation of our community. Don’t celebrate him on this page.', 'The senile credit card shrill from Delaware needs to resign!!', "WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!", 'After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***', 'This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I\'m all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It\'s the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don\'t wanna Fly Covid Airlines or I\'m a lil Drunk Airlines ...']
is_toxic
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 2 (0.2%)
Most frequent values
Toxic
Not Toxic
['Toxic', 'Not Toxic']
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Column 1 | Column 2 | Cramér's V |
---|---|---|
text | is_toxic | 0.100 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
GapEncoder#
First, let’s vectorize our text column using the GapEncoder
, one of the
high cardinality categorical encoders
provided by skrub.
As introduced in the previous example, the GapEncoder
performs matrix factorization for topic modeling. It builds latent topics by
capturing combinations of substrings that frequently co-occur, and encoded vectors
correspond to topic activations.
To interpret these latent topics, we select for each of them a few labels from the input data with the highest activations. In the example below we select 3 labels to summarize each topic.
from skrub import GapEncoder
gap = GapEncoder(n_components=30)
X_trans = gap.fit_transform(X["text"])
# Add the original text as a first column
X_trans.insert(0, "text", X["text"])
TableReport(X_trans)
text | text: announcement, experience, experienced | text: liberalhypocrisy, msnbc, flimflamfool | text: yourselves, ourselves, yourself | text: nvrseqrvrqrqrr, horrible, screaming | text: redundant, participation, attitude | text: destroying, government, governments | text: noodles, recommended, allways | text: zuckerburg, fuckzuckerberg, zuckerberg | text: haircut, picture, nursing | text: ridiculousness, ridiculous, subtract | text: blackmailed, congress, garbage | text: cuntmila, pizzaaaa, lowlifescumbag | text: qualified, americans, marxists | text: infrastructure, presidential, president | text: supporters, supported, supports | text: fucking, suicide, fuckin | text: johnson, vaccine, ƞỉဌဌᕦѓ | text: impeachment, eligibility, misdemeanors | text: pedophiles, pedophile, atmosphere | text: afghanistan, withdrawal, campaigned | text: previously, lackluster, shyvana | text: conservatives, indoctrination, treasonous | text: beautiful, beautifuls, morgana | text: nxhcplzrecw, maga2020, symptoms | text: emblazoned, confederate, gargantuan | text: actually, zigzag, counselor | text: bitchymitchy, deepening, between | text: unrelentless, relentlessly, intentionally | text: schoolmates, shotgun, winchester | text: retrógrados, deifnelyy, hahahakamalagohangyourself | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page. | 18.186413846310625 | 0.14920951926697612 | 0.437752948346637 | 21.196789832245745 | 19.344684008315348 | 100.68395233544474 | 7.654701015852432 | 1.541505196492576 | 3.621459506062359 | 212.16341086266516 | 23.534993680042483 | 0.22841834475304149 | 12.954595044656553 | 22.18087580587584 | 1.791372949424312 | 7.593266524517323 | 3.26951048563625 | 4.220401457076783 | 7.680517194954656 | 30.744435786512266 | 3.3291496299905354 | 48.952981479442016 | 5.443148501825464 | 0.4200336657232006 | 8.585627419015282 | 9.85635381396056 | 0.1916163378634571 | 74.99081033323839 | 5.921353153681443 | 0.13065783980948575 |
1 | The senile credit card shrill from Delaware needs to resign!! | 5.182849488844156 | 0.09827079915014619 | 0.1697358464145319 | 0.2636213385020614 | 0.1794344323171981 | 0.16786497547114998 | 0.15313315979363995 | 0.6652416390905458 | 8.694693906465224 | 31.53778997212469 | 1.984245637817509 | 0.09145442639533315 | 0.15533077698921977 | 7.870482897360441 | 4.942057546858445 | 0.26619966243417176 | 0.08364530481105384 | 0.11204106021629638 | 5.477003911540158 | 0.16954103321752778 | 0.3213186357705765 | 2.2268529403004713 | 0.2082510384848223 | 0.12227551730769709 | 0.22547946666488042 | 17.87449187183883 | 0.2390287494239318 | 0.1235943196281526 | 0.2956284042041457 | 0.098440237643294 |
2 | He does that a lot -- makes everyone look good but him...I guess it's also probably the Dems and the Media that force him to compulsively tweet abject bullshit like a lying bitch. They're tricky, them libs. | 12.049463864410182 | 0.24626151354262535 | 0.30357177344328296 | 5.300353150159638 | 0.26305685632753406 | 5.863983990140672 | 40.66072330833986 | 1.3320985647874761 | 0.16378140199390073 | 1.3376327726262671 | 0.9668759854289244 | 29.607944418691037 | 0.30748055863335333 | 24.816777830947032 | 4.844576324901847 | 89.0581088647368 | 0.20010355032303268 | 2.5118184093560023 | 0.3123876817039136 | 0.17894807402924828 | 15.439276476185885 | 2.0475387390601667 | 13.088767705329806 | 0.1861437912293695 | 14.137266726635744 | 0.20856232166261612 | 38.76941240916636 | 2.9014150855812613 | 0.2397260477361103 | 0.15594003479447816 |
3 | F*ck Lizzo | 0.0643893653973827 | 0.23281946190731917 | 0.07348612748584636 | 0.07129940023148851 | 0.068653274125783 | 0.07027425013164165 | 0.11139403796898958 | 0.27269221046228614 | 0.0582472188311738 | 0.05707140659682736 | 0.08038069163226963 | 3.921179449447532 | 0.07468357606963692 | 0.08147889056128538 | 0.06551874984213334 | 0.3681179958761983 | 0.0825449426060242 | 0.12410154583407318 | 0.06253518243658798 | 0.07529211105784489 | 0.07569516951996019 | 0.06044347351341063 | 0.06318242191586107 | 0.11748114531708867 | 0.09324275184609586 | 0.11828543261556784 | 0.08526779506657015 | 0.0727819264813728 | 0.09346593536618386 | 6.703993060709679 |
4 | Epstein and trump were best buds!!! Pedophiles who play together!! | 0.11852794107542096 | 0.14784519603696777 | 2.959289680023791 | 0.10000616062395529 | 0.13886001068946413 | 0.4647700612049981 | 0.11007039430584425 | 0.11625963972991098 | 2.331478095438059 | 0.12072489591117247 | 3.3376790297590917 | 0.09484329295763075 | 0.222713257782874 | 0.2292494201593568 | 35.53854379069087 | 0.10054726700321379 | 0.10487111806696388 | 0.8260463177292082 | 39.94239376147249 | 8.012589918628157 | 0.18178849762836352 | 0.12084072890525638 | 1.0222160934531104 | 0.14013974674773527 | 0.33131259971954985 | 0.15663127962276957 | 0.11457336431221121 | 0.15570210258922867 | 0.12792184162811704 | 0.13156362712024244 |
995 | My maternal abuelita taught me how to make plantain empanadas 🥺 and my paternal abuelita needed me to help her brush her dentures 😌 I love them so much 🥰 | 1.1215302077551201 | 0.22111160289565804 | 0.22823030280009016 | 0.11648253947075382 | 15.490803779826537 | 5.4858884287689085 | 0.18281520045486524 | 0.3484731508440604 | 0.27886174409838116 | 5.1816982970532575 | 0.244553371489329 | 0.1106127578212806 | 0.913040557179431 | 0.725470691146936 | 4.890057761340867 | 0.17354508076008457 | 0.32808020423190687 | 0.2817257399322878 | 34.384413462756726 | 15.645217384468705 | 10.801269498314024 | 0.35732142083849283 | 22.27952334673243 | 50.65353684326713 | 7.835832820026002 | 0.19889808548607282 | 17.692717276554404 | 20.0541942589299 | 11.592657626939241 | 0.18143438097604303 |
996 | Funnily enough I was looking online last week and wondering why nobody has opened an eSports/Gaming bar round here. Can’t wait to pop in at some point :) | 2.880124518902517 | 0.17463566144227913 | 0.29207349269949523 | 3.7633579550551506 | 35.378486843949304 | 0.8454270462775484 | 18.266307077245116 | 1.0452441333171039 | 0.17661494421931004 | 0.1539823303239004 | 16.458227905237138 | 0.15379132083686006 | 4.218071666939834 | 0.26088769255513716 | 24.52800893257743 | 32.48366922937239 | 1.2003833091075684 | 0.5642913109188397 | 2.182223642002124 | 14.520961911668044 | 0.9075164650673269 | 0.5794464374782389 | 3.275938061400339 | 0.2032735851803249 | 3.610707244214419 | 16.325260862607553 | 3.7808110688677896 | 26.185052110090062 | 5.265503463473348 | 8.319717735699573 |
997 | I can't bear how nice this is. I guess its bearnessities. I'll see my self out | 0.9481778114629935 | 0.1538824148988966 | 21.356452101236258 | 0.1291630064330427 | 0.3118248040236963 | 0.19392444421001875 | 0.14094837957922207 | 0.5220898217051975 | 0.2072870591529697 | 1.4391204734957745 | 3.8944005583337553 | 0.3353651611895437 | 0.76453594181775 | 0.1348055165969932 | 0.8550974924567242 | 0.12480612633615465 | 0.2639855180522531 | 0.6500646949264276 | 0.21994242901941477 | 1.2678801024680915 | 20.570605966690824 | 0.14277409725535214 | 32.46727742914851 | 0.31778555976070644 | 0.11996728777662467 | 0.6704205928920927 | 3.875706049598177 | 8.607647908045811 | 14.691150629698871 | 0.12290920440983531 |
998 | Going to buy a share of Tesla just to ensure it starts going back down | 0.131176729074793 | 0.17320412990577777 | 0.11955218883770384 | 0.1192141732741356 | 9.472326765089452 | 0.24311425868024947 | 0.9519174339824367 | 0.9355294701964574 | 0.21328783982232166 | 0.31307520790067583 | 0.21839914245614772 | 0.25285231317989076 | 1.0725820206577708 | 0.538419199989099 | 4.480268589658566 | 15.261965528768956 | 23.72924263699828 | 1.6629989012769402 | 0.6531773874919441 | 0.12095577077334649 | 13.947315117686271 | 1.0043782898441918 | 0.9830380153691054 | 0.1704913946983161 | 24.048184582963522 | 0.10702883325311377 | 1.9935034384213965 | 0.220630292958375 | 0.14297778227927024 | 0.21919139592418252 |
999 | I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah. | 0.2137717697242328 | 0.3411857181312151 | 7.774716767444641 | 0.486200636304165 | 0.5380749920987593 | 3.5647542967780623 | 15.712178507826538 | 8.147090746269315 | 24.64296874818823 | 2.533427690280038 | 35.04386735993141 | 0.17567746990349195 | 24.811155019844037 | 19.955501187781323 | 19.71963896371036 | 4.138691050882535 | 51.06738965944952 | 4.691429375796792 | 22.609296932207652 | 47.12981899644279 | 20.207831954332917 | 1.1250048898554084 | 42.35314171276821 | 0.6348277939756457 | 22.71571991575616 | 127.91808955010787 | 1.4156958002766913 | 2.0075259569146433 | 35.31316066181827 | 0.5121634430355038 |
text
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
Most frequent values
Post was funny, but this took it to another level.
I’m 70 and I agree.
Anyone have this gif without the text?
He is definitely a maggot...
I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.
Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page.
The senile credit card shrill from Delaware needs to resign!!
WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!
After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***
This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I'm all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It's the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don't wanna Fly Covid Airlines or I'm a lil Drunk Airlines ...
['Post was funny, but this took it to another level.', 'I’m 70 and I agree.', 'Anyone have this gif without the text?', 'He is definitely a maggot...', "I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.", 'Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world.\n All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid.\n I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. \n He is not a representation of our community. Don’t celebrate him on this page.', 'The senile credit card shrill from Delaware needs to resign!!', "WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!", 'After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***', 'This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I\'m all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It\'s the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don\'t wanna Fly Covid Airlines or I\'m a lil Drunk Airlines ...']
text: announcement, experience, experienced
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.87 ± 22.9
- Median ± IQR
- 0.327 ± 3.16
- Min | Max
- 0.0516 | 578.
text: liberalhypocrisy, msnbc, flimflamfool
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 4.00 ± 26.4
- Median ± IQR
- 0.135 ± 0.147
- Min | Max
- 0.0524 | 431.
text: yourselves, ourselves, yourself
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 11.4 ± 90.7
- Median ± IQR
- 0.443 ± 5.82
- Min | Max
- 0.0504 | 2.79e+03
text: nvrseqrvrqrqrr, horrible, screaming
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.60 ± 16.9
- Median ± IQR
- 0.211 ± 1.25
- Min | Max
- 0.0546 | 223.
text: redundant, participation, attitude
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.06 ± 27.6
- Median ± IQR
- 0.417 ± 3.99
- Min | Max
- 0.0512 | 790.
text: destroying, government, governments
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.45 ± 83.5
- Median ± IQR
- 0.521 ± 4.69
- Min | Max
- 0.0502 | 2.59e+03
text: noodles, recommended, allways
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 7.26 ± 30.9
- Median ± IQR
- 0.432 ± 4.95
- Min | Max
- 0.0521 | 839.
text: zuckerburg, fuckzuckerberg, zuckerberg
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 3.98 ± 12.9
- Median ± IQR
- 0.212 ± 0.787
- Min | Max
- 0.0543 | 179.
text: haircut, picture, nursing
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.46 ± 20.1
- Median ± IQR
- 0.240 ± 1.68
- Min | Max
- 0.0538 | 378.
text: ridiculousness, ridiculous, subtract
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.19 ± 18.0
- Median ± IQR
- 0.270 ± 2.07
- Min | Max
- 0.0523 | 354.
text: blackmailed, congress, garbage
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.79 ± 69.6
- Median ± IQR
- 0.721 ± 5.86
- Min | Max
- 0.0506 | 2.16e+03
text: cuntmila, pizzaaaa, lowlifescumbag
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 3.75 ± 15.6
- Median ± IQR
- 0.119 ± 0.150
- Min | Max
- 0.0518 | 302.
text: qualified, americans, marxists
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.38 ± 49.1
- Median ± IQR
- 0.599 ± 5.78
- Min | Max
- 0.0507 | 1.48e+03
text: infrastructure, presidential, president
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.79 ± 30.8
- Median ± IQR
- 0.319 ± 3.47
- Min | Max
- 0.0515 | 834.
text: supporters, supported, supports
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.50 ± 24.7
- Median ± IQR
- 0.309 ± 4.28
- Min | Max
- 0.0516 | 642.
text: fucking, suicide, fuckin
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.14 ± 41.3
- Median ± IQR
- 0.869 ± 8.80
- Min | Max
- 0.0507 | 1.22e+03
text: johnson, vaccine, ƞỉဌဌᕦѓ
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.42 ± 23.9
- Median ± IQR
- 0.270 ± 2.63
- Min | Max
- 0.0520 | 468.
text: impeachment, eligibility, misdemeanors
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 4.46 ± 20.8
- Median ± IQR
- 0.248 ± 1.82
- Min | Max
- 0.0516 | 550.
text: pedophiles, pedophile, atmosphere
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.58 ± 42.8
- Median ± IQR
- 0.452 ± 4.17
- Min | Max
- 0.0505 | 1.30e+03
text: afghanistan, withdrawal, campaigned
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.96 ± 39.2
- Median ± IQR
- 0.383 ± 4.75
- Min | Max
- 0.0513 | 1.18e+03
text: previously, lackluster, shyvana
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.71 ± 90.2
- Median ± IQR
- 0.545 ± 5.28
- Min | Max
- 0.0505 | 2.81e+03
text: conservatives, indoctrination, treasonous
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.29 ± 38.2
- Median ± IQR
- 0.427 ± 4.75
- Min | Max
- 0.0506 | 1.09e+03
text: beautiful, beautifuls, morgana
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.84 ± 48.5
- Median ± IQR
- 0.602 ± 7.10
- Min | Max
- 0.0568 | 1.45e+03
text: nxhcplzrecw, maga2020, symptoms
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 2.57 ± 13.0
- Median ± IQR
- 0.145 ± 0.161
- Min | Max
- 0.0527 | 194.
text: emblazoned, confederate, gargantuan
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.71 ± 72.8
- Median ± IQR
- 0.614 ± 5.99
- Min | Max
- 0.0504 | 2.27e+03
text: actually, zigzag, counselor
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.93 ± 22.8
- Median ± IQR
- 0.369 ± 3.86
- Min | Max
- 0.0546 | 578.
text: bitchymitchy, deepening, between
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.33 ± 28.3
- Median ± IQR
- 0.422 ± 4.34
- Min | Max
- 0.0510 | 800.
text: unrelentless, relentlessly, intentionally
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.67 ± 58.7
- Median ± IQR
- 0.945 ± 8.09
- Min | Max
- 0.0508 | 1.79e+03
text: schoolmates, shotgun, winchester
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.88 ± 32.0
- Median ± IQR
- 0.421 ± 5.10
- Min | Max
- 0.0509 | 921.
text: retrógrados, deifnelyy, hahahakamalagohangyourself
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 1.98 ± 9.09
- Median ± IQR
- 0.132 ± 0.145
- Min | Max
- 0.0519 | 120.
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Column
|
Column name
|
dtype
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
---|---|---|---|---|---|---|---|---|---|
0 | text | ObjectDType | 0 (0.0%) | 999 (99.9%) | |||||
1 | text: announcement, experience, experienced | Float64DType | 0 (0.0%) | 999 (99.9%) | 5.87 | 22.9 | 0.0516 | 0.327 | 578. |
2 | text: liberalhypocrisy, msnbc, flimflamfool | Float64DType | 0 (0.0%) | 999 (99.9%) | 4.00 | 26.4 | 0.0524 | 0.135 | 431. |
3 | text: yourselves, ourselves, yourself | Float64DType | 0 (0.0%) | 999 (99.9%) | 11.4 | 90.7 | 0.0504 | 0.443 | 2.79e+03 |
4 | text: nvrseqrvrqrqrr, horrible, screaming | Float64DType | 0 (0.0%) | 999 (99.9%) | 5.60 | 16.9 | 0.0546 | 0.211 | 223. |
5 | text: redundant, participation, attitude | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.06 | 27.6 | 0.0512 | 0.417 | 790. |
6 | text: destroying, government, governments | Float64DType | 0 (0.0%) | 999 (99.9%) | 9.45 | 83.5 | 0.0502 | 0.521 | 2.59e+03 |
7 | text: noodles, recommended, allways | Float64DType | 0 (0.0%) | 999 (99.9%) | 7.26 | 30.9 | 0.0521 | 0.432 | 839. |
8 | text: zuckerburg, fuckzuckerberg, zuckerberg | Float64DType | 0 (0.0%) | 999 (99.9%) | 3.98 | 12.9 | 0.0543 | 0.212 | 179. |
9 | text: haircut, picture, nursing | Float64DType | 0 (0.0%) | 999 (99.9%) | 5.46 | 20.1 | 0.0538 | 0.240 | 378. |
10 | text: ridiculousness, ridiculous, subtract | Float64DType | 0 (0.0%) | 999 (99.9%) | 5.19 | 18.0 | 0.0523 | 0.270 | 354. |
11 | text: blackmailed, congress, garbage | Float64DType | 0 (0.0%) | 999 (99.9%) | 8.79 | 69.6 | 0.0506 | 0.721 | 2.16e+03 |
12 | text: cuntmila, pizzaaaa, lowlifescumbag | Float64DType | 0 (0.0%) | 999 (99.9%) | 3.75 | 15.6 | 0.0518 | 0.119 | 302. |
13 | text: qualified, americans, marxists | Float64DType | 0 (0.0%) | 999 (99.9%) | 8.38 | 49.1 | 0.0507 | 0.599 | 1.48e+03 |
14 | text: infrastructure, presidential, president | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.79 | 30.8 | 0.0515 | 0.319 | 834. |
15 | text: supporters, supported, supports | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.50 | 24.7 | 0.0516 | 0.309 | 642. |
16 | text: fucking, suicide, fuckin | Float64DType | 0 (0.0%) | 999 (99.9%) | 9.14 | 41.3 | 0.0507 | 0.869 | 1.22e+03 |
17 | text: johnson, vaccine, ƞỉဌဌᕦѓ | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.42 | 23.9 | 0.0520 | 0.270 | 468. |
18 | text: impeachment, eligibility, misdemeanors | Float64DType | 0 (0.0%) | 999 (99.9%) | 4.46 | 20.8 | 0.0516 | 0.248 | 550. |
19 | text: pedophiles, pedophile, atmosphere | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.58 | 42.8 | 0.0505 | 0.452 | 1.30e+03 |
20 | text: afghanistan, withdrawal, campaigned | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.96 | 39.2 | 0.0513 | 0.383 | 1.18e+03 |
21 | text: previously, lackluster, shyvana | Float64DType | 0 (0.0%) | 999 (99.9%) | 9.71 | 90.2 | 0.0505 | 0.545 | 2.81e+03 |
22 | text: conservatives, indoctrination, treasonous | Float64DType | 0 (0.0%) | 999 (99.9%) | 8.29 | 38.2 | 0.0506 | 0.427 | 1.09e+03 |
23 | text: beautiful, beautifuls, morgana | Float64DType | 0 (0.0%) | 999 (99.9%) | 8.84 | 48.5 | 0.0568 | 0.602 | 1.45e+03 |
24 | text: nxhcplzrecw, maga2020, symptoms | Float64DType | 0 (0.0%) | 999 (99.9%) | 2.57 | 13.0 | 0.0527 | 0.145 | 194. |
25 | text: emblazoned, confederate, gargantuan | Float64DType | 0 (0.0%) | 999 (99.9%) | 8.71 | 72.8 | 0.0504 | 0.614 | 2.27e+03 |
26 | text: actually, zigzag, counselor | Float64DType | 0 (0.0%) | 999 (99.9%) | 5.93 | 22.8 | 0.0546 | 0.369 | 578. |
27 | text: bitchymitchy, deepening, between | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.33 | 28.3 | 0.0510 | 0.422 | 800. |
28 | text: unrelentless, relentlessly, intentionally | Float64DType | 0 (0.0%) | 999 (99.9%) | 9.67 | 58.7 | 0.0508 | 0.945 | 1.79e+03 |
29 | text: schoolmates, shotgun, winchester | Float64DType | 0 (0.0%) | 999 (99.9%) | 6.88 | 32.0 | 0.0509 | 0.421 | 921. |
30 | text: retrógrados, deifnelyy, hahahakamalagohangyourself | Float64DType | 0 (0.0%) | 999 (99.9%) | 1.98 | 9.09 | 0.0519 | 0.132 | 120. |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
text
ObjectDType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
Most frequent values
Post was funny, but this took it to another level.
I’m 70 and I agree.
Anyone have this gif without the text?
He is definitely a maggot...
I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.
Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world. All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid. I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. He is not a representation of our community. Don’t celebrate him on this page.
The senile credit card shrill from Delaware needs to resign!!
WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!
After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***
This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I'm all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It's the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don't wanna Fly Covid Airlines or I'm a lil Drunk Airlines ...
['Post was funny, but this took it to another level.', 'I’m 70 and I agree.', 'Anyone have this gif without the text?', 'He is definitely a maggot...', "I only saw a couple of these throughout the month and tried to figure out what all of them were. Only ones I missed were Star Guardian Seraphine (thought it was Heartbreaker) and I couldn't figure out the 2nd Soraka was Victorious. So all in all, you did a really good job nailing the characters and the theme presented! I think my faves are KDA Neeko and CCN Xayah.", 'Elon Musk is a piece of shit, greedy capitalist who exploits workers, and offers nothing of real benefit to the world.\n All he’s done is make a name for himself on the backs of other people, using dirty money from his family’s emerald mine they acquired during apartheid.\n I don’t care that he’s autistic. He thinks we should be cured with his company’s AI chip. \n He is not a representation of our community. Don’t celebrate him on this page.', 'The senile credit card shrill from Delaware needs to resign!!', "WE MANAGED TO FIND AN ASSHOLE WHO'S A BIGGER SCUMBAG THAN CUOMO!", 'After all the leftist said and did to DT, you can take your disgraceful comment and shove it up your ***', 'This is for all you Crybaby Transpo-People , NYC Police and NYC Firefighters and Cry Baby I Think I\'m all that and then some Airline Pilots ( # 1 you drive a BUS --lets get that straight ) 1 Weeks of training and Any Sesna Pilot can fly a Jet --Heck Even John Travolta and Indian Jones can Fly a Jet FOR REAL they can ...with that being said " GET Covid Vaccinated - It\'s the LAW " !!!You ALL NEED to Act like Grown Adults not a premature Sissy La La - GET the VACCINE and Like it..You Voted for Biden now Reap the Whirl-Wind of your actions ..Rough Travel you say ,,I say SORRY I don\'t wanna Fly Covid Airlines or I\'m a lil Drunk Airlines ...']
text: announcement, experience, experienced
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.87 ± 22.9
- Median ± IQR
- 0.327 ± 3.16
- Min | Max
- 0.0516 | 578.
text: liberalhypocrisy, msnbc, flimflamfool
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 4.00 ± 26.4
- Median ± IQR
- 0.135 ± 0.147
- Min | Max
- 0.0524 | 431.
text: yourselves, ourselves, yourself
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 11.4 ± 90.7
- Median ± IQR
- 0.443 ± 5.82
- Min | Max
- 0.0504 | 2.79e+03
text: nvrseqrvrqrqrr, horrible, screaming
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.60 ± 16.9
- Median ± IQR
- 0.211 ± 1.25
- Min | Max
- 0.0546 | 223.
text: redundant, participation, attitude
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.06 ± 27.6
- Median ± IQR
- 0.417 ± 3.99
- Min | Max
- 0.0512 | 790.
text: destroying, government, governments
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.45 ± 83.5
- Median ± IQR
- 0.521 ± 4.69
- Min | Max
- 0.0502 | 2.59e+03
text: noodles, recommended, allways
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 7.26 ± 30.9
- Median ± IQR
- 0.432 ± 4.95
- Min | Max
- 0.0521 | 839.
text: zuckerburg, fuckzuckerberg, zuckerberg
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 3.98 ± 12.9
- Median ± IQR
- 0.212 ± 0.787
- Min | Max
- 0.0543 | 179.
text: haircut, picture, nursing
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.46 ± 20.1
- Median ± IQR
- 0.240 ± 1.68
- Min | Max
- 0.0538 | 378.
text: ridiculousness, ridiculous, subtract
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.19 ± 18.0
- Median ± IQR
- 0.270 ± 2.07
- Min | Max
- 0.0523 | 354.
text: blackmailed, congress, garbage
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.79 ± 69.6
- Median ± IQR
- 0.721 ± 5.86
- Min | Max
- 0.0506 | 2.16e+03
text: cuntmila, pizzaaaa, lowlifescumbag
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 3.75 ± 15.6
- Median ± IQR
- 0.119 ± 0.150
- Min | Max
- 0.0518 | 302.
text: qualified, americans, marxists
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.38 ± 49.1
- Median ± IQR
- 0.599 ± 5.78
- Min | Max
- 0.0507 | 1.48e+03
text: infrastructure, presidential, president
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.79 ± 30.8
- Median ± IQR
- 0.319 ± 3.47
- Min | Max
- 0.0515 | 834.
text: supporters, supported, supports
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.50 ± 24.7
- Median ± IQR
- 0.309 ± 4.28
- Min | Max
- 0.0516 | 642.
text: fucking, suicide, fuckin
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.14 ± 41.3
- Median ± IQR
- 0.869 ± 8.80
- Min | Max
- 0.0507 | 1.22e+03
text: johnson, vaccine, ƞỉဌဌᕦѓ
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.42 ± 23.9
- Median ± IQR
- 0.270 ± 2.63
- Min | Max
- 0.0520 | 468.
text: impeachment, eligibility, misdemeanors
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 4.46 ± 20.8
- Median ± IQR
- 0.248 ± 1.82
- Min | Max
- 0.0516 | 550.
text: pedophiles, pedophile, atmosphere
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.58 ± 42.8
- Median ± IQR
- 0.452 ± 4.17
- Min | Max
- 0.0505 | 1.30e+03
text: afghanistan, withdrawal, campaigned
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.96 ± 39.2
- Median ± IQR
- 0.383 ± 4.75
- Min | Max
- 0.0513 | 1.18e+03
text: previously, lackluster, shyvana
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.71 ± 90.2
- Median ± IQR
- 0.545 ± 5.28
- Min | Max
- 0.0505 | 2.81e+03
text: conservatives, indoctrination, treasonous
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.29 ± 38.2
- Median ± IQR
- 0.427 ± 4.75
- Min | Max
- 0.0506 | 1.09e+03
text: beautiful, beautifuls, morgana
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.84 ± 48.5
- Median ± IQR
- 0.602 ± 7.10
- Min | Max
- 0.0568 | 1.45e+03
text: nxhcplzrecw, maga2020, symptoms
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 2.57 ± 13.0
- Median ± IQR
- 0.145 ± 0.161
- Min | Max
- 0.0527 | 194.
text: emblazoned, confederate, gargantuan
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 8.71 ± 72.8
- Median ± IQR
- 0.614 ± 5.99
- Min | Max
- 0.0504 | 2.27e+03
text: actually, zigzag, counselor
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 5.93 ± 22.8
- Median ± IQR
- 0.369 ± 3.86
- Min | Max
- 0.0546 | 578.
text: bitchymitchy, deepening, between
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.33 ± 28.3
- Median ± IQR
- 0.422 ± 4.34
- Min | Max
- 0.0510 | 800.
text: unrelentless, relentlessly, intentionally
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 9.67 ± 58.7
- Median ± IQR
- 0.945 ± 8.09
- Min | Max
- 0.0508 | 1.79e+03
text: schoolmates, shotgun, winchester
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 6.88 ± 32.0
- Median ± IQR
- 0.421 ± 5.10
- Min | Max
- 0.0509 | 921.
text: retrógrados, deifnelyy, hahahakamalagohangyourself
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 999 (99.9%)
- Mean ± Std
- 1.98 ± 9.09
- Median ± IQR
- 0.132 ± 0.145
- Min | Max
- 0.0519 | 120.
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Column 1 | Column 2 | Cramér's V |
---|---|---|
text | text: emblazoned, confederate, gargantuan | 1.00 |
text | text: fucking, suicide, fuckin | 0.707 |
text: infrastructure, presidential, president | text: unrelentless, relentlessly, intentionally | 0.707 |
text: beautiful, beautifuls, morgana | text: schoolmates, shotgun, winchester | 0.500 |
text: nvrseqrvrqrqrr, horrible, screaming | text: unrelentless, relentlessly, intentionally | 0.408 |
text | text: liberalhypocrisy, msnbc, flimflamfool | 0.378 |
text: conservatives, indoctrination, treasonous | text: nxhcplzrecw, maga2020, symptoms | 0.353 |
text: nvrseqrvrqrqrr, horrible, screaming | text: infrastructure, presidential, president | 0.333 |
text: nxhcplzrecw, maga2020, symptoms | text: actually, zigzag, counselor | 0.291 |
text: cuntmila, pizzaaaa, lowlifescumbag | text: johnson, vaccine, ƞỉဌဌᕦѓ | 0.289 |
text: noodles, recommended, allways | text: beautiful, beautifuls, morgana | 0.266 |
text: beautiful, beautifuls, morgana | text: actually, zigzag, counselor | 0.249 |
text: nvrseqrvrqrqrr, horrible, screaming | text: conservatives, indoctrination, treasonous | 0.249 |
text: impeachment, eligibility, misdemeanors | text: bitchymitchy, deepening, between | 0.249 |
text: announcement, experience, experienced | text: beautiful, beautifuls, morgana | 0.212 |
text: noodles, recommended, allways | text: schoolmates, shotgun, winchester | 0.187 |
text: haircut, picture, nursing | text: afghanistan, withdrawal, campaigned | 0.181 |
text: nvrseqrvrqrqrr, horrible, screaming | text: bitchymitchy, deepening, between | 0.175 |
text: actually, zigzag, counselor | text: schoolmates, shotgun, winchester | 0.175 |
text: ridiculousness, ridiculous, subtract | text: supporters, supported, supports | 0.153 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
We can use a heatmap to highlight the highest activations, making them more visible for comparison against the original text and vectors above.
import numpy as np
from matplotlib import pyplot as plt
def plot_gap_feature_importance(X_trans):
x_samples = X_trans.pop("text")
# We slightly format the topics and labels for them to fit on the plot.
topic_labels = [x.replace("text: ", "") for x in X_trans.columns]
labels = x_samples.str[:50].values + "..."
# We clip large outliers to makes activations more visible.
X_trans = np.clip(X_trans, a_min=None, a_max=200)
plt.figure(figsize=(10, 10), dpi=200)
plt.imshow(X_trans.T)
plt.yticks(
range(len(topic_labels)),
labels=topic_labels,
ha="right",
size=12,
)
plt.xticks(range(len(labels)), labels=labels, size=12, rotation=50, ha="right")
plt.colorbar().set_label(label="Topic activations", size=13)
plt.ylabel("Latent topics", size=14)
plt.xlabel("Data entries", size=14)
plt.tight_layout()
plt.show()
plot_gap_feature_importance(X_trans.head())

/home/circleci/project/examples/02_text_with_string_encoders.py:116: UserWarning: Glyph 4108 (\N{MYANMAR LETTER TTHA}) missing from font(s) DejaVu Sans.
plt.tight_layout()
Now that we have an understanding of the vectors produced by the GapEncoder
,
let’s evaluate its performance in toxicity classification. The GapEncoder
excels
at handling categorical columns with high cardinality, but here the column consists
of free-form text. Sentences are generally longer, with more unique ngrams than
high cardinality categories.
To benchmark the performance of the GapEncoder
against the toxicity dataset,
we integrate it into a TableVectorizer
, as introduced in the
previous example,
and create a Pipeline
by appending a HistGradientBoostingClassifier
, which
consumes the vectors produced by the GapEncoder
.
We set n_components
to 30; however, to achieve the best performance, we would
need to find the optimal value for this hyperparameter using either GridSearchCV
or RandomizedSearchCV
. We skip this part to keep the computation time for this
small example.
Recall that the ROC AUC is a metric that quantifies the ranking power of estimators, where a random estimator scores 0.5, and an oracle —providing perfect predictions— scores 1.
from sklearn.ensemble import HistGradientBoostingClassifier
from sklearn.model_selection import cross_validate
from sklearn.pipeline import make_pipeline
from skrub import TableVectorizer
def plot_box_results(named_results):
fig, ax = plt.subplots()
names, scores = zip(
*[(name, result["test_score"]) for name, result in named_results]
)
ax.boxplot(scores)
ax.set_xticks(range(1, len(names) + 1), labels=list(names), size=12)
ax.set_ylabel("ROC AUC", size=14)
plt.title(
"AUC distribution across folds (higher is better)",
size=14,
)
plt.show()
results = []
y = X.pop("is_toxic").map({"Toxic": 1, "Not Toxic": 0})
gap_pipe = make_pipeline(
TableVectorizer(high_cardinality=GapEncoder(n_components=30)),
HistGradientBoostingClassifier(),
)
gap_results = cross_validate(gap_pipe, X, y, scoring="roc_auc")
results.append(("GapEncoder", gap_results))
plot_box_results(results)

MinHashEncoder#
We now compare these results with the MinHashEncoder
, which is faster
and produces vectors better suited for tree-based estimators like
HistGradientBoostingClassifier
. To do this, we can simply replace
the GapEncoder
with the MinHashEncoder
in the previous pipeline
using set_params()
.
from skrub import MinHashEncoder
minhash_pipe = make_pipeline(
TableVectorizer(high_cardinality=MinHashEncoder(n_components=30)),
HistGradientBoostingClassifier(),
)
minhash_results = cross_validate(minhash_pipe, X, y, scoring="roc_auc")
results.append(("MinHashEncoder", minhash_results))
plot_box_results(results)

Remarkably, the vectors produced by the MinHashEncoder
offer less predictive
power than those from the GapEncoder
on this dataset.
TextEncoder#
Let’s now shift our focus to pre-trained deep learning encoders. Our previous encoders are syntactic models that we trained directly on the toxicity dataset. To generate more powerful vector representations for free-form text and diverse entries, we can instead use semantic models, such as BERT, which have been trained on very large datasets.
TextEncoder
enables you to integrate any Sentence Transformer model from the
Hugging Face Hub (or from your local disk) into your Pipeline
to transform a text
column in a dataframe. By default, TextEncoder
uses the e5-small-v2 model.
from skrub import TextEncoder
text_encoder = TextEncoder(
"sentence-transformers/paraphrase-albert-small-v2",
device="cpu",
)
text_encoder_pipe = make_pipeline(
TableVectorizer(high_cardinality=text_encoder),
HistGradientBoostingClassifier(),
)
text_encoder_results = cross_validate(text_encoder_pipe, X, y, scoring="roc_auc")
results.append(("TextEncoder", text_encoder_results))
plot_box_results(results)

SringEncoder#
TextEncoder
embeddings are very strong, but they are also quite expensive to
use. A simpler, faster alternative for encoding strings is the StringEncoder
,
which works by first performing a tf-idf (computing vectors of rescaled word
counts of the text wiki), and then
following it with TruncatedSVD to reduce the number of dimensions to, in this
case, 30.
from skrub import StringEncoder
string_encoder = StringEncoder(ngram_range=(3, 4), analyzer="char_wb")
string_encoder_pipe = make_pipeline(
TableVectorizer(high_cardinality=string_encoder),
HistGradientBoostingClassifier(),
)
string_encoder_results = cross_validate(string_encoder_pipe, X, y, scoring="roc_auc")
results.append(("StringEncoder", string_encoder_results))
plot_box_results(results)

The performance of the TextEncoder
is significantly stronger than that of
the syntactic encoders, which is expected. But how long does it take to load
and vectorize text on a CPU using a Sentence Transformer model? Below, we display
the tradeoff between predictive accuracy and training time. Note that since we are
not training the Sentence Transformer model, the “fitting time” refers to the
time taken for vectorization.
def plot_performance_tradeoff(results):
fig, ax = plt.subplots(figsize=(5, 4), dpi=200)
markers = ["s", "o", "^", "x"]
for idx, (name, result) in enumerate(results):
ax.scatter(
result["fit_time"],
result["test_score"],
label=name,
marker=markers[idx],
)
mean_fit_time = np.mean(result["fit_time"])
mean_score = np.mean(result["test_score"])
ax.scatter(
mean_fit_time,
mean_score,
color="k",
marker=markers[idx],
)
std_fit_time = np.std(result["fit_time"])
std_score = np.std(result["test_score"])
ax.errorbar(
x=mean_fit_time,
y=mean_score,
yerr=std_score,
fmt="none",
c="k",
capsize=2,
)
ax.errorbar(
x=mean_fit_time,
y=mean_score,
xerr=std_fit_time,
fmt="none",
c="k",
capsize=2,
)
ax.set_xscale("log")
ax.set_xlabel("Time to fit (seconds)")
ax.set_ylabel("ROC AUC")
ax.set_title("Prediction performance / training time trade-off")
ax.annotate(
"",
xy=(1.5, 0.98),
xytext=(8.5, 0.90),
arrowprops=dict(arrowstyle="->", mutation_scale=15),
)
ax.text(5.8, 0.86, "Best time / \nperformance trade-off")
ax.legend(bbox_to_anchor=(1.02, 0.3))
plt.show()
plot_performance_tradeoff(results)

The black points represent the average time to fit and AUC for each vectorizer, and the width of the bars represents one standard deviation
The green outlier dot on the right side of the plot corresponds to the first time the Sentence Transformers model was downloaded and loaded into memory. During the subsequent cross-validation iterations, the model is simply copied, which reduces computation time for the remaining folds.
Interestingly, StringEncoder
has a performance remarkably similar to that of
GapEncoder
, while being significantly faster.
Conclusion#
In conclusion, TextEncoder
provides powerful vectorization for text, but at
the cost of longer computation times and the need for additional dependencies,
such as torch. StringEncoder
represents a simpler alternative that can provide
good performance at a fraction of the cost of more complex methods.
Total running time of the script: (3 minutes 21.818 seconds)