From 85fdf9c4b65cb62f4a8acd28ea8eca7aa7c9cb57 Mon Sep 17 00:00:00 2001 From: Mario Graff Date: Wed, 29 May 2024 10:06:16 -0600 Subject: [PATCH] Portuguese --- quarto/data/pt-recall.csv | 201 +++----------------------------------- quarto/dialectid.qmd | 65 ------------ 2 files changed, 15 insertions(+), 251 deletions(-) diff --git a/quarto/data/pt-recall.csv b/quarto/data/pt-recall.csv index d134485..afb5cb0 100644 --- a/quarto/data/pt-recall.csv +++ b/quarto/data/pt-recall.csv @@ -1,187 +1,16 @@ ,Recall,Country,Training Size -0,0.5904392764857881,cr,4096 -1,0.557861328125,nl,4096 -2,0.5819909128459314,hu,4096 -3,0.618896484375,es,4096 -4,0.615629259427533,tr,4096 -5,0.61962890625,de,4096 -6,0.5271889400921659,cn,4096 -7,0.5980210265924552,cz,4096 -8,0.8043217286914766,ro,4096 -9,0.586669921875,ar,4096 -10,0.5818399044205496,sg,4096 -11,0.5328767123287671,mt,4096 -12,0.585693359375,ca,4096 -13,0.68115234375,co,4096 -14,0.59375,cl,4096 -15,0.7588571428571429,ph,4096 -16,0.5172932330827068,hr,4096 -17,0.56396484375,fr,4096 -18,0.3949416342412451,ru,4096 -19,0.5927734375,jp,4096 -20,0.4992548435171386,th,4096 -21,0.517503805175038,gr,4096 -22,0.5387673956262425,fi,4096 -23,0.647705078125,pt,4096 -24,0.57177734375,us,4096 -25,0.5990271021542738,za,4096 -26,0.560546875,uy,4096 -27,0.6025730180806675,pe,4096 -28,0.9156756756756756,ng,4096 -29,0.635498046875,br,4096 -30,0.69970703125,mx,4096 -31,0.5341530054644809,at,4096 -32,0.539794921875,py,4096 -33,0.73486328125,mz,4096 -34,0.572509765625,au,4096 -35,0.5319528739735808,nz,4096 -36,0.574951171875,se,4096 -37,0.5993265993265994,eg,4096 -38,0.6681792399319342,id,4096 -39,0.6284032376747608,no,4096 -40,0.5823798627002288,ee,4096 -41,0.958984375,tz,4096 -42,0.8277262180974478,ve,4096 -43,0.7971590909090909,in,4096 -44,0.5333556821991284,ae,4096 -45,0.7654067378800329,cv,4096 -46,0.5724137931034483,pl,4096 -47,0.7404299947561616,pa,4096 -48,0.5562700964630225,ec,4096 -49,0.630113876001687,il,4096 -50,0.521484375,be,4096 -51,0.5162068965517241,lu,4096 -52,0.587158203125,gb,4096 -53,0.76171875,ao,4096 -54,0.28451882845188287,sk,4096 -55,0.7089508002371073,do,4096 -56,0.5455259026687598,bo,4096 -57,0.5849609375,ie,4096 -58,0.570556640625,ch,4096 -59,0.5597798899449725,dk,4096 -60,0.5674967234600262,kr,4096 -61,0.5546875,it,4096 -62,0.5904392764857881,cr,8192 -63,0.568603515625,nl,8192 -64,0.6146220570012392,hu,8192 -65,0.62158203125,es,8192 -66,0.6419809177646524,tr,8192 -67,0.616943359375,de,8192 -68,0.5359447004608295,cn,8192 -69,0.6054421768707483,cz,8192 -70,0.8043217286914766,ro,8192 -71,0.588623046875,ar,8192 -72,0.5818399044205496,sg,8192 -73,0.5328767123287671,mt,8192 -74,0.608642578125,ca,8192 -75,0.697509765625,co,8192 -76,0.599609375,cl,8192 -77,0.7588571428571429,ph,8192 -78,0.5172932330827068,hr,8192 -79,0.55810546875,fr,8192 -80,0.3949416342412451,ru,8192 -81,0.59326171875,jp,8192 -82,0.4992548435171386,th,8192 -83,0.5159817351598174,gr,8192 -84,0.5455268389662028,fi,8192 -85,0.65673828125,pt,8192 -86,0.57373046875,us,8192 -87,0.6004169562195969,za,8192 -88,0.5615234375,uy,8192 -89,0.605702364394993,pe,8192 -90,0.9156756756756756,ng,8192 -91,0.654296875,br,8192 -92,0.710205078125,mx,8192 -93,0.5519125683060109,at,8192 -94,0.546875,py,8192 -95,0.754150390625,mz,8192 -96,0.571044921875,au,8192 -97,0.5319528739735808,nz,8192 -98,0.583984375,se,8192 -99,0.5993265993265994,eg,8192 -100,0.6693136698808848,id,8192 -101,0.6350257542310522,no,8192 -102,0.5823798627002288,ee,8192 -103,0.96142578125,tz,8192 -104,0.8254060324825986,ve,8192 -105,0.8022727272727272,in,8192 -106,0.5457593027153872,ae,8192 -107,0.7814297452752671,cv,8192 -108,0.5681697612732095,pl,8192 -109,0.7503932878867331,pa,8192 -110,0.5572347266881029,ec,8192 -111,0.630113876001687,il,8192 -112,0.50830078125,be,8192 -113,0.51,lu,8192 -114,0.585205078125,gb,8192 -115,0.793212890625,ao,8192 -116,0.28451882845188287,sk,8192 -117,0.7083580320094843,do,8192 -118,0.5451334379905809,bo,8192 -119,0.60595703125,ie,8192 -120,0.57275390625,ch,8192 -121,0.5632816408204102,dk,8192 -122,0.5705548274355614,kr,8192 -123,0.5517578125,it,8192 -124,0.5904392764857881,cr,16384 -125,0.57470703125,nl,16384 -126,0.6146220570012392,hu,16384 -127,0.62158203125,es,16384 -128,0.6419809177646524,tr,16384 -129,0.60498046875,de,16384 -130,0.5359447004608295,cn,16384 -131,0.6054421768707483,cz,16384 -132,0.8043217286914766,ro,16384 -133,0.58056640625,ar,16384 -134,0.5818399044205496,sg,16384 -135,0.5328767123287671,mt,16384 -136,0.60302734375,ca,16384 -137,0.69091796875,co,16384 -138,0.596435546875,cl,16384 -139,0.7588571428571429,ph,16384 -140,0.5172932330827068,hr,16384 -141,0.55859375,fr,16384 -142,0.3949416342412451,ru,16384 -143,0.6005859375,jp,16384 -144,0.4992548435171386,th,16384 -145,0.5159817351598174,gr,16384 -146,0.5455268389662028,fi,16384 -147,0.65966796875,pt,16384 -148,0.574462890625,us,16384 -149,0.6004169562195969,za,16384 -150,0.5673828125,uy,16384 -151,0.6053546592489569,pe,16384 -152,0.9156756756756756,ng,16384 -153,0.6630859375,br,16384 -154,0.720947265625,mx,16384 -155,0.5519125683060109,at,16384 -156,0.54296875,py,16384 -157,0.7626953125,mz,16384 -158,0.564208984375,au,16384 -159,0.5319528739735808,nz,16384 -160,0.577392578125,se,16384 -161,0.5993265993265994,eg,16384 -162,0.6693136698808848,id,16384 -163,0.6350257542310522,no,16384 -164,0.5823798627002288,ee,16384 -165,0.963134765625,tz,16384 -166,0.8254060324825986,ve,16384 -167,0.8002840909090909,in,16384 -168,0.5491116325846463,ae,16384 -169,0.7814297452752671,cv,16384 -170,0.5681697612732095,pl,16384 -171,0.7503932878867331,pa,16384 -172,0.5572347266881029,ec,16384 -173,0.630113876001687,il,16384 -174,0.50927734375,be,16384 -175,0.51,lu,16384 -176,0.588134765625,gb,16384 -177,0.7998046875,ao,16384 -178,0.28451882845188287,sk,16384 -179,0.7083580320094843,do,16384 -180,0.5451334379905809,bo,16384 -181,0.610107421875,ie,16384 -182,0.56884765625,ch,16384 -183,0.5632816408204102,dk,16384 -184,0.5705548274355614,kr,16384 -185,0.544921875,it,16384 +0,0.66064453125,pt,4096 +1,0.751220703125,br,4096 +2,0.73583984375,mz,4096 +3,0.7847165160230074,cv,4096 +4,0.77099609375,ao,4096 +5,0.66162109375,pt,8192 +6,0.762939453125,br,8192 +7,0.7568359375,mz,8192 +8,0.7978635990139687,cv,8192 +9,0.794677734375,ao,8192 +10,0.6669921875,pt,16384 +11,0.778076171875,br,16384 +12,0.770263671875,mz,16384 +13,0.7978635990139687,cv,16384 +14,0.79833984375,ao,16384 diff --git a/quarto/dialectid.qmd b/quarto/dialectid.qmd index 2db3341..5c2624d 100644 --- a/quarto/dialectid.qmd +++ b/quarto/dialectid.qmd @@ -86,45 +86,6 @@ fig = px.bar(df2.astype({'Training Size': str}), fig.show() ``` -```{python} -#| echo: false -#| title: Hindi (hi) -import pandas as pd -df = pd.read_csv('data/hi-recall.csv', index_col=0) -df2 = df.sort_values(by=['Training Size', 'Recall']) -fig = px.bar(df2.astype({'Training Size': str}), - x='Country', y='Recall', - barmode='overlay', - color='Training Size') -fig.show() -``` - -```{python} -#| echo: false -#| title: Indonesian (in) -import pandas as pd -df = pd.read_csv('data/in-recall.csv', index_col=0) -df2 = df.sort_values(by=['Training Size', 'Recall']) -fig = px.bar(df2.astype({'Training Size': str}), - x='Country', y='Recall', - barmode='overlay', - color='Training Size') -fig.show() -``` - -```{python} -#| echo: false -#| title: Italian (it) -import pandas as pd -df = pd.read_csv('data/it-recall.csv', index_col=0) -df2 = df.sort_values(by=['Training Size', 'Recall']) -fig = px.bar(df2.astype({'Training Size': str}), - x='Country', y='Recall', - barmode='overlay', - color='Training Size') -fig.show() -``` - ```{python} #| echo: false #| title: Dutch (nl) @@ -138,19 +99,6 @@ fig = px.bar(df2.astype({'Training Size': str}), fig.show() ``` -```{python} -#| echo: false -#| title: Polish (pl) -import pandas as pd -df = pd.read_csv('data/pl-recall.csv', index_col=0) -df2 = df.sort_values(by=['Training Size', 'Recall']) -fig = px.bar(df2.astype({'Training Size': str}), - x='Country', y='Recall', - barmode='overlay', - color='Training Size') -fig.show() -``` - ```{python} #| echo: false #| title: Portuguese (pt) @@ -177,19 +125,6 @@ fig = px.bar(df2.astype({'Training Size': str}), fig.show() ``` -```{python} -#| echo: false -#| title: Tagalog (tl) -import pandas as pd -df = pd.read_csv('data/tl-recall.csv', index_col=0) -df2 = df.sort_values(by=['Training Size', 'Recall']) -fig = px.bar(df2.astype({'Training Size': str}), - x='Country', y='Recall', - barmode='overlay', - color='Training Size') -fig.show() -``` - ```{python} #| echo: false #| title: Turkish (tr)