1916 lines
98 KiB
Plaintext
1916 lines
98 KiB
Plaintext
{
|
||
"cells": [
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 54,
|
||
"id": "f902472d",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"import lzma\n",
|
||
"import numpy as np\n",
|
||
"from gensim import downloader\n",
|
||
"from gensim.models import Word2Vec\n",
|
||
"import gensim.downloader\n",
|
||
"import pandas as pd\n",
|
||
"import csv\n",
|
||
"from sklearn import preprocessing\n",
|
||
"import vowpalwabbit"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 55,
|
||
"id": "2324a8dd",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"train_x = pd.read_csv('train/in.tsv', header=None, sep='\\t', quoting=csv.QUOTE_NONE, error_bad_lines=False)\n",
|
||
"train_y = pd.read_csv('train/expected.tsv', header=None, sep='\\t', quoting=csv.QUOTE_NONE, error_bad_lines=False)\n",
|
||
"dev_x = pd.read_csv('dev-0/in.tsv', header=None, sep='\\t', quoting=csv.QUOTE_NONE, error_bad_lines=False)\n",
|
||
"dev_y = pd.read_csv('dev-0/expected.tsv', header=None, sep='\\t', quoting=csv.QUOTE_NONE, error_bad_lines=False)\n",
|
||
"testa_x = pd.read_csv('test-A/in.tsv', header=None, sep='\\t',quoting=csv.QUOTE_NONE, error_bad_lines=False)\n",
|
||
"testb_x = pd.read_csv('test-B/in.tsv', header=None, sep='\\t',quoting=csv.QUOTE_NONE, error_bad_lines=False)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 56,
|
||
"id": "e4ba4b52",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style scoped>\n",
|
||
" .dataframe tbody tr th:only-of-type {\n",
|
||
" vertical-align: middle;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>0</th>\n",
|
||
" <th>1</th>\n",
|
||
" <th>2</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>2004.508197</td>\n",
|
||
" <td>20040705</td>\n",
|
||
" <td>Sudan claims it is disarming militias</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>2008.442623</td>\n",
|
||
" <td>20080611</td>\n",
|
||
" <td>Bluffer's guide to Euro 2008</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>2012.587432</td>\n",
|
||
" <td>20120803</td>\n",
|
||
" <td>Ennis tallies her highest first day total</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>2009.071233</td>\n",
|
||
" <td>20090127</td>\n",
|
||
" <td>Sri Lanka continues to battle Tamil Tigers</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>1997.345205</td>\n",
|
||
" <td>19970507</td>\n",
|
||
" <td>Talks today to avert new health service strike</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>2018.046448</td>\n",
|
||
" <td>20180118</td>\n",
|
||
" <td>Sunderland end interest in Jon Walters as inju...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6</th>\n",
|
||
" <td>2010.605479</td>\n",
|
||
" <td>20100810</td>\n",
|
||
" <td>Heatwave threatens Russian recovery</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>2001.800000</td>\n",
|
||
" <td>20011020</td>\n",
|
||
" <td>Maher's last wish realised as his body is retu...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>8</th>\n",
|
||
" <td>2004.778082</td>\n",
|
||
" <td>20041011</td>\n",
|
||
" <td>Two to appear in court over Dunsink protest</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9</th>\n",
|
||
" <td>2017.005479</td>\n",
|
||
" <td>20170103</td>\n",
|
||
" <td>Sinn Féin warns Stormont may collapse over 'ca...</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" 0 1 2\n",
|
||
"0 2004.508197 20040705 Sudan claims it is disarming militias\n",
|
||
"1 2008.442623 20080611 Bluffer's guide to Euro 2008\n",
|
||
"2 2012.587432 20120803 Ennis tallies her highest first day total\n",
|
||
"3 2009.071233 20090127 Sri Lanka continues to battle Tamil Tigers\n",
|
||
"4 1997.345205 19970507 Talks today to avert new health service strike\n",
|
||
"5 2018.046448 20180118 Sunderland end interest in Jon Walters as inju...\n",
|
||
"6 2010.605479 20100810 Heatwave threatens Russian recovery\n",
|
||
"7 2001.800000 20011020 Maher's last wish realised as his body is retu...\n",
|
||
"8 2004.778082 20041011 Two to appear in court over Dunsink protest\n",
|
||
"9 2017.005479 20170103 Sinn Féin warns Stormont may collapse over 'ca..."
|
||
]
|
||
},
|
||
"execution_count": 56,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_x[:10]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 57,
|
||
"id": "d4a64cb8",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style scoped>\n",
|
||
" .dataframe tbody tr th:only-of-type {\n",
|
||
" vertical-align: middle;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>0</th>\n",
|
||
" <th>1</th>\n",
|
||
" <th>2</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>2014.936986</td>\n",
|
||
" <td>20141209</td>\n",
|
||
" <td>President Higgins and Xi Jinping enjoy product...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>2009.186301</td>\n",
|
||
" <td>20090310</td>\n",
|
||
" <td>German trade surplus at seven-year low</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>2019.553425</td>\n",
|
||
" <td>20190722</td>\n",
|
||
" <td>Potatoes have 'huge image issue' among the youth</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>2000.554645</td>\n",
|
||
" <td>20000722</td>\n",
|
||
" <td>New home education guidelines favour school te...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>2019.641096</td>\n",
|
||
" <td>20190823</td>\n",
|
||
" <td>Mindhunter drags us back to the place where th...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>2001.158904</td>\n",
|
||
" <td>20010228</td>\n",
|
||
" <td>'Asgard' to escape from Kilmainham Gaol and ap...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6</th>\n",
|
||
" <td>2004.609290</td>\n",
|
||
" <td>20040811</td>\n",
|
||
" <td>Five dead after British bus crashes in Austria</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>2012.368852</td>\n",
|
||
" <td>20120515</td>\n",
|
||
" <td>Clane General Hospital expects to return to pr...</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>8</th>\n",
|
||
" <td>2008.060109</td>\n",
|
||
" <td>20080123</td>\n",
|
||
" <td>NI death cert plan 'won't bring closure'</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9</th>\n",
|
||
" <td>2012.791781</td>\n",
|
||
" <td>20121016</td>\n",
|
||
" <td>UK investigation into Icelandic bank fraud aba...</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" 0 1 2\n",
|
||
"0 2014.936986 20141209 President Higgins and Xi Jinping enjoy product...\n",
|
||
"1 2009.186301 20090310 German trade surplus at seven-year low\n",
|
||
"2 2019.553425 20190722 Potatoes have 'huge image issue' among the youth\n",
|
||
"3 2000.554645 20000722 New home education guidelines favour school te...\n",
|
||
"4 2019.641096 20190823 Mindhunter drags us back to the place where th...\n",
|
||
"5 2001.158904 20010228 'Asgard' to escape from Kilmainham Gaol and ap...\n",
|
||
"6 2004.609290 20040811 Five dead after British bus crashes in Austria\n",
|
||
"7 2012.368852 20120515 Clane General Hospital expects to return to pr...\n",
|
||
"8 2008.060109 20080123 NI death cert plan 'won't bring closure'\n",
|
||
"9 2012.791781 20121016 UK investigation into Icelandic bank fraud aba..."
|
||
]
|
||
},
|
||
"execution_count": 57,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"dev_x[:10]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 58,
|
||
"id": "1221baee",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style scoped>\n",
|
||
" .dataframe tbody tr th:only-of-type {\n",
|
||
" vertical-align: middle;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>0</th>\n",
|
||
" <th>1</th>\n",
|
||
" <th>2</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>2011.158904</td>\n",
|
||
" <td>20110228</td>\n",
|
||
" <td>Erratic Wales do it the hard way</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>2018.456284</td>\n",
|
||
" <td>20180617</td>\n",
|
||
" <td>Girls in my daughter's class are calling her fat</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>1999.742466</td>\n",
|
||
" <td>19990929</td>\n",
|
||
" <td>Russia 'not ready' for Y2K</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>2000.486339</td>\n",
|
||
" <td>20000627</td>\n",
|
||
" <td>Those who can't</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>1998.423497</td>\n",
|
||
" <td>19980605</td>\n",
|
||
" <td>Loach returns to Irish theme</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>2005.928767</td>\n",
|
||
" <td>20051206</td>\n",
|
||
" <td>Eta says bomb planted in Santander airport</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6</th>\n",
|
||
" <td>2002.467213</td>\n",
|
||
" <td>20020621</td>\n",
|
||
" <td>Inamoto going back to Japan</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>2015.252055</td>\n",
|
||
" <td>20150403</td>\n",
|
||
" <td>Neptune Regatta draws big Easter entry</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>8</th>\n",
|
||
" <td>2006.005464</td>\n",
|
||
" <td>20060103</td>\n",
|
||
" <td>Brasil One forges ahead</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9</th>\n",
|
||
" <td>2005.569863</td>\n",
|
||
" <td>20050728</td>\n",
|
||
" <td>IRA must hand over criminal assets - McDowell</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" 0 1 2\n",
|
||
"0 2011.158904 20110228 Erratic Wales do it the hard way\n",
|
||
"1 2018.456284 20180617 Girls in my daughter's class are calling her fat\n",
|
||
"2 1999.742466 19990929 Russia 'not ready' for Y2K\n",
|
||
"3 2000.486339 20000627 Those who can't\n",
|
||
"4 1998.423497 19980605 Loach returns to Irish theme\n",
|
||
"5 2005.928767 20051206 Eta says bomb planted in Santander airport\n",
|
||
"6 2002.467213 20020621 Inamoto going back to Japan\n",
|
||
"7 2015.252055 20150403 Neptune Regatta draws big Easter entry\n",
|
||
"8 2006.005464 20060103 Brasil One forges ahead\n",
|
||
"9 2005.569863 20050728 IRA must hand over criminal assets - McDowell"
|
||
]
|
||
},
|
||
"execution_count": 58,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"testa_x[:10]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 59,
|
||
"id": "58cb7b89",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style scoped>\n",
|
||
" .dataframe tbody tr th:only-of-type {\n",
|
||
" vertical-align: middle;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>0</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>sport</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>4</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>5</th>\n",
|
||
" <td>sport</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>6</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>7</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>8</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>9</th>\n",
|
||
" <td>news</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" 0\n",
|
||
"0 news\n",
|
||
"1 sport\n",
|
||
"2 news\n",
|
||
"3 news\n",
|
||
"4 news\n",
|
||
"5 sport\n",
|
||
"6 news\n",
|
||
"7 news\n",
|
||
"8 news\n",
|
||
"9 news"
|
||
]
|
||
},
|
||
"execution_count": 59,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_y[:10]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 60,
|
||
"id": "cfb113b6",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"train_x = train_x[2]\n",
|
||
"dev_x = dev_x[2]\n",
|
||
"testa_x = testa_x[2]\n",
|
||
"testb_x = testb_x[2]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 61,
|
||
"id": "046f00be",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"'Sudan claims it is disarming militias'"
|
||
]
|
||
},
|
||
"execution_count": 61,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_x[0]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 62,
|
||
"id": "9d36394d",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"0 Sudan claims it is disarming militias\n",
|
||
"1 Bluffer's guide to Euro 2008\n",
|
||
"2 Ennis tallies her highest first day total\n",
|
||
"3 Sri Lanka continues to battle Tamil Tigers\n",
|
||
"4 Talks today to avert new health service strike\n",
|
||
" ... \n",
|
||
"1186893 Scores of Taliban killed in clashes\n",
|
||
"1186894 Atoms for Peace\n",
|
||
"1186895 Pope begins biblical pilgrimage in Egypt\n",
|
||
"1186896 Aer Lingus suspends two more pilots\n",
|
||
"1186897 Church leaders appeal for restraint and calm\n",
|
||
"Name: 2, Length: 1186898, dtype: object"
|
||
]
|
||
},
|
||
"execution_count": 62,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_x"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 63,
|
||
"id": "58d6e666",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"array(['news', 'sport', 'opinion', 'business', 'culture', 'lifestyle',\n",
|
||
" 'removed'], dtype=object)"
|
||
]
|
||
},
|
||
"execution_count": 63,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_y[0].unique()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 64,
|
||
"id": "86d6f712",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"le = preprocessing.LabelEncoder()\n",
|
||
"le.fit(['news', 'sport', 'opinion', 'business', 'culture', 'lifestyle',\n",
|
||
" 'removed'])\n",
|
||
"train_y[0] = le.fit_transform(train_y[0])"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 65,
|
||
"id": "4491cae8",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/html": [
|
||
"<div>\n",
|
||
"<style scoped>\n",
|
||
" .dataframe tbody tr th:only-of-type {\n",
|
||
" vertical-align: middle;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe tbody tr th {\n",
|
||
" vertical-align: top;\n",
|
||
" }\n",
|
||
"\n",
|
||
" .dataframe thead th {\n",
|
||
" text-align: right;\n",
|
||
" }\n",
|
||
"</style>\n",
|
||
"<table border=\"1\" class=\"dataframe\">\n",
|
||
" <thead>\n",
|
||
" <tr style=\"text-align: right;\">\n",
|
||
" <th></th>\n",
|
||
" <th>0</th>\n",
|
||
" </tr>\n",
|
||
" </thead>\n",
|
||
" <tbody>\n",
|
||
" <tr>\n",
|
||
" <th>0</th>\n",
|
||
" <td>3</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>1</th>\n",
|
||
" <td>6</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>2</th>\n",
|
||
" <td>3</td>\n",
|
||
" </tr>\n",
|
||
" <tr>\n",
|
||
" <th>3</th>\n",
|
||
" <td>3</td>\n",
|
||
" </tr>\n",
|
||
" </tbody>\n",
|
||
"</table>\n",
|
||
"</div>"
|
||
],
|
||
"text/plain": [
|
||
" 0\n",
|
||
"0 3\n",
|
||
"1 6\n",
|
||
"2 3\n",
|
||
"3 3"
|
||
]
|
||
},
|
||
"execution_count": 65,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_y[:4]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 66,
|
||
"id": "6eccbc39",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"model = vowpalwabbit.Workspace(\"--oaa 20 --quiet\")"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 67,
|
||
"id": "e09e6a3f",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"train_data = ['{} | headline: {}'.format(y, x) for x,y in zip(train_x,train_y[0])]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 68,
|
||
"id": "f0e4b5fc",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"pandas.core.frame.DataFrame"
|
||
]
|
||
},
|
||
"execution_count": 68,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"type(train_y)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 69,
|
||
"id": "7662ca93",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"pandas.core.series.Series"
|
||
]
|
||
},
|
||
"execution_count": 69,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"type(train_x)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 70,
|
||
"id": "a1838cd6",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['3 | headline: Sudan claims it is disarming militias',\n",
|
||
" \"6 | headline: Bluffer's guide to Euro 2008\",\n",
|
||
" '3 | headline: Ennis tallies her highest first day total',\n",
|
||
" '3 | headline: Sri Lanka continues to battle Tamil Tigers',\n",
|
||
" '3 | headline: Talks today to avert new health service strike',\n",
|
||
" '6 | headline: Sunderland end interest in Jon Walters as injury strikes again',\n",
|
||
" '3 | headline: Heatwave threatens Russian recovery',\n",
|
||
" \"3 | headline: Maher's last wish realised as his body is returned to Limerick\",\n",
|
||
" '3 | headline: Two to appear in court over Dunsink protest',\n",
|
||
" \"3 | headline: Sinn Féin warns Stormont may collapse over 'cash for ash'\",\n",
|
||
" '3 | headline: Oral hearing into liquid gas pipeline to be held next month',\n",
|
||
" '3 | headline: Hopes rise for recovery in chip demand',\n",
|
||
" '4 | headline: WELFARE FRAUD',\n",
|
||
" \"3 | headline: Green Party's key promise up in the air as carbon target appears elusive\",\n",
|
||
" '6 | headline: It all unravels for Waterford',\n",
|
||
" '0 | headline: EU welcomes stability pact but warns of inflationary pressures',\n",
|
||
" \"4 | headline: Time to expose the charade of 'peaceful protest' over Irish Water\",\n",
|
||
" '1 | headline: An unholy hour',\n",
|
||
" '0 | headline: Industrial output and car sales rise',\n",
|
||
" '3 | headline: 101 held after raids on lap-dancing clubs',\n",
|
||
" '6 | headline: Robbie Williams centre-stage at Thomond Park',\n",
|
||
" '6 | headline: Rodriguez antics costly for Burka',\n",
|
||
" '4 | headline: Corruption and aid to Africa',\n",
|
||
" '3 | headline: Minister says he was surprised at licensing methods',\n",
|
||
" '4 | headline: The creeping arrogance of the coalition',\n",
|
||
" '0 | headline: EU ministers meet amidst signs of slowdown ending',\n",
|
||
" '3 | headline: Euro jumps within sight of record highs',\n",
|
||
" '3 | headline: Taoiseach predicts economy will improve this year',\n",
|
||
" '4 | headline: Peter Murtagh: Bright voice on darkest days for Irish in Britain',\n",
|
||
" '3 | headline: Gardai appeal over missing Galway student',\n",
|
||
" '3 | headline: Portugal sack coach Oliveira',\n",
|
||
" '3 | headline: National Broadband plan could hit €3bn; Varadkar tells Dáil',\n",
|
||
" '1 | headline: How Irish podcasting hit the mainstream',\n",
|
||
" '3 | headline: Danes fine spam e-mail firm €53;000',\n",
|
||
" '4 | headline: A bishop; a priest; and the air that they breathed',\n",
|
||
" '3 | headline: UN chief stresses human cost of climate change delay',\n",
|
||
" '3 | headline: Children of Palestinian refugees have a school to go to – for now',\n",
|
||
" '3 | headline: Two residents arrested at Irish Water protest in Cork',\n",
|
||
" '3 | headline: French security forces patrol Jewish schools ahead of cabinet meeting',\n",
|
||
" '2 | headline: Exert your consumer rights early and firms will notice',\n",
|
||
" '3 | headline: Powell to go ahead with talks despite protests from Israel',\n",
|
||
" '6 | headline: Kerrigan to put Leinster on track',\n",
|
||
" '3 | headline: Guinness hopes for Surge in French sales',\n",
|
||
" '2 | headline: Veteran Irish fashion designer Richard Lewis dies at 73',\n",
|
||
" '0 | headline: Tetrarch poised for €7.5m first phase at Millennium Park',\n",
|
||
" '6 | headline: All Blacks blow Brave Blossoms asunder',\n",
|
||
" '3 | headline: Late cancellation of some courses distresses students',\n",
|
||
" '6 | headline: Form points to a Limerick victory',\n",
|
||
" '3 | headline: Archbishop warns against complacency on child protection',\n",
|
||
" '3 | headline: Arson attack on clubhouse',\n",
|
||
" '4 | headline: Catholic Church and sex abuse',\n",
|
||
" '3 | headline: 25 more prisoners freed',\n",
|
||
" \"3 | headline: Murphy happy with Big Zeb's form\",\n",
|
||
" \"1 | headline: Browned off in Ballina: The West's Asleep\",\n",
|
||
" '3 | headline: Peter Fonda dies aged 79',\n",
|
||
" '0 | headline: Tusa bank opens three outlets',\n",
|
||
" '3 | headline: Garda wanted €30;000 to stop prosecution; court hears',\n",
|
||
" '4 | headline: Preparing for a fair budget',\n",
|
||
" \"6 | headline: Solskjaer's honeymoon comes to an end; D'Arcy on the French rugby crisis\",\n",
|
||
" '6 | headline: Six Ireland internationals named in Pro 12 team of the season',\n",
|
||
" '3 | headline: Pope visit to Ireland discounted',\n",
|
||
" '3 | headline: HSE cuts number of psychiatrists in Galway',\n",
|
||
" \"3 | headline: Justice group says speedier action by RUC could have saved Nelson's life\",\n",
|
||
" '3 | headline: Cutting the apron strings',\n",
|
||
" '3 | headline: Seeking Master Li',\n",
|
||
" '3 | headline: Call for counselling for jurors suffering stress',\n",
|
||
" '4 | headline: Cobh cathedral',\n",
|
||
" '3 | headline: Nobel Prize for Obama hailed by world leaders',\n",
|
||
" '6 | headline: Munich to host Grand Prix final',\n",
|
||
" '2 | headline: Opel gives Vectra confidence and comfort',\n",
|
||
" \"0 | headline: Stocktake: Emerging markets looking 'increasingly buyable'\",\n",
|
||
" '0 | headline: Johnston Press woes laid bare in company accounts',\n",
|
||
" '3 | headline: German nurse handed second life sentence for murder of 85 patients',\n",
|
||
" '0 | headline: Euro will open borders to credit but also to prospect of debt',\n",
|
||
" \"3 | headline: 'Almost certain' Sean Quinn family behind €10m asset-stripping of company; says judge\",\n",
|
||
" '3 | headline: Awards recognise community volunteers',\n",
|
||
" '0 | headline: IMF expects Irish economy to expand by 5% in 2016',\n",
|
||
" '3 | headline: School lifts suspension over photo',\n",
|
||
" '3 | headline: 18 killed in Afghanistan attacks',\n",
|
||
" '3 | headline: Dublin fairground fall kills woman',\n",
|
||
" '3 | headline: Retired RUC officers to probe cattle smuggling',\n",
|
||
" '3 | headline: Uncertainty remains over impeachment',\n",
|
||
" '6 | headline: Ballymore remains Cheltenham target for hotpot Samcro',\n",
|
||
" \"6 | headline: O'Gara shelves talk of retiring\",\n",
|
||
" '3 | headline: SF knew of IRA operations in 2004; Ahern claims',\n",
|
||
" '3 | headline: The lure of a good old browse',\n",
|
||
" '3 | headline: People trapped as flames leap high from huge Moscow tower',\n",
|
||
" \"4 | headline: TANAISTE'S AIR CORPS TRIP\",\n",
|
||
" '6 | headline: Barnes and Conlan welcome vote to include professionals',\n",
|
||
" '3 | headline: Initiative will help WW2 veterans revisit battlefields',\n",
|
||
" '3 | headline: Motive for north Belfast murder likely to be drugs',\n",
|
||
" '4 | headline: Luring tourists to Ireland',\n",
|
||
" '3 | headline: Gays call for war memorial',\n",
|
||
" '0 | headline: Standard Chartered set to end 10-year boom with 2013 drop in profit',\n",
|
||
" '2 | headline: Shooters Bar',\n",
|
||
" '3 | headline: Appeals fail to prevent deportation of Iraqis',\n",
|
||
" '6 | headline: Jennings happy with underdog status',\n",
|
||
" '4 | headline: Stephen Collins: Two main parties battle over Siteserv and banking inquiry',\n",
|
||
" '3 | headline: South Korea fires at North after loudspeaker attack',\n",
|
||
" \"3 | headline: McLaughlin accepts 'status quo'\",\n",
|
||
" '1 | headline: Ten trick-or-treating facts for impressive bonfire chats',\n",
|
||
" \"6 | headline: Liverpool cling on for Jurgen Klopp's first win\",\n",
|
||
" '6 | headline: All change as Graf takes pole position',\n",
|
||
" '3 | headline: Farmer sure Flynn sold CMI scheme',\n",
|
||
" '3 | headline: Quake survivor dies in hospital',\n",
|
||
" '6 | headline: Italy left with a tough job to advance',\n",
|
||
" '0 | headline: Trafford and Green argue over fairness of offer',\n",
|
||
" '3 | headline: McCain campaign accuses Obama of flip-flop on Iraq',\n",
|
||
" '3 | headline: Maskey settles RUC action',\n",
|
||
" '2 | headline: Riverdance pair plan to go underground',\n",
|
||
" '1 | headline: Coheed and Cambria are winning The Amory Wars',\n",
|
||
" \"1 | headline: Peaky Blinders: can Cillian Murphy and the gang still cut it? Here's our verdict\",\n",
|
||
" '1 | headline: Singing at its best in Puccini',\n",
|
||
" '6 | headline: Power of the mind key to curing a team with a stutter',\n",
|
||
" '3 | headline: US vote calls for Patten to be enforced',\n",
|
||
" '6 | headline: Carr hits nightmare own goal',\n",
|
||
" '0 | headline: BoSI sets up internal bad loans unit',\n",
|
||
" '3 | headline: Gas explosion demolishes Chinese takeaway in Derry',\n",
|
||
" '6 | headline: Recharging the batteries abroad',\n",
|
||
" '3 | headline: In Spallen we trust; with bursary award',\n",
|
||
" '1 | headline: The End We Start From review: motherhood in a new dystopia',\n",
|
||
" \"3 | headline: 'Mood music' to target radio's 'lost generation'\",\n",
|
||
" '3 | headline: Jury to hear claims of past abuse by Jackson',\n",
|
||
" \"3 | headline: O'Brien's father says tribunal engaged in 'witch-hunt'\",\n",
|
||
" \"1 | headline: 'Most people steal music - God knows I do'\",\n",
|
||
" '0 | headline: Penalty shoot-outs provide tactical lessons in the game of life',\n",
|
||
" '3 | headline: Judge calls for crackdown on people traffickers',\n",
|
||
" '6 | headline: Meath advance',\n",
|
||
" '4 | headline: CHRISTMAS DINNERS',\n",
|
||
" '4 | headline: D-day for Cyprus',\n",
|
||
" '6 | headline: Grant comes with mixed fortunes',\n",
|
||
" '6 | headline: Givens loses another established defender',\n",
|
||
" '4 | headline: New Orleans parties',\n",
|
||
" '6 | headline: Leinster carry on regardless to claim PRO12 title',\n",
|
||
" '4 | headline: Catholics must accept changing church may take longer than their lifetime',\n",
|
||
" '4 | headline: A malign influence from Britain',\n",
|
||
" '4 | headline: Local property tax and local councils',\n",
|
||
" '3 | headline: Fifteen AIG executives to return bonuses',\n",
|
||
" '3 | headline: Ill-feeling at start of health debate',\n",
|
||
" '3 | headline: UCD student attacked in US remains critically ill',\n",
|
||
" '3 | headline: Bill will require newly-weds to register marriage',\n",
|
||
" '6 | headline: Woods just better than the rest',\n",
|
||
" '3 | headline: British officials considered redrawing Border; 1984 papers show',\n",
|
||
" '3 | headline: Cork Con joined at top of AIL league',\n",
|
||
" '0 | headline: DCC to pay €19.3m for two new businesses',\n",
|
||
" \"3 | headline: Prince's private secretary to quit post over alleged differences of opinion\",\n",
|
||
" '0 | headline: Sort out finance before getting to work on home improvements',\n",
|
||
" '6 | headline: Leeds worried by rising wage bill',\n",
|
||
" '3 | headline: Group to challenge constituency revision',\n",
|
||
" '3 | headline: Decision later on conviction appeal',\n",
|
||
" '0 | headline: Survey ranks investment managers over five years',\n",
|
||
" '4 | headline: Plotting a pleasant course through village life on the ocean wave',\n",
|
||
" \"0 | headline: Stripe warns small firms most at risk from '€57bn' EU security rule\",\n",
|
||
" \"6 | headline: O'Neill travels with shadow squad\",\n",
|
||
" '6 | headline: Noel McGrath cherishes both the good and bad days with Tipperary',\n",
|
||
" '3 | headline: Man remanded on weapons charges',\n",
|
||
" '1 | headline: No fakers',\n",
|
||
" '6 | headline: Bertha survives brush with law',\n",
|
||
" '1 | headline: Drama te bruite',\n",
|
||
" '6 | headline: Ireland hit for six of the worst as Trapattoni comes under pressure',\n",
|
||
" '3 | headline: Japanese Minister bows to PM',\n",
|
||
" '3 | headline: British foot-and-mouth outbreak',\n",
|
||
" '4 | headline: Where will Ireland stand in an altered EU?',\n",
|
||
" '3 | headline: Mixed response to maths papers as concerns are raised over language',\n",
|
||
" '1 | headline: Jimi Hendrix',\n",
|
||
" '6 | headline: Games of tournament',\n",
|
||
" '3 | headline: Man arrested in Nelson murder inquiry',\n",
|
||
" '3 | headline: Get your filthy paws off my fur!',\n",
|
||
" '3 | headline: Helping hands',\n",
|
||
" \"3 | headline: 'No soldier should be charged;' say British veterans\",\n",
|
||
" '3 | headline: HSE warns of potential €881m funding crisis in 2018',\n",
|
||
" '3 | headline: Little artistic freedom in China beyond film festival red carpets',\n",
|
||
" \"3 | headline: Father questioned over sons' deaths after release from hospital\",\n",
|
||
" \"3 | headline: Murder trial told victim's body had been mutilated by animals\",\n",
|
||
" '3 | headline: Giant currach with a mission makes waves in Dingle',\n",
|
||
" '6 | headline: Rogue Angel could lead Mouse Morris to hat-trick of Grand Nationals',\n",
|
||
" \"6 | headline: Masters' class drives Cork\",\n",
|
||
" \"2 | headline: Video: All the news that's fit to sing\",\n",
|
||
" '0 | headline: Credit unions asked to pay €30 million into new stabilisiation fund',\n",
|
||
" \"6 | headline: Just the ticket for O'Connor\",\n",
|
||
" '3 | headline: Dallas nurse to leave Atlanta hospital free of Ebola virus',\n",
|
||
" '3 | headline: Supermarkets take out British goods',\n",
|
||
" '6 | headline: Cristiano Ronaldo recorded goading Atlético Madrid after defeat',\n",
|
||
" '3 | headline: Education grant to Cork club written off',\n",
|
||
" \"3 | headline: SDLP welcomes call to end GAA's Rule 21 ban\",\n",
|
||
" \"3 | headline: 'Trinity News' scoops top media awards\",\n",
|
||
" \"4 | headline: There is a way to bring Bewley's back to life\",\n",
|
||
" '4 | headline: Cost of YES programme',\n",
|
||
" '6 | headline: Vieira agrees to join Inter',\n",
|
||
" '3 | headline: Higgins leads congratulations',\n",
|
||
" '3 | headline: Munster doctors against move of Cork blood-test centre to Dublin',\n",
|
||
" '3 | headline: Bush to press Sharon over settlements',\n",
|
||
" '3 | headline: Pentagon eyes eastern Europe as location for new air bases',\n",
|
||
" '1 | headline: Sociodesic: A space for the three great loves',\n",
|
||
" '3 | headline: West refused leave to appeal',\n",
|
||
" \"6 | headline: Ex-FA chiefs say organisation full of 'elderly white men'\",\n",
|
||
" '0 | headline: Accuris wins $1.5m deal in NZ',\n",
|
||
" '3 | headline: Bruise weakens suicide theory; Spector trial told',\n",
|
||
" \"3 | headline: Where's That? - Lettermacaward 1366\",\n",
|
||
" '4 | headline: PICTURING DEATH',\n",
|
||
" '6 | headline: Cork boss Morgan drops his captain',\n",
|
||
" '1 | headline: A helping hand to make writers pitch perfect',\n",
|
||
" '0 | headline: Talks on world trade collapse',\n",
|
||
" '3 | headline: Concern at scale of plans for city centre Cork site',\n",
|
||
" '3 | headline: Mitchell and Davis vie for election slogan',\n",
|
||
" '6 | headline: Rory McIlroy returns to Sydney with fond memories of title win',\n",
|
||
" '3 | headline: We have the people to make a difference',\n",
|
||
" '3 | headline: Report discounts cancer risk from pylons',\n",
|
||
" '3 | headline: Government to raise €18.4bn in bonds in 2009',\n",
|
||
" '3 | headline: The poll day question',\n",
|
||
" '3 | headline: Hospitals face closure over shortage of fuel; medicines',\n",
|
||
" '4 | headline: THE BENEFITS OF BANKING',\n",
|
||
" '3 | headline: Leeds star Smith in bottle-throwing incident',\n",
|
||
" '3 | headline: Senator critical of Garda reforms Bill',\n",
|
||
" '4 | headline: Attitudes to the death penalty',\n",
|
||
" '0 | headline: ACC extends SSIA rate deadline',\n",
|
||
" '0 | headline: Looking for solutions from those who got us into mess in first place',\n",
|
||
" '3 | headline: Cousins had been shot and stabbed in feud',\n",
|
||
" '6 | headline: Galatasaray eye Berbatov',\n",
|
||
" \"3 | headline: INTO says league tables will have 'chilling' impact\",\n",
|
||
" \"3 | headline: Highlights of Barack Obama's Berlin speech\",\n",
|
||
" '3 | headline: Irish squad for Wales game unchanged',\n",
|
||
" '3 | headline: Breast-feeding bin tax protester released from jail',\n",
|
||
" '3 | headline: A question of respect',\n",
|
||
" '6 | headline: The days Norman would prefer to forget',\n",
|
||
" '6 | headline: UCD in full flight with six-try salvo',\n",
|
||
" '0 | headline: First start-up night proves a big draw',\n",
|
||
" '4 | headline: We have to fight bigoted republicans for soul of nationalism',\n",
|
||
" '3 | headline: Much-needed brakes',\n",
|
||
" \"6 | headline: 'Old man' the seer in Cragg's odyssey\",\n",
|
||
" '0 | headline: Director sues AIB over alleged reckless lending',\n",
|
||
" '4 | headline: What Bertie did next',\n",
|
||
" '3 | headline: VALUE FOR MONEY',\n",
|
||
" '0 | headline: DCC board defends stance on Supreme Court ruling',\n",
|
||
" \"3 | headline: Don't take Yes vote for granted; warns Eamon Ryan\",\n",
|
||
" '0 | headline: Jefferies tips further acquisitions at Smurfit Kappa',\n",
|
||
" '0 | headline: US current account deficit widens sharply in first quarter',\n",
|
||
" '6 | headline: Free Eagle set for a memorable Sha Tin swansong',\n",
|
||
" '3 | headline: Ghanaians force Liberian refugees back to sea after brief stay in port',\n",
|
||
" '0 | headline: Wind and waste to boost Treasury product portfolio',\n",
|
||
" \"3 | headline: Governments welcome 'positive' report on IRA\",\n",
|
||
" '3 | headline: The easiest and hardest subjects of Leaving Cert 2016',\n",
|
||
" '4 | headline: Going postal',\n",
|
||
" '3 | headline: Government backs new radiotherapy proposals',\n",
|
||
" '0 | headline: Broadcasters would accept fine system',\n",
|
||
" '3 | headline: Consumer sentiment declines',\n",
|
||
" '6 | headline: Six Nations: Ireland look primed for a day of days',\n",
|
||
" \"3 | headline: Berlusconi says new under-age sex claims are 'mud'\",\n",
|
||
" \"0 | headline: China's economic growth slowest since 1993 over trade war\",\n",
|
||
" '3 | headline: Teaching time in key subjects to be cut for wellbeing classes',\n",
|
||
" '3 | headline: US transport plane makes forced landing at Shannon',\n",
|
||
" \"1 | headline: Flaming hell; it's how long?\",\n",
|
||
" '6 | headline: Armstrong refuses to tempt fate',\n",
|
||
" '3 | headline: Beaumount patients wait for bug test results',\n",
|
||
" \"2 | headline: Irish aid workers on sex abuse: 'Head office is a long way away'\",\n",
|
||
" '3 | headline: Haemophiliac compensation deal agreed',\n",
|
||
" '0 | headline: Competition commissioner signs off on €48.25m Centocor grant',\n",
|
||
" '3 | headline: Syrian security forces kill man as protests continue',\n",
|
||
" \"3 | headline: People with mental health issues 'waiting 10 years for diagnosis'\",\n",
|
||
" '3 | headline: Award for 407 people who were 100 last year from President',\n",
|
||
" '3 | headline: McManus gets permission to build lake on grounds of Limerick mansion',\n",
|
||
" '0 | headline: Bush presents $2;900bn budget',\n",
|
||
" '3 | headline: Battle for S Korean democracy pits Bulldozer against Minerva',\n",
|
||
" '1 | headline: Need For Speed: Hot Pursuit',\n",
|
||
" \"6 | headline: There's still a glimmer of hope for us\",\n",
|
||
" '6 | headline: Safin sees the grass is getting greener',\n",
|
||
" '3 | headline: Warning on bugs becoming resistant to drugs',\n",
|
||
" '2 | headline: C4 comes to market',\n",
|
||
" '3 | headline: We are born to smile; and the practice could save our lives',\n",
|
||
" '3 | headline: Court ultimatum in Shelbourne debt case',\n",
|
||
" \"3 | headline: Badly behaved children don't deserve a place at the cafe table\",\n",
|
||
" '3 | headline: Giles back on home turf to take the honours',\n",
|
||
" '3 | headline: Asylum deal sought at EU meeting in Dublin',\n",
|
||
" '6 | headline: Bealin disagrees on burnout issue',\n",
|
||
" '3 | headline: Carberry to ride National favourite',\n",
|
||
" '3 | headline: Dangers of entering pact stressed by delegates',\n",
|
||
" \"3 | headline: EU's peace programme begins to yield dividends\",\n",
|
||
" \"4 | headline: Ordination Of Sinead O'Connor\",\n",
|
||
" '6 | headline: A Day in the Life of Ian Ashbee',\n",
|
||
" '4 | headline: BIKE SAFETY',\n",
|
||
" '6 | headline: Glentoran face an uphill battle',\n",
|
||
" \"0 | headline: Who's in charge here?\",\n",
|
||
" \"2 | headline: Savills tunes up for annual Dublin's/Cork's Got Talent fundraiser\",\n",
|
||
" '3 | headline: McPherson takes on World Cup',\n",
|
||
" '0 | headline: BA air link resumes',\n",
|
||
" \"3 | headline: Women feel need for abortion 'cover stories' for work; survey author says\",\n",
|
||
" '3 | headline: Law briefs',\n",
|
||
" \"3 | headline: Murder accused wanted to take dead man's bank card; trial told\",\n",
|
||
" '3 | headline: South American glaciers melting faster now than for 350 years',\n",
|
||
" '3 | headline: Garda enforcement behind fall in number killed on roads',\n",
|
||
" '0 | headline: Option Wireless Irish division posts pretax loss of €15.6m',\n",
|
||
" '3 | headline: Civil servant union backs nurses',\n",
|
||
" '6 | headline: Sindelar turns his season around',\n",
|
||
" '6 | headline: Dublin acquisition of Spawell expected by early March',\n",
|
||
" '6 | headline: Kerry and Fitzmaurice looking to maintain momentum',\n",
|
||
" '3 | headline: £700;000 plan to counter crime',\n",
|
||
" '4 | headline: Irish aid and corruption',\n",
|
||
" '3 | headline: £80m from EU to fund separate scheme',\n",
|
||
" '3 | headline: Six questioned over Antrim assault on man',\n",
|
||
" '3 | headline: Woman killed in Westmeath crash',\n",
|
||
" '4 | headline: Practising what you preach',\n",
|
||
" '3 | headline: French unemployment at 9.9% in September',\n",
|
||
" \"1 | headline: Julia's Eyes\",\n",
|
||
" '0 | headline: Aughinish MD to meet ESB on rise',\n",
|
||
" '4 | headline: Marine Co-operation',\n",
|
||
" '6 | headline: Test for Hassett',\n",
|
||
" \"3 | headline: Communication with lenders 'vital'\",\n",
|
||
" \"6 | headline: If proven Mourinho can't manage the United job; then who can?\",\n",
|
||
" '6 | headline: Van Gaal to speak to board before deciding Old Trafford future',\n",
|
||
" \"3 | headline: Keith Byrne's family welcome his release from custody in US\",\n",
|
||
" '3 | headline: Japanese emperor Akihito abdicates to end 30-year reign',\n",
|
||
" '3 | headline: Postal worker kills six then shoots himself',\n",
|
||
" '3 | headline: Intoxicating Liquor Act brings tougher penalties from today',\n",
|
||
" '3 | headline: Europe is at a crossroads: will we push forward a united Europe of peace and freedom?',\n",
|
||
" '3 | headline: Joyful homecomings aplenty at Dublin Airport',\n",
|
||
" '4 | headline: Home truths about Home Rule',\n",
|
||
" '3 | headline: Clegg more surprised than most at new popularity',\n",
|
||
" \"3 | headline: Irish press regulation model may be Leveson's first port of call\",\n",
|
||
" '3 | headline: Denmark records first case of bird flu',\n",
|
||
" \"2 | headline: 'Even unwashed and medicated up to my eyes; Martin makes me feel beautiful'\",\n",
|
||
" '6 | headline: Gilzean makes decisive move',\n",
|
||
" '0 | headline: Rabodirect and KBC Bank to cut deposit rates further',\n",
|
||
" '3 | headline: Teacher unions under pressure within schools to call off strike',\n",
|
||
" '3 | headline: FF transport plan includes regional Luas lines and bus-trams',\n",
|
||
" '4 | headline: CHINA AND TAIWAN',\n",
|
||
" '1 | headline: Eight soloists of the future acquit themselves well',\n",
|
||
" '0 | headline: IL&P to get €2.7 billion injection',\n",
|
||
" '3 | headline: Fire safety works yet to be carried out on 19 buildings at risk',\n",
|
||
" '6 | headline: Torres finally basking in success',\n",
|
||
" \"2 | headline: Russborough's secret garden\",\n",
|
||
" '6 | headline: UUJ concede McKenna Cup clash against Cavan',\n",
|
||
" '3 | headline: Woman loses case after claim Lidl cashier called her a liar',\n",
|
||
" '2 | headline: Travel Gear: Multi-pocket weekender',\n",
|
||
" '6 | headline: Todt and Ecclestone reject plea to cancel Bahrain Grand Prix',\n",
|
||
" '2 | headline: Planning',\n",
|
||
" \"6 | headline: New grounds for optimism for GAA's future in Cork\",\n",
|
||
" \"3 | headline: Brothers awarded their foster parents' farm\",\n",
|
||
" '3 | headline: Turbulence on the teachers front',\n",
|
||
" \"6 | headline: Last year's defeat to whip up the champions\",\n",
|
||
" '3 | headline: New EU energy plan focuses on more connections between States; renewables and tougher negotiations with suppliers',\n",
|
||
" '3 | headline: Food poverty hindering literacy',\n",
|
||
" '4 | headline: The Northern Iron',\n",
|
||
" '1 | headline: Picture of elegance',\n",
|
||
" '3 | headline: The Memory of Birds in Time of Revolution; Breyten Breytenbach; Faber; £9.99',\n",
|
||
" '3 | headline: DUP calls for the arrest of leading Sinn Fein figures',\n",
|
||
" '3 | headline: Voyage to the bottom of the sea',\n",
|
||
" '1 | headline: Album review: Noel Langley – Edentide',\n",
|
||
" '0 | headline: Bonderman and GPA are old pals',\n",
|
||
" \"6 | headline: Mize's memorable major win\",\n",
|
||
" '3 | headline: Spanish suspect sharp practice in $500m ocean trove that ended up in Florida',\n",
|
||
" '3 | headline: So much work and such long hours - but I love it',\n",
|
||
" '6 | headline: Title race goes to the wire',\n",
|
||
" \"1 | headline: 'Our first mistake was to trust them . . .We had no idea'\",\n",
|
||
" '6 | headline: Celtic four adrift after Hearts defeat',\n",
|
||
" '6 | headline: Jermyn try is the difference for Munster',\n",
|
||
" '3 | headline: Minister expects borrowing to increase',\n",
|
||
" '2 | headline: Spring clean on North Circular',\n",
|
||
" '4 | headline: Opening shots of the Civil War',\n",
|
||
" '1 | headline: Into the groove of a rhythm king',\n",
|
||
" \"3 | headline: McGinley had 'no input' into letter\",\n",
|
||
" '3 | headline: Constitution should protect rights of children; report says',\n",
|
||
" '3 | headline: Lab technician burned by acid',\n",
|
||
" '3 | headline: BOE votes 7-2 for steady rates in March',\n",
|
||
" '3 | headline: European banks to get unlimited dollar liquidity',\n",
|
||
" \"6 | headline: Drogheda fail in O'Brien appeal\",\n",
|
||
" '2 | headline: Peach and brown butter tart',\n",
|
||
" '3 | headline: Strike grips Belgium as EU leaders meet',\n",
|
||
" '6 | headline: Europe rescue bleak position',\n",
|
||
" '0 | headline: Starbucks paid no tax in UK',\n",
|
||
" '3 | headline: Iran rejects UN-drafted nuclear plan',\n",
|
||
" '3 | headline: Shopkeeper ready to make another stand over Castlebar RTC',\n",
|
||
" '0 | headline: Tech stocks break all the rules',\n",
|
||
" '4 | headline: Arts funding',\n",
|
||
" '6 | headline: We must go for jugular and replicate Paris',\n",
|
||
" '2 | headline: New at the show: AUDI A4',\n",
|
||
" '0 | headline: Key prices up; despite fall in inflation',\n",
|
||
" '3 | headline: Bruton praises role of King Hussein in defusing political crisis over Hebron',\n",
|
||
" '0 | headline: Salvation at hand for take-away fiends',\n",
|
||
" '3 | headline: Reading the media',\n",
|
||
" '3 | headline: Paris suspect had papers on German nuclear research centre',\n",
|
||
" '3 | headline: Hamilton passes the buck',\n",
|
||
" '3 | headline: Gardaí investigate serious assault on soldier in Youghal',\n",
|
||
" '3 | headline: Long distance lines',\n",
|
||
" '6 | headline: Leinster remain on track',\n",
|
||
" '3 | headline: French unions strike over pensions',\n",
|
||
" '6 | headline: Messi bags a brace as 10-man Valencia make Barca sweat',\n",
|
||
" '6 | headline: Giving Celtic back to the supporters',\n",
|
||
" '3 | headline: At least 11 illegal immigrants drown off Italy',\n",
|
||
" '3 | headline: 53 people suggested by Dublin have North public posts',\n",
|
||
" '4 | headline: Will Tubridy inject Botox into old dame of Montrose?',\n",
|
||
" '1 | headline: Canny Boy',\n",
|
||
" '1 | headline: Fear; Bean nó Idir Eatarthu',\n",
|
||
" '2 | headline: Moore Street retail property makes £370;000',\n",
|
||
" '3 | headline: Israeli-Arab teenagers arrested over bombing',\n",
|
||
" '3 | headline: Walsh guides Chelsea home',\n",
|
||
" '3 | headline: 1690 bomb found in river',\n",
|
||
" \"3 | headline: Leixlip shooting: 'It was only when you see the Garda cars coming that you realised what happened'\",\n",
|
||
" '3 | headline: Olmert offers talks if soldier is released',\n",
|
||
" '3 | headline: Funeral takes place of pensioner who was beaten to death',\n",
|
||
" '2 | headline: A tale of tent cities',\n",
|
||
" '6 | headline: Rowing Ireland announce new Coastal Championships',\n",
|
||
" '3 | headline: First results of university Seanad election count expected today',\n",
|
||
" '0 | headline: Insurance increases force firms to ditch cover or go it alone',\n",
|
||
" '0 | headline: John Monks',\n",
|
||
" \"3 | headline: Aid workers seized in Kenya 'freed'\",\n",
|
||
" '3 | headline: EU leaders to push for global fiscal regulation',\n",
|
||
" '6 | headline: Graeme McDowell says mentally he needs another long break',\n",
|
||
" \"4 | headline: Fintan O'Toole: Women die while outrage after outrage fails to shift attitudes\",\n",
|
||
" '0 | headline: Musgrave gets the scent for Java Republic coffee company',\n",
|
||
" '3 | headline: #120;000 cash recovered in Cork and Kerry',\n",
|
||
" '3 | headline: Too few night staff at care home with flu deaths; says Hiqa',\n",
|
||
" '0 | headline: ACC secures judgments for €2.3m and €2.55m',\n",
|
||
" '3 | headline: The Copycats',\n",
|
||
" '3 | headline: Funeral tributes for Bishop Thomas Flynn',\n",
|
||
" \"3 | headline: Development plan calls for less 'city-led' approach\",\n",
|
||
" '3 | headline: Wordsworth was a spy for British; professor claims',\n",
|
||
" '3 | headline: No respite for troubled Foxconn after fresh suicide bid',\n",
|
||
" '3 | headline: Guanabara raises EcoSecurities bid',\n",
|
||
" '3 | headline: Some thoughts on judgment writing',\n",
|
||
" '3 | headline: Man charged over west Dublin shooting which left baby wounded',\n",
|
||
" '3 | headline: Expert says retired garda typed documents alleging corruption',\n",
|
||
" '1 | headline: A pump-action blockbuster only the stage could allow',\n",
|
||
" \"6 | headline: Proven Darren Clarke the perfect fit for Ryder Cup captain's role\",\n",
|
||
" '3 | headline: Revenue seizes 10;000 contraband cigarettes at Dublin Airport',\n",
|
||
" '3 | headline: Role of cardiac death donors may reduce kidney wait list',\n",
|
||
" '1 | headline: Heritage hot spots History; nature; art; environment',\n",
|
||
" '3 | headline: Snoop Dogg to play Glastonbury',\n",
|
||
" '3 | headline: County council inquiry details not to be disclosed',\n",
|
||
" '6 | headline: Pride the watchword as players look ahead',\n",
|
||
" '6 | headline: Scotland and Wales name their Six Nations squads',\n",
|
||
" '3 | headline: Injured climber rescued after mountain accident',\n",
|
||
" \"6 | headline: It's up to you New York; New York - isn't it?\",\n",
|
||
" '2 | headline: One of the last gentlemen press photographers in Ireland',\n",
|
||
" '6 | headline: Report calls for salary cap',\n",
|
||
" '2 | headline: Croí highlights pulse and stroke link',\n",
|
||
" \"6 | headline: Michael Watt bows out as one of Ireland's most successful hockey players\",\n",
|
||
" \"0 | headline: Patrick's Day blitz on shopping channel\",\n",
|
||
" '0 | headline: Easyjet founder plans to list hotel chain on stock market',\n",
|
||
" \"3 | headline: SF will do 'everything' for peace - McLaughlin\",\n",
|
||
" '6 | headline: Early gains propel Nemo',\n",
|
||
" '0 | headline: German business sentiment climbs to its highest point in 17 months',\n",
|
||
" '2 | headline: Spacious on the inside in Glasthule for €345;000',\n",
|
||
" '0 | headline: ESB not ruling out closing two peat-burning plants',\n",
|
||
" '1 | headline: British soldier scandalised by 1918 Fermoy',\n",
|
||
" '3 | headline: Man held over Bangor machete murder',\n",
|
||
" '3 | headline: Opposition wary of geeks bearing gifts',\n",
|
||
" '3 | headline: Musharraf set for victory in Pakistan referendum',\n",
|
||
" '6 | headline: Tour veteran to lead German team in Rás',\n",
|
||
" '6 | headline: McKenzie answers the call for Harlequins',\n",
|
||
" '1 | headline: The chasm between Graham Norton and the Late Late Show',\n",
|
||
" '4 | headline: Dynamite divorce Bill scares politicians',\n",
|
||
" \"3 | headline: US intelligence chief James Clapper resigns after Trump's election\",\n",
|
||
" '3 | headline: Medal Winners',\n",
|
||
" '3 | headline: Man to appear in court over double stabbing incident',\n",
|
||
" '3 | headline: Avoca River pledge',\n",
|
||
" '1 | headline: OFF HIS ROCKER',\n",
|
||
" \"0 | headline: Poland 'facing labour shortage' for infrastructure development\",\n",
|
||
" '3 | headline: Workers threaten strike over CIE break-up',\n",
|
||
" \"6 | headline: Ulster's cup double\",\n",
|
||
" \"0 | headline: 'High level of concern' amongst Republicans about proposed steel tariffs\",\n",
|
||
" '3 | headline: Financial union warns of job cuts',\n",
|
||
" '4 | headline: No thank you for the music',\n",
|
||
" '4 | headline: Christianity and Islam',\n",
|
||
" '4 | headline: Rugby World Cup defeat',\n",
|
||
" \"6 | headline: 'We've been beating ourselves'\",\n",
|
||
" '4 | headline: Crime And Punishment',\n",
|
||
" '3 | headline: Family secrets uncovered',\n",
|
||
" '4 | headline: Irish citizenship law',\n",
|
||
" '3 | headline: Unionists return to Stormont to protest abortion law changes',\n",
|
||
" '3 | headline: Armagh to play Louth in GOAL match',\n",
|
||
" '0 | headline: Brent crude slips below $111',\n",
|
||
" '0 | headline: Thousands of Dunnes Stores staff go on strike',\n",
|
||
" '3 | headline: Up to 60;000 keep it country for 25th anniversary of Tullamore Show',\n",
|
||
" '3 | headline: Former leading judge dies',\n",
|
||
" '3 | headline: Vodafone to end England cricket deal',\n",
|
||
" '3 | headline: Man with alleged links to terrorism loses deportation case',\n",
|
||
" '5 | headline: Border - official trailer',\n",
|
||
" '3 | headline: Gillane is bound to keep the peace for attack on Garda car',\n",
|
||
" '4 | headline: Magdalen graveyard',\n",
|
||
" '6 | headline: Arsenal crazy to appoint me; says Wenger',\n",
|
||
" '6 | headline: Death Duty steps up to the highest level at Naas',\n",
|
||
" '3 | headline: Southerners join the £40m gold rush as UK lottery fever hots up',\n",
|
||
" '3 | headline: Two men and a woman arrested after drugs worth €1.6m seized',\n",
|
||
" '6 | headline: Landis digs in for long battle',\n",
|
||
" '0 | headline: New look Swan Centre in Rathmines expands its retail offering',\n",
|
||
" '6 | headline: Muller has chance to survey options',\n",
|
||
" \"4 | headline: Where is Ireland's Ancient East?\",\n",
|
||
" '4 | headline: A time to defend the reading of Ecclesiastes at funerals',\n",
|
||
" \"3 | headline: It's nothing personal . . .\",\n",
|
||
" '3 | headline: Aer Lingus passengers face delays',\n",
|
||
" '3 | headline: Ward claims junior title in Armenia',\n",
|
||
" '0 | headline: Mixed-use investment in Sandymount',\n",
|
||
" '3 | headline: Man in court over Dublin hatchet attack',\n",
|
||
" '3 | headline: Rural water dispute leaves a bitter taste',\n",
|
||
" '3 | headline: Budget Travel: the work; rest and play tourists',\n",
|
||
" \"3 | headline: 'The end of the story of my daughter; my wife': the victims of the Sri Lanka attacks\",\n",
|
||
" \"3 | headline: O'Callaghan may have to testify in ex IRA man's case\",\n",
|
||
" \"0 | headline: Mortgage arrears deterioration 'damning indictment' of banks and regulator; conference told\",\n",
|
||
" '3 | headline: THORP drops air emissions rise plan',\n",
|
||
" '3 | headline: Taking the high road out of Mexico',\n",
|
||
" '3 | headline: Rugby player acquitted',\n",
|
||
" '6 | headline: An Post Rás: Italian team bounces back after expulsion',\n",
|
||
" \"3 | headline: Syria 'grants uprising amnesty'\",\n",
|
||
" '4 | headline: Nuclear reductions',\n",
|
||
" '3 | headline: National broadcaster pays tribute to Alan McQuillan',\n",
|
||
" '3 | headline: Five charged with sexual assault on girl',\n",
|
||
" '6 | headline: Newslines: McIlroy calls up Griffin',\n",
|
||
" '3 | headline: US strike in Pakistan kills up to 20',\n",
|
||
" '4 | headline: Time to buy Irish?',\n",
|
||
" '0 | headline: Three bank investments to yield over 8%',\n",
|
||
" '3 | headline: The struggle to rescue Islam from its ardent zealots',\n",
|
||
" '6 | headline: Parting of the ways proved inevitable Newcastle manager',\n",
|
||
" '3 | headline: Cubans vindicated by US policy change; says Gerry Adams',\n",
|
||
" '0 | headline: AIB to reveal details of next phase of restructuring today',\n",
|
||
" \"6 | headline: Finn Lynch's Rio hopes may be hampered by fiscal restraints\",\n",
|
||
" '6 | headline: Adebayor turns the game for Arsenal',\n",
|
||
" '1 | headline: Festival Fit: follow the laughter lines to Corofin and Tedfest',\n",
|
||
" '3 | headline: Attempt to amend equality Bill fails',\n",
|
||
" '0 | headline: Telecoms and banks send FTSE 100 down',\n",
|
||
" '3 | headline: Two die in Clare; Tyrone collisions',\n",
|
||
" '3 | headline: Government fears legal challenges after repeal of Eighth Amendment',\n",
|
||
" '4 | headline: Shearing of hedges',\n",
|
||
" '0 | headline: Xelector sheds more jobs but still confident',\n",
|
||
" '4 | headline: The dangers of Brexit',\n",
|
||
" '6 | headline: Caldwell keeps Lawrie in his sights',\n",
|
||
" '0 | headline: Company announces plans for secure Net payment system',\n",
|
||
" '2 | headline: Widows of war',\n",
|
||
" '3 | headline: Driver killed as his truck leaves road in Co Offaly',\n",
|
||
" '3 | headline: Hauliers to meet Minister as motorists face fuel price hike',\n",
|
||
" '3 | headline: Subpoena of US ambassador to EU focus of Democrat efforts',\n",
|
||
" '0 | headline: Credit growth slows marginally',\n",
|
||
" '6 | headline: Hard-working Copenhagen thwart Barcelona',\n",
|
||
" '3 | headline: Woman arrested over drug seizure',\n",
|
||
" \"3 | headline: Legionnaires' disease: what causes it\",\n",
|
||
" '3 | headline: Cannabis worth €200;000 seized',\n",
|
||
" '3 | headline: Tourists fall victim to crime almost every day',\n",
|
||
" '0 | headline: A checklist will save you from getting ticked off on holiday',\n",
|
||
" '3 | headline: £13.30 stolen from phone; court told',\n",
|
||
" '6 | headline: Looking South in Straffan',\n",
|
||
" '6 | headline: Gambling Girl capable of big run in €70;000 feature',\n",
|
||
" '3 | headline: Hillsborough relatives end case',\n",
|
||
" '6 | headline: England look to be on the fast track',\n",
|
||
" '6 | headline: FAI appointee Noel Mooney denies role in pivotal Hall report',\n",
|
||
" '0 | headline: Exchequer surplus to approach €500m',\n",
|
||
" \"6 | headline: High times for O'Brien as Chaparral edges it\",\n",
|
||
" \"3 | headline: Italy's centre-left closes gap as new leader shows his mettle\",\n",
|
||
" '3 | headline: Fire crews winning battle to quench oil blaze',\n",
|
||
" '3 | headline: Prince William and his fiancee name the day for a spring wedding',\n",
|
||
" \"3 | headline: Garda reform to focus on 'a few key areas'\",\n",
|
||
" '3 | headline: English soccer fan faces trial',\n",
|
||
" '0 | headline: C&C proves an exception during quiet session',\n",
|
||
" '3 | headline: UN condemns Bahrain verdicts',\n",
|
||
" '2 | headline: Best poetry around',\n",
|
||
" '3 | headline: Madrid; Rabat in brief talks on tense relations',\n",
|
||
" '3 | headline: Humanitarian crisis looms as first snow falls',\n",
|
||
" '3 | headline: Amazon unveils new Kindle',\n",
|
||
" '6 | headline: Senna losing patience with United',\n",
|
||
" \"3 | headline: 'Smart' cards may be used to prevent electoral fraud\",\n",
|
||
" '3 | headline: Edwards says he would consider offer from Obama',\n",
|
||
" '0 | headline: Alphyra merger talks with ATM firm continue',\n",
|
||
" '6 | headline: Wachman holds off on Again decision',\n",
|
||
" \"3 | headline: Why did Google bet $3.2bn on the 'internet of things'?\",\n",
|
||
" '6 | headline: England opt for inexperience to face Wales',\n",
|
||
" \"0 | headline: RBS 'rights issue' suit planned\",\n",
|
||
" '1 | headline: Costume Drama',\n",
|
||
" '3 | headline: Domestic growth accelerates in Q3',\n",
|
||
" '0 | headline: Merkel and Sarkozy agree to move on rate of corporate tax',\n",
|
||
" '0 | headline: More tech sector profit warnings',\n",
|
||
" '3 | headline: Second resignation over Trident',\n",
|
||
" '6 | headline: German stations drop coverage',\n",
|
||
" '3 | headline: More than style on parade as judged by some tetchy repartee',\n",
|
||
" '6 | headline: Republic in second group of seeds',\n",
|
||
" '3 | headline: Pratt appointed chairman of Bank of Scotland Ireland',\n",
|
||
" '3 | headline: Noisy organ-player told to pipe down',\n",
|
||
" '3 | headline: Gilmore defends nurse jobs scheme',\n",
|
||
" '6 | headline: Pioneer plots for Croke Park',\n",
|
||
" '3 | headline: Dublin charities spearhead drive for more volunteers',\n",
|
||
" \"6 | headline: Justin Rose aiming to emulate Curtis Strange's back-to-back US Open success\",\n",
|
||
" '3 | headline: FG assistant press officer',\n",
|
||
" '6 | headline: Hamilton names squad',\n",
|
||
" '3 | headline: Limited training fuelling jobs crisis; says Shortall',\n",
|
||
" '0 | headline: Outlook grim but a cut in stamp duty will help',\n",
|
||
" '6 | headline: Hasselbaink brace seals it for Boro',\n",
|
||
" '3 | headline: Ambulance drivers hurt in Dublin assault',\n",
|
||
" '6 | headline: Even gods have their dark days',\n",
|
||
" '3 | headline: Mother of all sport horses',\n",
|
||
" '3 | headline: Mild but breezy conditions forecast for most parades',\n",
|
||
" '3 | headline: German woman (40) accused of killing nine of her babies',\n",
|
||
" \"1 | headline: My friend said: 'Heroin will get rid of the pain.' And it did\",\n",
|
||
" '0 | headline: Cliff Taylor: Government will be lucky to pass one Budget - never mind five',\n",
|
||
" '6 | headline: Mark English eases heat at European Indoors',\n",
|
||
" '3 | headline: FF and PD backers hoard land; says leader of Greens',\n",
|
||
" \"3 | headline: Single mothers 'most socially isolated'\",\n",
|
||
" '3 | headline: The wandering womb',\n",
|
||
" '0 | headline: CRH part-owned firm in Polish lime plant deal',\n",
|
||
" '3 | headline: German parliament elects Merkel to fourth term as chancellor',\n",
|
||
" '3 | headline: Call for Galway bridge to go ahead',\n",
|
||
" '2 | headline: These glorious autumn days are perfect for running',\n",
|
||
" '3 | headline: Peace deal opponents predict most MPs will desert Trimble',\n",
|
||
" '0 | headline: Quinn denies knowledge of steps taken to move assets',\n",
|
||
" \"3 | headline: Some representatives' activities have tainted politics; says O'Donoghue\",\n",
|
||
" '6 | headline: Defending champion Pat Murray bows out of South of Ireland championship',\n",
|
||
" '3 | headline: Victims haunted by childhood experience',\n",
|
||
" '2 | headline: Extension to Pearse Street hotel appealed',\n",
|
||
" '4 | headline: Standing up for geekiness',\n",
|
||
" '3 | headline: Ibrahim Halawa: Kenny says will raise case again with al-Sisi',\n",
|
||
" '3 | headline: Deal agreed on pay restoration for health and social services staff',\n",
|
||
" '6 | headline: Queeney shines in Donnycarney',\n",
|
||
" '6 | headline: Dempsey holds all the aces at Kirkistown',\n",
|
||
" \"3 | headline: Harris criticises 'over-hyped' criticism of Varadkar wind farm call\",\n",
|
||
" '0 | headline: Hanging up: How I consciously uncoupled from my smartphone',\n",
|
||
" '3 | headline: Basque group wins EU rights prize',\n",
|
||
" \"6 | headline: Bad boys; bad boys: Citings disrupt England's Test plans\",\n",
|
||
" '6 | headline: Kilrush keeps on growing',\n",
|
||
" '3 | headline: Major Irish art auction goes on public view',\n",
|
||
" \"3 | headline: EU's economic outlook not bright; says Van Rompuy\",\n",
|
||
" '0 | headline: Number on Live Register hits 8-year low as labour market improves',\n",
|
||
" '4 | headline: The life-support case and the Redmond case show the need for fresh legal thinking',\n",
|
||
" '3 | headline: Polls show drop in Peres lead',\n",
|
||
" '3 | headline: Hollywood actors look close to reaching deal',\n",
|
||
" '3 | headline: Public service pay cuts yield €1.4bn annually in savings; Dáil told',\n",
|
||
" \"3 | headline: Beating left victim 'like jelly'; court told\",\n",
|
||
" '1 | headline: Forthcoming Fair',\n",
|
||
" '3 | headline: EU extends Russian sanctions by six months; overcoming Greek concerns',\n",
|
||
" '0 | headline: Some cryptic notations on employee evaluations',\n",
|
||
" '3 | headline: Penalties for 57;000 but no driver yet disqualified',\n",
|
||
" \"3 | headline: Central England hit with month's rainfall in 24 hours\",\n",
|
||
" \"1 | headline: Kylie Jenner to be youngest 'self-made billionaire'\",\n",
|
||
" '6 | headline: UCD curse their luck as chances slip by',\n",
|
||
" '3 | headline: Call for checks on motorcycles',\n",
|
||
" \"4 | headline: Japan's avoidable accidents make folly of nuclear energy clear\",\n",
|
||
" \"2 | headline: Hollywood's JFK\",\n",
|
||
" '3 | headline: HSE apologises to abuse victims',\n",
|
||
" '3 | headline: Aid agencies call for solution to asylum ship crisis',\n",
|
||
" '1 | headline: TV preview: Six shows to watch on television this week',\n",
|
||
" '6 | headline: Championship form favours Cork but rivals Waterford not short of motivation',\n",
|
||
" \"6 | headline: Ronaldo's brace sparks United\",\n",
|
||
" '3 | headline: Sun brings crowds to Virginia Show',\n",
|
||
" '3 | headline: Iraq claims women and children die in US air strike',\n",
|
||
" '1 | headline: Gate Theatre needs to take risks – and so does its audience',\n",
|
||
" \"3 | headline: People who make themselves homeless 'are exceptional cases' - Taoiseach\",\n",
|
||
" \"1 | headline: Initiative on 'affordable housing' could face problems\",\n",
|
||
" '4 | headline: Problems with the property tax',\n",
|
||
" \"6 | headline: Daithí Burke's goal seals fourth straight final for Corofin\",\n",
|
||
" '3 | headline: Sinn Fein to mark hunger striker anniversary',\n",
|
||
" '6 | headline: Munster claim title',\n",
|
||
" '3 | headline: Watford leave it late but bypass Burnley',\n",
|
||
" '3 | headline: Man dies in fire at Fairview flat',\n",
|
||
" '0 | headline: In praise of the old reliable bicycle',\n",
|
||
" '3 | headline: The Battle; by Richard Overy (Penguin; £5.99 in UK)',\n",
|
||
" '6 | headline: Marnitz Boshoff included in Connacht squad for Cardiff Blues',\n",
|
||
" '4 | headline: Suspicion Apostolic visitation report will ignore deep problems',\n",
|
||
" '0 | headline: Banking inquiry analysis: Political enthusiasm obscured view of flaws',\n",
|
||
" '3 | headline: Varadkar looks to steady the ship',\n",
|
||
" '2 | headline: Six new from old thatched house',\n",
|
||
" '0 | headline: US health firm to create 20 jobs in Falls Road',\n",
|
||
" '3 | headline: EU; Balkan states move to stem flow of fighters joining jihad',\n",
|
||
" '0 | headline: More than €500;000 key money for shop on Henry Street',\n",
|
||
" \"6 | headline: Irish rugby's new deal\",\n",
|
||
" '3 | headline: Teenager drowns in NI reservoir',\n",
|
||
" '3 | headline: Aer Lingus pilots expected to endorse deal brokered by LRC',\n",
|
||
" \"3 | headline: Rice visit to Libya repays Gadafy's anti-extremism\",\n",
|
||
" '4 | headline: Labelling Sinn Féin',\n",
|
||
" '6 | headline: Digpast to win again for Jones',\n",
|
||
" '6 | headline: Joe Brolly was like Marmite but be careful what you wish for',\n",
|
||
" '3 | headline: Church has talked too much of rules - prelate',\n",
|
||
" '6 | headline: Verdict very much in the balance',\n",
|
||
" '3 | headline: Soldiers; garda claim on alleged stress injury',\n",
|
||
" '0 | headline: Deutsche seals deal for €300m Project Lee portfolio from Nama',\n",
|
||
" '3 | headline: Mother and son convicted of attack on woman',\n",
|
||
" \"3 | headline: Mary Lou sets out her SF agenda: 'Opportunities for all; not just the few'\",\n",
|
||
" \"3 | headline: Tributes paid to Ó Sé's 'great contribution'\",\n",
|
||
" '6 | headline: Jason Ryan optimistic as Kildare injury worries ease',\n",
|
||
" '3 | headline: Orange Hail arson attack investigated',\n",
|
||
" '4 | headline: Erskine B. Childers',\n",
|
||
" '3 | headline: Government on road to taxi deregulation',\n",
|
||
" '3 | headline: Four projects to get €70;000 for urban renewal',\n",
|
||
" \"3 | headline: Curtin was examined by 'repugnant' procedures\",\n",
|
||
" '6 | headline: Six Nations line-ups for Week 3',\n",
|
||
" '6 | headline: Strange mix of foreign invader',\n",
|
||
" \"4 | headline: Let's not teach children to flinch and to fear\",\n",
|
||
" '3 | headline: Postal staff in NI consider strike after death threats',\n",
|
||
" '6 | headline: Arsenal hopes fade in dirty dozen minutes',\n",
|
||
" '3 | headline: Fears UK hosepipe ban to be extended',\n",
|
||
" '4 | headline: A loophole in household charge?',\n",
|
||
" '3 | headline: Indonesian soldiers arrested in connection with UN deaths',\n",
|
||
" '3 | headline: Israeli woman stabbed to death in West Bank attack',\n",
|
||
" \"3 | headline: Tusla: Child benefit link to school attendance 'not an effective tool'\",\n",
|
||
" \"0 | headline: Siptu's accounts ignore standard\",\n",
|
||
" '3 | headline: Police and firefighters attacked in Ballymena',\n",
|
||
" '3 | headline: Tax defaulters pay Revenue €157 million',\n",
|
||
" '0 | headline: Irish start-up HeyStaks gets €1.5m Digicel investment',\n",
|
||
" '6 | headline: Luis Suarez leaves no gnawing doubts as to his intentions',\n",
|
||
" \"0 | headline: Renewable energy commitments 'could cost extra €200m'\",\n",
|
||
" '3 | headline: Bail for chicken thief sought by Romania',\n",
|
||
" \"3 | headline: Inquest into young jockey's death adjourned as key witness absent\",\n",
|
||
" '3 | headline: Trimble; Mallon accuse each other of blocking deal',\n",
|
||
" '3 | headline: Cork teenagers win Young Scientist award',\n",
|
||
" '0 | headline: Over 900 jobs recorded in Irish spin-out tech firms last year',\n",
|
||
" '2 | headline: 10 things you should know about the Basques',\n",
|
||
" '2 | headline: Ed Sheeran wows intimate crowd at London Irish Centre',\n",
|
||
" \"6 | headline: Gerry Thornley: Let's hear it for the Pro14 revival\",\n",
|
||
" '0 | headline: UK building society seeks windfall claimants',\n",
|
||
" '3 | headline: Government urged to open up energy market',\n",
|
||
" '6 | headline: Tour de France: Dan Martin fighting fit as he sets his sights high',\n",
|
||
" '3 | headline: Holles Street welcomes first baby of 2014',\n",
|
||
" '3 | headline: School given more time to consider expulsions over cannabis smoking',\n",
|
||
" \"6 | headline: Klopp: 'I see you are feeling sorry for us but we are fine'\",\n",
|
||
" '3 | headline: Photographic negatives',\n",
|
||
" \"3 | headline: Collectors set to flock to Ireland's first ever rock and pop memorabilia auction\",\n",
|
||
" '3 | headline: Relatives of MH370 passengers protest in Malaysia',\n",
|
||
" '0 | headline: Eircom met Government on broadband roll-out',\n",
|
||
" '6 | headline: Below-par Ireland not good enough',\n",
|
||
" '6 | headline: Rooney makes second Everton debut in unconvincing win',\n",
|
||
" '3 | headline: Gardaí arrest 35 in operation targeting transient criminals',\n",
|
||
" '4 | headline: Regulation of Dáil Éireann bar',\n",
|
||
" '0 | headline: Peace in sight between feuding REO investors',\n",
|
||
" '3 | headline: Men charged over Belfast protest',\n",
|
||
" '6 | headline: United need win for peace of mind',\n",
|
||
" '4 | headline: Coming to terms with Budget 2018',\n",
|
||
" '0 | headline: Three firms sign up to offer 3G services',\n",
|
||
" '3 | headline: Higgins and union official in row over website',\n",
|
||
" '1 | headline: Bua an Phiarsaigh',\n",
|
||
" '3 | headline: Netanyahu sees EU economic role in Middle East',\n",
|
||
" '2 | headline: New Japanese study links slow eating to losing weight',\n",
|
||
" '2 | headline: Unassuming Sandycove mews has wow factor for €1.275m',\n",
|
||
" '0 | headline: Company offers lump sum to over 70s for share in homes',\n",
|
||
" '3 | headline: Helpline for men who are abused',\n",
|
||
" '3 | headline: 41% of architects set to lose their jobs - report',\n",
|
||
" '0 | headline: Eircom lost 20;000 fixed line customers to rivals - ComReg',\n",
|
||
" \"4 | headline: Why Ireland's not working\",\n",
|
||
" '6 | headline: How James Tarkowski became a passing fancy for Gareth Southgate',\n",
|
||
" '4 | headline: Trees felled in Dun Laoghaire',\n",
|
||
" '6 | headline: Champions play Rest of Ireland',\n",
|
||
" '6 | headline: Heavyweights ease into cup semi-finals',\n",
|
||
" '3 | headline: Queen of comedy',\n",
|
||
" '3 | headline: Russian opposition leader Boris Nemtsov shot dead in Moscow',\n",
|
||
" '3 | headline: Merkel and Orban call for unity at border where Iron Curtain cracked',\n",
|
||
" '3 | headline: Schools say changes must be voluntary',\n",
|
||
" '2 | headline: Strong interest reported in planned Cork centre',\n",
|
||
" '6 | headline: Leinster Lightning regain Interprovincial Twenty20 Cup despite defeat',\n",
|
||
" '6 | headline: Prize for buoyant Banner remains the same – only the backdrop changes',\n",
|
||
" '4 | headline: Zimbabwe and its neighbours',\n",
|
||
" '3 | headline: Vaccine only answer to AIDS',\n",
|
||
" '3 | headline: Daunted by the search for love in a bygone era',\n",
|
||
" '3 | headline: Fruit of the Loom staff hold one-day strike',\n",
|
||
" '6 | headline: Cork to name new manager next week as JBM resigns',\n",
|
||
" '1 | headline: Metá Metá - MM3 review: an intelligently edgy trio who are dancing past the genre trap',\n",
|
||
" '2 | headline: Rathgar Victorian with impeccable French polish for €3.25m',\n",
|
||
" '3 | headline: Female pedestrian killed on Cork road',\n",
|
||
" '0 | headline: RSA to integrate as all-island entity',\n",
|
||
" '3 | headline: Businesses oppose Dairygold move',\n",
|
||
" '2 | headline: £151;000 houses have private access to beach',\n",
|
||
" '4 | headline: To the waters and the wild',\n",
|
||
" \"0 | headline: Office space in Cork's south docklands to rent at just €20 per sq ft\",\n",
|
||
" '3 | headline: The other key names',\n",
|
||
" '4 | headline: Salaries for parenting',\n",
|
||
" '3 | headline: Two Irish writers longlisted for Impac prize',\n",
|
||
" '1 | headline: Footlights',\n",
|
||
" '3 | headline: Garda criticised over lack of action on tackling hate crimes',\n",
|
||
" \"3 | headline: Lawyers' group criticises referendum process\",\n",
|
||
" '3 | headline: Blue pools where mermaids play',\n",
|
||
" \"3 | headline: Foreign pathologist's work under scrutiny\",\n",
|
||
" '4 | headline: Beggars back on the streets',\n",
|
||
" '0 | headline: John FitzGerald: Migration is still central to the Irish experience',\n",
|
||
" '4 | headline: The new pension framework',\n",
|
||
" '6 | headline: Kilkenny now just one win away',\n",
|
||
" '3 | headline: Taking care closer to home',\n",
|
||
" '2 | headline: Cool Finnish design full of northern light',\n",
|
||
" '3 | headline: Toxic incinerator plan generates controversy',\n",
|
||
" '3 | headline: Three Science Week events worth seeing on Monday',\n",
|
||
" '6 | headline: Smyth makes himself at home',\n",
|
||
" '3 | headline: Baby in right-to-life case dies in Britain',\n",
|
||
" \"3 | headline: To confess is 'above; beyond all else'\",\n",
|
||
" '6 | headline: Lara again anchor in dramatic win',\n",
|
||
" '3 | headline: Police investigate suspicious death in Belfast',\n",
|
||
" '3 | headline: New bill will allow harvesting of personal data for elections; experts say',\n",
|
||
" '6 | headline: Campese centre stage again',\n",
|
||
" \"3 | headline: Boris Johnson rules out electoral pact with Farage's Brexit Party\",\n",
|
||
" '3 | headline: US troops kill 50 insurgents in Iraq raids',\n",
|
||
" \"6 | headline: D'Arcy doubt for Tests\",\n",
|
||
" '6 | headline: Rafael Benítez open to job offers after frustrating summer',\n",
|
||
" '0 | headline: Wall St surrenders early gain',\n",
|
||
" \"2 | headline: I didn't realise that the Lone Ranger was an actor\",\n",
|
||
" '0 | headline: Consumers splash out on Easter eggs',\n",
|
||
" '1 | headline: Writing the book on an epic battle',\n",
|
||
" '3 | headline: Man exposed himself to girls at GAA club',\n",
|
||
" '3 | headline: Living standards',\n",
|
||
" '3 | headline: Six arrests follow raids on drug gangs',\n",
|
||
" '3 | headline: Man guilty of kidnap remanded',\n",
|
||
" '3 | headline: Concern as breast cancer tests reassessed in North',\n",
|
||
" \"3 | headline: Women's life spans above EU average\",\n",
|
||
" '2 | headline: Good food; good service are secret of staying power (Part 3)',\n",
|
||
" '3 | headline: Doctors seek supermarket alcohol ban',\n",
|
||
" \"3 | headline: Varadkar and Johnson 'planning to meet'; says Minister\",\n",
|
||
" '0 | headline: Seen or heard',\n",
|
||
" '6 | headline: Loughnane cuts team',\n",
|
||
" '4 | headline: IMPLICATION',\n",
|
||
" '3 | headline: Iraq draft constitution to be sent to UN',\n",
|
||
" '2 | headline: Chinese in Ireland most active property buyers',\n",
|
||
" '4 | headline: Abortion and the law',\n",
|
||
" \"6 | headline: Former Leinster centre Ben Te'o joins Japan's Sunwolves\",\n",
|
||
" '2 | headline: Fancy foot work',\n",
|
||
" \"3 | headline: Travels in the White Man's Grave; by Donald MacIntosh. (Abacus; £9.99 in UK)\",\n",
|
||
" \"3 | headline: Bishops reaffirm 'wholehearted support' for child protection watchdog; 'financial and otherwise'\",\n",
|
||
" '4 | headline: Cystic fibrosis unit funding',\n",
|
||
" \"4 | headline: Republic of the rich and mean turns its back on world's poor\",\n",
|
||
" '1 | headline: Review: The Nose',\n",
|
||
" '3 | headline: President escapes injury as ceiling collapses',\n",
|
||
" '3 | headline: Need a passport in a hurry? Conor Pope has all the answers',\n",
|
||
" '3 | headline: A lost generation of Irish manhood',\n",
|
||
" '2 | headline: Donal Skehan: Spiced Mussels with Gubbeen Chorizo and Irish Cider',\n",
|
||
" \"0 | headline: Cantillon: Blow for Denis O'Brien's ad-blocking campaign\",\n",
|
||
" '6 | headline: National Indoor Arena as far away as Morocco',\n",
|
||
" '3 | headline: Two US congresswomen denied entry to Israel after Trump plea',\n",
|
||
" '4 | headline: Soup and tills',\n",
|
||
" \"1 | headline: FitzGerald's political strife and family life\",\n",
|
||
" '3 | headline: Chinese journalist could be executed if found guilty',\n",
|
||
" '3 | headline: Heritage hot spots History; nature; art; environment',\n",
|
||
" '3 | headline: Burma named as Asean chair',\n",
|
||
" \"3 | headline: Tánaiste calls TD Pádraig Mac Lochlainn a 'barroom brawler'\",\n",
|
||
" '0 | headline: Accountancy firms merge practices',\n",
|
||
" '2 | headline: 32: Audi Q8 – Mean; menacing and oh-so-good',\n",
|
||
" \"0 | headline: Ireland 'compliant' with bailout\",\n",
|
||
" \"1 | headline: Hennessy New Irish Writing: February 2019's winning poems\",\n",
|
||
" '3 | headline: Man charged with larceny',\n",
|
||
" '3 | headline: Family planning morality defended',\n",
|
||
" '4 | headline: Disturbing study on sexual slavery exposes barbarity at heart of globalisation',\n",
|
||
" '0 | headline: Leeside high-flier',\n",
|
||
" '3 | headline: Seanad abolition savings cannot be established; says commission',\n",
|
||
" '0 | headline: NYSE closed until tomorrow; at least',\n",
|
||
" '4 | headline: Common cents?',\n",
|
||
" '3 | headline: Israel to return Gaza flotilla ship',\n",
|
||
" '3 | headline: Tax break for private clinics',\n",
|
||
" '1 | headline: Do we really need strict rules on busking?',\n",
|
||
" '3 | headline: Business anger at Luas works',\n",
|
||
" '6 | headline: Just like home for Sussex at Ormeau',\n",
|
||
" '3 | headline: Fianna Fáil to avoid negative campaigning; says Martin',\n",
|
||
" '3 | headline: Ethiopia suspend Bekele over training camps',\n",
|
||
" '1 | headline: Songs that sing against censorship',\n",
|
||
" '6 | headline: Relaxed Henshaw very much at home at the Sportsground',\n",
|
||
" \"6 | headline: D'Arcy ready for challenges of 17th season with Leinster\",\n",
|
||
" '3 | headline: Hopes fade in Philippines after deadly mudslide',\n",
|
||
" '6 | headline: Accordion Etoile looks the pick',\n",
|
||
" \"3 | headline: Saudis fear 'Arab-Afghan' prisoners will be massacred\",\n",
|
||
" '3 | headline: Labour Court awards teachers €40;000',\n",
|
||
" '3 | headline: Greencore to see Government documents on sugar aid',\n",
|
||
" '6 | headline: Errani shocks Stosur to reach final',\n",
|
||
" '0 | headline: PolarLake reveals new products',\n",
|
||
" '6 | headline: Monster putt gives Power cup',\n",
|
||
" '3 | headline: Couple mentally scarred for life by attack',\n",
|
||
" '3 | headline: Hurricane heading for east landfall',\n",
|
||
" '4 | headline: Following an adult agenda',\n",
|
||
" \"3 | headline: Thousands protest against Algeria's president for fifth day running\",\n",
|
||
" '3 | headline: Tax relief for schools',\n",
|
||
" '3 | headline: Abu Ghraib whistleblower soldier gets award',\n",
|
||
" '3 | headline: Number of Polish weekend schools doubles to 24 over past three years',\n",
|
||
" '3 | headline: Debate rages in Mexico over proposals to change abortion laws',\n",
|
||
" '6 | headline: Ulster backline expected to shine as Pro12 kicks off',\n",
|
||
" '0 | headline: Facebook co-founder says company should be split in three',\n",
|
||
" '4 | headline: Life is even more precious because we are on our own',\n",
|
||
" '6 | headline: IRFU warn of banned substances potentially lurking in some supplements',\n",
|
||
" '3 | headline: Belfast man in critical condition after attack',\n",
|
||
" '2 | headline: River cottage flows beautifully',\n",
|
||
" '0 | headline: Dow movers and shakers brighten report season',\n",
|
||
" '3 | headline: Gadafy loyalists repel attacks',\n",
|
||
" \"0 | headline: Fyffes's chief in US to petition over merger\",\n",
|
||
" '3 | headline: Woman killed in Co Waterford collision',\n",
|
||
" '6 | headline: Winning return for Ahern',\n",
|
||
" '3 | headline: Court jails man who threw petrol bombs in parade riot',\n",
|
||
" '3 | headline: Kim appears for supreme leader vote',\n",
|
||
" \"0 | headline: Cost of crane drivers' pay dispute could soon top €1.5m a week\",\n",
|
||
" '3 | headline: Mother jailed after her son (8) missed 230 days of school',\n",
|
||
" '4 | headline: The Dostoevsky Question',\n",
|
||
" '3 | headline: Young women more likely to have degrees than male peers',\n",
|
||
" '6 | headline: Bowlers leave Pakistan on edge of victory',\n",
|
||
" \"3 | headline: Garda boss undertakes not to access information on newspaper editor's phone\",\n",
|
||
" '0 | headline: Euro falls to lowest level since 2010',\n",
|
||
" '0 | headline: Candy Crush maker raises $500m in IPO',\n",
|
||
" '3 | headline: Dublin to Cork motorway target to be missed',\n",
|
||
" '3 | headline: Digital dentistry: getting your teeth into video games',\n",
|
||
" '3 | headline: Three defeated candidates pledge support for leader',\n",
|
||
" '6 | headline: Henman exerts peer pressure',\n",
|
||
" '3 | headline: German serial killer nurse faces third trial over 106 deaths',\n",
|
||
" '3 | headline: It helps on the farm if you really love cows',\n",
|
||
" '3 | headline: Lenihan rules out Vat reduction',\n",
|
||
" '0 | headline: Trustee wants money back from fraudsters',\n",
|
||
" '0 | headline: Examiner appointed to sandwich bar chain',\n",
|
||
" '3 | headline: Algerian with knife remanded',\n",
|
||
" '3 | headline: Irish Film Board appoints Loughran to run new US office',\n",
|
||
" '3 | headline: Poetry world mourns death of Donaghy',\n",
|
||
" '2 | headline: Peas and broad beans; like green summer pearls',\n",
|
||
" '3 | headline: 10 killed in Algeria',\n",
|
||
" '3 | headline: Police colluded with UVF; report confirms',\n",
|
||
" \"2 | headline: Weight-loss: 'I gained four pounds. My fear of failure returned'\",\n",
|
||
" \"3 | headline: Trump has 'no idea' if deal can be made on border wall funding\",\n",
|
||
" '6 | headline: Envoy says South Africa is ready',\n",
|
||
" '4 | headline: Feed the seals; face a €5;000 fine',\n",
|
||
" \"6 | headline: Elwood leaps to Connacht's defence\",\n",
|
||
" '3 | headline: Lawsuit threatened to close ruling AK Party in Turkey',\n",
|
||
" '3 | headline: Judgment reserved in case where architect said he was bullied from job',\n",
|
||
" '6 | headline: Jerome keeps run going',\n",
|
||
" '6 | headline: FIA decision expected today',\n",
|
||
" \"3 | headline: 'He never left me alone': Woman recalls abuse as uncle jailed for rape\",\n",
|
||
" \"3 | headline: Jury's manslaughter verdict quashed after it ignored insanity evidence\",\n",
|
||
" '3 | headline: Heaven can wait but Valhalla here to stay',\n",
|
||
" \"4 | headline: West's period of mastery may be on the wane\",\n",
|
||
" '0 | headline: Journal Media records €846;000 loss for 2014',\n",
|
||
" '4 | headline: Fossil fuel divestment Bill',\n",
|
||
" '4 | headline: Eastern Europeans – forgotten minorities',\n",
|
||
" '3 | headline: Self-rule to form key plank of SNP election campaign',\n",
|
||
" '3 | headline: Berlusconi facing tax threat',\n",
|
||
" '0 | headline: Caravan cover costs are no picnic',\n",
|
||
" '3 | headline: Lough Derg anglers call off events',\n",
|
||
" '3 | headline: Gardaí treat Cork death as murder',\n",
|
||
" '3 | headline: Preparation of master plan for Dublin Bay',\n",
|
||
" \"6 | headline: Drogba's departure eclipses routine win for league champions\",\n",
|
||
" '0 | headline: New institute aims to boost digital learning',\n",
|
||
" '3 | headline: New talks rejected until Israeli settlements suspended',\n",
|
||
" \"3 | headline: PSNI launch new bid to trace baby's mother\",\n",
|
||
" '3 | headline: $1m bribe paid for CRH; Polish inquiry told',\n",
|
||
" \"0 | headline: Fishers' share capital\",\n",
|
||
" '6 | headline: Spain a real test for Irish',\n",
|
||
" '6 | headline: Perpignan pay heavy penalty',\n",
|
||
" '6 | headline: Kildare finish the stronger',\n",
|
||
" '3 | headline: Journalism Awards: The winners',\n",
|
||
" '3 | headline: Bread prices set to increase',\n",
|
||
" \"0 | headline: 'There remains a significant volume of assets still to be brought to the market from banks/NAMA deleveraging'\",\n",
|
||
" '4 | headline: A Cardinal Resigns',\n",
|
||
" '1 | headline: Does life imitate Grand Theft Auto?',\n",
|
||
" '2 | headline: GIVING UP',\n",
|
||
" '3 | headline: Consumer interest in venison falls dramatically',\n",
|
||
" '2 | headline: Health tip of the day: Lay off the guilt',\n",
|
||
" \"3 | headline: Farming 'losing out in boom'\",\n",
|
||
" \"3 | headline: Council 'expressed concern' over number of Garth Brooks concerts\",\n",
|
||
" '3 | headline: Violent outburst as man is cleared of car deaths',\n",
|
||
" '0 | headline: Getting inside the minds of top business leaders',\n",
|
||
" \"0 | headline: Pretax profit of €170m at world's largest online bike shop\",\n",
|
||
" '3 | headline: Trichet hints at 0.5% ECB rate cut next month',\n",
|
||
" '6 | headline: Bolger and Manning look to end year on a high note',\n",
|
||
" '6 | headline: Makeshift Ireland force a draw',\n",
|
||
" '2 | headline: Period property with potential in Glasnevin for €400;000',\n",
|
||
" '0 | headline: Tyrone takes the call of Americans in distress',\n",
|
||
" '3 | headline: Military funeral for soldier in Kerry',\n",
|
||
" '0 | headline: Danes on hunt for prime Dublin site',\n",
|
||
" '3 | headline: Man jailed for 10 years over role in murder of Noel Kirwan',\n",
|
||
" \"6 | headline: Michelle O'Neill was 'born ready' for World Cup final\",\n",
|
||
" '3 | headline: Indonesia urges Opec to maintain output',\n",
|
||
" '3 | headline: 10 killed in Kazakhstan violence',\n",
|
||
" '3 | headline: UN envoy to co-chair reform group',\n",
|
||
" '4 | headline: Send in the clowns?',\n",
|
||
" \"3 | headline: India's top court rules sex with an underage wife is rape\",\n",
|
||
" '3 | headline: 2.45m spent in taxi scheme',\n",
|
||
" '1 | headline: Suffragette review: unimpeachable; well-dressed; a bit too glossy',\n",
|
||
" '4 | headline: UNIONIST DEMOCRACY',\n",
|
||
" '4 | headline: News from NI hopeful; but sidelining of SDLP a worry',\n",
|
||
" '3 | headline: Heart of Goldberg',\n",
|
||
" \"6 | headline: Wood's return helps energise proceedings\",\n",
|
||
" '6 | headline: Paddy Jackson returns from injury for Ulster clash with Connacht',\n",
|
||
" '0 | headline: Travelodge to write off €300m of bank debt',\n",
|
||
" '3 | headline: 70 years of infant education',\n",
|
||
" '0 | headline: Ebeon founders deny role in collapse',\n",
|
||
" '4 | headline: Government faces taxing time over property levy',\n",
|
||
" '3 | headline: McGrath urges Minister for Housing to focus on reducing bureaucracy',\n",
|
||
" '3 | headline: Netherlands and Australia favour UN plan to secure MH17 crash site',\n",
|
||
" '1 | headline: Thousands come to show and tell at World War One Roadshow',\n",
|
||
" '4 | headline: Questionable Donations',\n",
|
||
" \"1 | headline: Boy George: The bits 'Who Do You Think You Are' didn't tell you about singer's Irish family\",\n",
|
||
" '6 | headline: Inca stays on festival warpath',\n",
|
||
" '3 | headline: EU farm commissioner hints at more rural aid',\n",
|
||
" '6 | headline: Ronaldo ready to answer his critics',\n",
|
||
" '3 | headline: Publicans among occupations barred from Garda reserve',\n",
|
||
" \"0 | headline: Retired couple sues Bloxham for €470;450 'lost on bond'\",\n",
|
||
" \"4 | headline: Comfort zone for Cowen's Budget\",\n",
|
||
" \"1 | headline: If it's funny there; it's funny anywhere\",\n",
|
||
" \"3 | headline: One in ten Alzheimer's sufferers under 65 - report\",\n",
|
||
" '0 | headline: Home phones to lose out as Internet option thrives',\n",
|
||
" '2 | headline: Head to the slopes; and London',\n",
|
||
" '3 | headline: £62m for research pledged to colleges',\n",
|
||
" \"1 | headline: This kid's not all right; he's a drip\",\n",
|
||
" '3 | headline: Suicide casts a shadow on the Sunshine policy',\n",
|
||
" '0 | headline: Thousands set to get refunds after collapse of Enterprise Insurance',\n",
|
||
" '4 | headline: Violence in South Africa',\n",
|
||
" \"3 | headline: Cameron's bestowal of honours exposes UK's cosy elitism\",\n",
|
||
" '3 | headline: Friends; family of fatally stabbed lecturer bid him adieu',\n",
|
||
" '2 | headline: Elegant Victorian terraced home in D4',\n",
|
||
" '3 | headline: Ugandan rebels kill 26 in ambush',\n",
|
||
" '6 | headline: Swedish upset',\n",
|
||
" '3 | headline: Irish team develops improved whooping cough vaccine',\n",
|
||
" '0 | headline: Wall Street encourages retreat',\n",
|
||
" '3 | headline: New piers to link Blasket island to mainland',\n",
|
||
" '3 | headline: Angolan President plans to retire',\n",
|
||
" '3 | headline: Standing charge for water likely to be under €50 a year',\n",
|
||
" \"3 | headline: Donald Trump deletes baffling late-night 'covfefe' tweet\",\n",
|
||
" '0 | headline: Seven of top 10 city shops are Irish',\n",
|
||
" \"6 | headline: King's new-look side earn draw in Cyprus\",\n",
|
||
" '6 | headline: Dublin - 2-9; Westmeath - 0-8',\n",
|
||
" '3 | headline: Derry fire being treated as arson',\n",
|
||
" '3 | headline: Up to 100 Irish aid workers head for ravaged regions',\n",
|
||
" '3 | headline: Battalion to be disbanded',\n",
|
||
" ...]"
|
||
]
|
||
},
|
||
"execution_count": 70,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"train_data"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 71,
|
||
"id": "3eedae48",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"for example in train_data:\n",
|
||
" model.learn(example)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 72,
|
||
"id": "adc7bcd0",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"def test_set(test_data):\n",
|
||
" test = ['| headline: {}'.format(x) for x in test_data]\n",
|
||
" return test\n",
|
||
" "
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 73,
|
||
"id": "2b9ce936",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"dev_x = test_set(dev_x)\n",
|
||
"testa_x = test_set(testa_x)\n",
|
||
"testb_x = test_set(testb_x)"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 74,
|
||
"id": "cef5f0c2",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['| headline: President Higgins and Xi Jinping enjoy productive talks',\n",
|
||
" '| headline: German trade surplus at seven-year low',\n",
|
||
" \"| headline: Potatoes have 'huge image issue' among the youth\",\n",
|
||
" \"| headline: New home education guidelines favour school teachers; says parents' group\",\n",
|
||
" '| headline: Mindhunter drags us back to the place where the serial killer craze began',\n",
|
||
" \"| headline: 'Asgard' to escape from Kilmainham Gaol and appear at RDS boat show next week\",\n",
|
||
" '| headline: Five dead after British bus crashes in Austria',\n",
|
||
" '| headline: Clane General Hospital expects to return to profit this year',\n",
|
||
" \"| headline: NI death cert plan 'won't bring closure'\",\n",
|
||
" '| headline: UK investigation into Icelandic bank fraud abandoned']"
|
||
]
|
||
},
|
||
"execution_count": 74,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"dev_x[:10]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 75,
|
||
"id": "062f0bd1",
|
||
"metadata": {},
|
||
"outputs": [
|
||
{
|
||
"data": {
|
||
"text/plain": [
|
||
"['| headline: Erratic Wales do it the hard way',\n",
|
||
" \"| headline: Girls in my daughter's class are calling her fat\",\n",
|
||
" \"| headline: Russia 'not ready' for Y2K\",\n",
|
||
" \"| headline: Those who can't\"]"
|
||
]
|
||
},
|
||
"execution_count": 75,
|
||
"metadata": {},
|
||
"output_type": "execute_result"
|
||
}
|
||
],
|
||
"source": [
|
||
"testa_x[:4]"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 76,
|
||
"id": "f20d5d1d",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"def predictions(test_data, out):\n",
|
||
" preds = []\n",
|
||
" for x in test_data:\n",
|
||
" prediction = model.predict(x)\n",
|
||
" preds.append(prediction)\n",
|
||
" preds = le.inverse_transform(preds)\n",
|
||
" file = open(out, 'w')\n",
|
||
" for x in preds:\n",
|
||
" file.write(f'{x}\\n')\n",
|
||
" file.close()"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 77,
|
||
"id": "4c68c041",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"predictions(dev_x, 'dev-0\\out.tsv')"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 78,
|
||
"id": "9da03434",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"predictions(testa_x, 'test-A\\out.tsv')"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": 79,
|
||
"id": "f8d5471d",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": [
|
||
"predictions(testb_x, 'test-B\\out.tsv')"
|
||
]
|
||
},
|
||
{
|
||
"cell_type": "code",
|
||
"execution_count": null,
|
||
"id": "37353752",
|
||
"metadata": {},
|
||
"outputs": [],
|
||
"source": []
|
||
}
|
||
],
|
||
"metadata": {
|
||
"kernelspec": {
|
||
"display_name": "Python 3",
|
||
"language": "python",
|
||
"name": "python3"
|
||
},
|
||
"language_info": {
|
||
"codemirror_mode": {
|
||
"name": "ipython",
|
||
"version": 3
|
||
},
|
||
"file_extension": ".py",
|
||
"mimetype": "text/x-python",
|
||
"name": "python",
|
||
"nbconvert_exporter": "python",
|
||
"pygments_lexer": "ipython3",
|
||
"version": "3.8.8"
|
||
}
|
||
},
|
||
"nbformat": 4,
|
||
"nbformat_minor": 5
|
||
}
|