Question:
represent the summary to retrieve the rest of the news story with more details!
E.g. ['Represent the text to find a corresponding news article that continues the story!', 'Eurozone leaders have broadly welcomed new proposals for Greek reforms amid hopes a deal can be struck within days to stop Greece defaulting on its debt.'] == ['Represent the news article to find a single sentence that could be used as a summary', 'German Chancellor Angela Merkel said Greece\'s latest offer constituted "some progress". But she said more work was needed and "time is short".\nGreece must repay €1.6bn (£1.1bn) to the International Monetary Fund (IMF) by the end of the month.\nIf it fails to do so, it risks crashing out of the euro and possibly the EU.\nAlthough no deal has been struck, key obstacles appear to have been cleared, the BBC\'s Damian Grammaticas reports from Brussels.\nThe deal being formed is believed to include:\nThe move was received with cautious optimism by leaders of 18 other eurozone nations gathered for an emergency summit in Brussels.\nAnalysis: Robert Peston, BBC economics editor\nThere is a script which seemingly all eurozone leaders are urged to learn, which is that if the currency union is in the grips of crisis, no solution can or should be found till markets and economy are on the verge of a heart attack.\nWith almost no time left before a de facto default - and, more frighteningly perhaps, with a Greek banking system on the brink of total collapse because savers had lost all confidence that a rescue for their state could be found - Mr Tsipras has come up with a plan that his fellow eurozone leaders see, at last, as the basis for a deal.\nSo subject to technical talks, an actual deal to release life-saving additional loans for Greece may be reached at the end of the week.\nGreek tragedy: End of an act, not the whole play\nWhy should I care?\nWhat\'s behind the crisis?\nThe European Central Bank (ECB) approved additional emergency funding for Greek banks to cover withdrawals, allowing banks to stay open and providing breathing space for a deal to be reached.\nIt has acted repeatedly after anxious savers withdrew more than €4bn in recent days.\nThe Greek banking system is on the verge of collapse due to savers\' loss of confidence.\nEurozone finance ministers meet again on Wednesday. They hope to approve a package to be put to eurozone leaders for final endorsement on Thursday morning.\nEven if eurozone finance ministers and the European Council agree to a deal, it still needs to be approved by the Greek parliament and eurozone governments by next Tuesday.\nOnly once agreement is reached will creditors unlock the final €7.2bn tranche of bailout funds.\nAfter talks ended on Monday evening, Mrs Merkel said that everyone taking part wanted Greece to stay in the eurozone, "myself included".\n"The proposals offered by Greece today constitute some progress. However, it became clear during our discussions that there is a lot of work to be done and time is short," she said.\nMrs Merkel said she was open to considering debt relief - which Greek Prime Minister Alexis Tsipras says is needed to secure support for reforms at home - but only after the present negotiations are completed.\nCommentators say Greece\'s mountain of debt - worth almost 180% of its entire annual economic output - will need to be restructured if it is to escape the cycle of scrambling to secure funds to pay off looming bills to creditors.\nMr Tsipras also met the heads of Greece\'s three international creditors - the IMF, the European Commission and the ECB - in Brussels.\nFrench President Francois Hollande said Greece and its creditors were "moving towards an accord" but there was "still work to be done".\nEuropean Commission President Jean-Claude Juncker and EU finance commissioner Pierre Moscovici both professed themselves "convinced" that a final agreement would be reached.\nBut there has been some pessimism from Greece, with deputy parliament speaker and Syriza lawmaker Alexis Mitropoulos reportedly telling Greek TV that lawmakers would find it "difficult to pass" the latest package of reforms.\nThe issue is highly contested in Greece - with anti-austerity and pro-European protesters clashing in Athens on Monday night.\nPensioners are due to stage another rally on Tuesday afternoon.\nGreece\'s left-wing Syriza government opposes reforms it says will impose unnecessary hardship.\nIt was elected in January 2015 on pledges it would end austerity.'] != ['Represent the news article to find a single sentence that could be used as a summary', 'Well-placed sources told BBC economics editor Robert Peston a decision to end the Emergency Liquidity Assistance (ELA) would be made by the ECB\'s governing council later on Sunday.\nGreek banks depend on ELA funds daily.\nGreek Finance Minister Yanis Varoufakis said his government would consider overnight what measures to take "to minimise the burden on our people".\nCutting the ECB lifeline could push Greece out of the euro.\nSuch an ECB cut would mean "Europe has failed", Mr Varoufakis told the BBC\'s World this Weekend.\nIt would mean Europe had "failed in its duty to preserve in parallel a democratic process and a monetary union", he said. "It is a dark hour for Europe."\nThe lenders have "not met Greece even a quarter of the way", he complained.\nThe government would consider "what can be done to minimise the burden on our people from Europe\'s refusal to grant us democratic rights".\nA BBC reporter in Athens says long queues are forming at bank ATMs.\nThe EU-IMF bailout for heavily indebted Greece expires on Tuesday and talks have broken down.\nGreek banks would find themselves in serious straits as soon as Monday if the ECB cut the ELA funding, Robert Peston says.\nGreece will probably have to announce a bank holiday on Monday, pending the introduction of capital controls, he says.\nIt is one of the most momentous decisions the ECB has ever faced, since the euro was launched on 1 January 1999.\nFrench Prime Minister Manuel Valls said the ECB "is independent but... I don\'t think it can cut off rations [for the Greeks]". He said "it\'s the Greek nation that is suffering".\nCapital controls are restrictions on how much customers can withdraw from banks. Until now, the Greek government has signalled that it does not want to impose such controls.\nIn recent weeks, Greeks have withdrawn billions of euros from banks.\nA Greek withdrawal from the euro - known as "Grexit" - is not inevitable, says Robert Peston, as the eurozone did resolve Cyprus\'s banking crisis in 2013 and the country stayed in the euro.\nCapital controls were imposed on Cypriot banks, and remained in place for a long time - the last restrictions were only lifted in April this year.\nGreece\'s situation is more difficult, our editor reports. Capital controls are seen as an important step towards leaving the euro, because the single currency\'s rules require free movement of capital.\nBut Greece could remain in if its government and the bailout providers - the EU and IMF - can restart constructive negotiations, he reports.\nA country on the brink - chief correspondent Gavin Hewitt writes:\nIt is the most important decision in the ECB\'s history.\nA withdrawal of funding could plunge Greece into chaos and yet the ECB cannot break its own rules by funding a banking system where the country is heading for a default.\nAlexis Tsipras has gambled both with his future and that of his country. He committed Greece to a vote, but only after the current bailout has expired, so leaving Greece vulnerable and exposed.\nRead Gavin\'s analysis in full here.\nWhat are the Greek papers saying?\nOn Saturday eurozone finance ministers - the Eurogroup - refused to extend Greece\'s desperately-needed bailout beyond Tuesday.\nThe ministers blamed Greek Prime Minister Alexis Tsipras\'s surprise call for a referendum on 5 July on the bailout conditions.\nThe final €7.2bn (£5bn; $8bn) of Greece\'s second bailout has been frozen since last summer, as lenders demanded more Greek progress on deep economic reform.\nWithout more lending to Greece the country will default on a €1.6bn repayment due to the IMF on Tuesday.\nUnder the rules governing the euro, the ECB\'s emergency lifeline could not be continued if the ECB considered Greek banks to be insolvent.\nRobert Peston says that with Greece no longer participating in a formal rescue programme, the solvency of the Greek state would be in doubt, as it is so intimately linked to the banks\' solvency.\nMr Tsipras\'s leftist Syriza government rejects the bailout terms, after five years of lender-imposed austerity that has increased Greek unemployment and cut pensions and welfare benefits.\nGreece has endured five years of recession, and total output (GDP) has shrunk by 25%.']

Question: Banking giant HSBC, which was hit with a US fine for money laundering last year, is facing fresh accusations of illegal activity in Argentina.

Argentina has alleged that the bank used "fake receipts" to facilitate money laundering and tax evasion, and launder 392m pesos ($77m; Â£50m).
The country's tax authority said it had filed criminal charges against HSBC.
HSBC said that it would cooperate with the investigation, adding that the allegations were "of great concern".
"We are committed to working cooperatively with authorities to ensure a thorough review and appropriate resolution of the matter," said Lyssette Bravo, a spokeswoman for HSBC.
Last year, HSBC agreed to pay US authorities $1.9bn (Â£1.2bn) in a settlement over money laundering, the largest paid in such a case.
Argentina laid out its case against HSBC late on Monday.
"On the basis of what's been investigated so far, in six months we've recorded 392 million pesos in fraudulent transactions, generated by evasion and money laundering," said Ricardo Echegaray, head of Argentina's tax agency.
Mr Echegaray added that HSBC also helped clients evade taxes on an additional 224m pesos.
"We hope to recover what is due and see the courts apply an appropriate penalty," he said.
Money laundering is the process of disguising the proceeds of crime so that the money cannot be linked to the wrongdoing.
HSBC, which has previously admitted to having poor money laundering controls, has been taking steps to tighten its operations.
Last year, it said that it had spent $290m on improving its systems to prevent money laundering.
At the same time, it also appointed a former US official, Bob Werner, to work as its head of financial crime compliance, a new position the bank has created.
The bank said that he will be responsible for beefing up its anti-money laundering and sanctions compliance systems.
Mr Werner was previously the head of the US Treasury's Office of Foreign Assets Control, the agency responsible for enforcing the US sanctions on countries, including Iran.

The US Justice Department is looking into claims the bank broke sanctions against Sudan, Iran, and Cuba.
In April, the bank said it had already set aside $1.1bn to cover the cost of the violations.
BNP shares fell more than 6% before recovering slightly.
In April, BNP wrote in a document: "A high degree of uncertainty exists as to the nature and amount of penalties that the US authorities could impose on the bank following completion of the ongoing process: there is the possibility that the amount of the fines could be far in excess of the amount of the provision."
If approved and if BNP admits to criminal wrongdoing, the settlement would be the largest criminal penalty in US history, surpassing oil giant BP's $4bn agreement with the US Department of Justice in 2012.
France's far-right Front National party waded into the negotiations, demanding that the French government shield the bank from such a large fine.
US regulators have recently stepped up their actions against banks that violate laws against money laundering and tax evasion, amongst other violations.
Earlier in May, Swiss bank Credit Suisse agreed to a $2.6bn penalty and admitted criminal wrongdoing in helping "tax cheats" avoid paying US taxes.
To date, the largest fine levied against a bank by US regulators for sanctions violations was the $1.9bn HSBC paid in 2012.


Question: Represent the text to find a corresponding news article that continues the story

Question: The Conservatives retained control of Suffolk County Council, increasing its number of seats from 37 to 52.

While it was a good day for the Tories, Labour saw its number of councillors fall from 15 to 11, and UKIP lost all of its 10 seats.
The Green Party lost the seat of its leader, Mark Ereira Guyer, but did win three elsewhere - building on the two it had previously.
There are five Liberal Democrat councillors and four independents.
The gain for the Conservatives means they now have a majority at the council, having previously been one short.
Suffolk County Council said 247,073 people voted in the election, a 44.19% turnout.
Colin Noble, leader of Suffolk County Council going into the election, retained his seat in Row Heath and said he was "absolutely delighted" with the results.
"We're really pleased because at the end of the day we've got a strong manifesto, we're brimming full of ideas and now what we know is we get to implement them over the next four years," he said.
The story in Suffolk mirrors what's happened nationally. The UKIP vote has been wiped out - they had 10 councillors, now they have none.
The Conservatives will have control at Suffolk County Council - they only needed more than 37 councillors, but managed to get 52.
Labour managed to hold most of its Ipswich seats but lost its deputy leader, Sarah Adams. It also suffered losses in Waveney, where it only kept one of its five divisions. There was some good news for Labour, though, as it won the seat of Sudbury - gaining it from the Conservatives. It brings the total number of Labour councillors to 11, but it did have 15.
The Liberal Democrats were hoping for a resurgence, but failed to hold all their seats - they had eight, they now have five. They lost out to the Conservatives and didn't manage to hold on to Hadleigh, which they gained in a by-election last year.
There were some surprises. The Greens took two seats from the Conservatives, one in Beccles and the other in Cosford near Sudbury. But the party's leader, Mark Ereira Guyer, lost his Bury St Edmunds seat, meaning overall it gained one seat - and now has three councillors.
Another unexpected result was the success of the independents. They all held their seats, and the West Suffolk Independent gained its first county council seat in Brandon.
But despite the smaller opposition parties making gains, it'll make little difference as the Conservative group now has the numbers to ensure its policies will get voted through.

Represent the news to retrieve its missing first sentence

Alan Hosker won the Padiham and Burnley West seat with 1,234 votes, beating the incumbent, Labour's Marcus Johnstone, with a majority of 228.
The ward was previously represented by the BNP between 2009 and 2013.
The Conservatives gained control of Lancashire County Council, which was previously under no overall control with Labour as the biggest party.
In council elections across the country UKIP lost more than 100 seats.


Question: Represent the summary to retrieve the rest of the news story with more details

Question: BBC News is looking for the biggest amateur general election nerd.

This is part of a news article. Represent it to retrieve the first (missing) sentence of the article

Do you know somebody with a stack of Vacher's Quarterly proudly on their shelf? Are you the kind of friend who can recite swing percentages when discussing polls?
What question would you put to somebody else to test their polling day trivia?
Jeremy Vine has already set tt five questions, with the answers available here, but do you have a question for Jeremy?
We will be posting your questions on Twitter, and putting them to Jeremy Vine, to sort the ballot savants from the referendum pretenders.
If you have an election brain-teaser, email it to haveyoursay@bbc.co.uk, send it to us on WhatsApp +44 (0)7525 900971 or follow us on Twitter and post your question using #bbcelectiongeek

this is part of a news article. represent it to retrieve the first (missing) sentence of the article

31 March 2017 Last updated at 14:51 BST
There have been calls to go back to the dark blue cover of old but an online design magazine is running a competition to see if there are any other ideas out there.
Adam Fleming reports for the Daily Politics.


Question: This is the first sentence of a news article. Represent it to easily retrieve the remaining few sentences of the article

Question: Once again the polls, taken as a whole, were not a good guide to the election result.

Represent the news to retrieve its missing first sentence

Over the course of the campaign the gap between the main two parties narrowed but, with one exception, the final polls all suggested a clearer Conservative lead than the actual outcome.
Having said that, it wasn't an unmitigated disaster. Every poll throughout the campaign put the Conservatives ahead - and that was indeed the result.
The final polls were fairly accurate about the Conservative and Lib Dem shares. It was Labour where they were uniformly wrong. They also overestimated UKIP and the SNP.
Survation were closest to the actual result. Kantar Public's numbers were also reasonably good.
YouGov's final poll, like most of the others, seriously underestimated Labour. Prior to that, they had been suggesting a closer race. They also had a separate seat projection model which had been indicating a hung parliament. That had been met with a lot of scepticism but, with hindsight, was pretty accurate.
In the final weeks of the campaign, the polls were often criticised for being "all over the place". It's true that they were pointing to very different outcomes.
That variation clearly made it difficult to interpret what they were saying. It's surely better, though, that they had different numbers than that they were all wrong in exactly the same way. If you're looking for consistent accuracy then opinion polls are probably not for you.
Pollsters are also sometimes accused of herding - deliberately manipulating their figures so they all say the same thing. That accusation can't be levelled at this election.
In 2015 the polls went wrong because their samples were not representative of the electorate - they contained too many Labour voters. They also failed to estimate the difference in turnout rates between different age groups - they overestimated turnout among young voters.
The pollsters who were furthest from the actual result this time were those, like ICM and ComRes, who had taken the strongest measures to try to rectify the problem from 2015. Survation made no significant changes to their methodology and came out on top.
It looks as though the errors this time were caused, at least in part, by fighting the last war.
We'll never know the exact figures for turnout among young voters - it's a secret ballot remember - but YouGov's post-election estimate puts it at 57% for 18-19 year olds and 59% for 20-24 year olds.
That's lower than for older voters but considerably higher than estimates for young voters in 2015.
We can also see that the places where the number of voters increased the most were generally those with young populations. The assumption made by some pollsters that young turnout would continue to under-perform was probably wrong.

This shouldn't come as a total surprise, since a glance at the past six months of polls show that every time it looks like Mr Trump is going to surpass his Democratic opponent in the standings, the trend reverses itself.
The American people, perhaps, could never quite get their heads around the prospect of a Trump presidency, and countervailing forces asserted themselves every time it looks like that might be a reality.
If that's the case here, then the timing may be just right for a comfortable Clinton win.
None of the polls, of course, take account of how voters are reacting to the FBI clearing Clinton of criminality on the latest batch of emails. Here's my blog on how that twist may impact the election.
Who is ahead in the polls?
48%
Hillary Clinton
44%
Donald Trump
These are the latest predictions from the number crunchers at some US media:
New York Times Upshot: Clinton has 84% chance of winning
FiveThirtyEight: Clinton has 65% chance
HuffPost: Clinton has 98% chance
Of course, the US election isn't won based on national preferences, it's a state-by-state slog to reach 270 electoral votes. The latest round of battleground polling shows there are still just enough toss-up states to allow Mr Trump to win the presidency.
To prevail the Republican would have to either clear the table when it comes to these states or post a surprise win in a place like Pennsylvania, Michigan or Virginia, where polling shows Mrs Clinton ahead.
Such a shoot-the-moon scenario is certainly possible, and it could be aided by polling that underestimates white voter turnout or overestimates Mrs Clinton's support in key constituencies like blacks and the young.
For this to become a reality, however, Mr Trump would essentially have to be perfect or polling would have to be off in a variety of disparate states that have decidedly different electorates. An error in New Hampshire polling, for instance, wouldn't mean expectations in Florida would be more likely to be wrong. A miss in Michigan would have little bearing on the fate of Colorado.
Mr Trump would also have to count on the evidence of massive Hispanic turnout in early voting not panning out when votes are counted on Tuesday night.
Heading into election day, the Clinton team has reason for cautious optimism. A Trump win at this point would have to be considered a modest (but far from unprecedented) upset.
You can follow Anthony on Twitter @awzurcher
Who will win? Play our game to make your call


Question: Represent the text to find a corresponding news article that continues the story.

Question: Russia has condemned Boris Johnson's call for demonstrations outside its London embassy as "shameful".

represent the news article to find a single sentence that could be used as a summary

The foreign secretary said on Tuesday that he would "like to see" a protest against bombings of the Syrian city of Aleppo, which are being blamed on Vladimir Putin's forces.
But Moscow, which denies the claims, accused him of "Russophobic hysteria".
And the Stop the War Coalition said protests in the UK would not "make a blind bit of difference".
And a Labour spokesman suggested people were free to protest outside the embassies of all foreign powers intervening in Syria, including the US.
The northern Syrian city of Aleppo has become the most high-profile battleground in the country's five-year civil war.
A UN relief convoy was attacked from the air last month - an action widely blamed on Russia, an ally of President Bashar al-Assad.
In an emergency House of Commons debate on Tuesday, Mr Johnson called for those responsible for strikes on the convoy and hospitals in Aleppo to face trial at the International Criminal Court.
Saying Russia risked becoming a "pariah" state, he told MPs the UK government was "taking the lead" in raising awareness of the situation in Syria.
He added: "There is no commensurate horror, it seems to me, amongst some of those anti-war protest groups.
"I would certainly like to see demonstrations outside the Russian embassy.
"Where is the Stop the War Coalition at the moment? Where are they?"
Russia's government has reacted angrily.
Its Ministry of Defence spokesman, Major-General Igor Konashenkov, said: "The Russophobic hysteria regularly whipped up by various members of the British establishment for a long time now has been quite underwhelming.
"Therefore, the frenzy that has gripped... Boris Johnson, who accuses Russia of committing every deadly sin, is a storm in a teacup full of muddy London water."
And Foreign Ministry spokeswoman Maria Zakharova told the Interfax news agency: "It is clear now what Boris Johnson meant when he said that the weapon that the West would be using against Russia was shame.
"The statement he made calling on protests in front of the Russian embassy is a shame. It is shameful.
"It is shameful for the simple reason that now it is becoming clear who is behind the so-called organisations and social movements and representatives of civil society that come out to Russian embassies on different occasions."
French foreign minister Jean-Marc Aryault, who has echoed Mr Johnson's call for the International Criminal Court to investigate Russia's actions in Syria, questioned the purpose of his counterpart's comments.
"Is it the job of a foreign minister to organise demonstrations?" he told journalists.
Air strikes on Aleppo continued on Tuesday, with at least 25 people reported dead.
The United Nations has warned that eastern Aleppo, where an estimated 275,000 people still live, could face "total destruction" within two months.
Last week, Russia vetoed a UN Security Council resolution drafted by France calling for an end to the bombing in the city.
Stop the War vice-chairman Chris Nineham said the group would not organise demonstrations outside the Russian embassy in London.
Its aim was to "make a difference to what Britain does" and what its allies do, he told BBC Radio 4's Today programme, adding: "But if we have a protest outside the Russian embassy, it wouldn't make a blind bit of difference as to what Putin does, because we are in Britain and we are in the West.
"And, not only that - a protest outside the Russian embassy would actually contribute to increasing the hysteria and the jingoism that is being whipped up at the moment against Russia."
Sir John Sawers, the former head of MI6, told Today Mr Johnson should be wary of calling for demonstrations in London.
He urged him to "recall" the storming and ransacking of the British embassy by protesters in Iran in 2011.
He added: "I don't think that would happen in Moscow, but you have to be careful about the consequences of what you call for."
A spokesman for Labour leader Jeremy Corbyn said Russia was not the only foreign power involved in the Syrian conflict and all of them needed to come together in pursuit of a negotiated settlement.
"Obviously, people are entitled and at complete liberty to demonstrate outside not only the Russian embassy, but all the other embassies of those intervening powers," he said.
"People are free to protest outside the intervening powers' embassies and there are a number of them - not just the US and Russia."

Represent the news article to find a single sentence that could be used as a summary

"Smoking kills more people than Obama," one advert spotted in Moscow says.
Dmitry Gudkov, an MP and critic of the Kremlin, posted the image saying: "I am disgusted and ashamed of what appears on the streets of the Russian capital."
It is not the first time the US president has been targeted in negative ads, amid rising US-Russia tensions.
According to the Moscow Times, a pro-Kremlin art group hung a banner of President Obama with the caption "killer" opposite the US embassy in Moscow.
And in December a major Russian supermarket chain apologised after selling a chopping board with the US president pictured as a chimpanzee.
It is not clear who was behind the latest advert, which contrasts the number of deaths from smoking to people "killed by President Obama".
"Smoking kills more people than Obama, although Obama kills a lot of people," the ad copy reads. "Don't smoke. Don't be like Obama."
Barack Obama famously gave up smoking in 2010, but admitted to "falling off the wagon" several times after entering the White House.
His wife, Michelle, later said he kicked the habit to set a good example to his two daughters.
Relations between the US and Russia have deteriorated in recent years over the Kremlin's support for Syrian President Bashar al-Assad and its role in neighbouring Ukraine, which culminated with the annexation of the Crimean Peninsula in 2014.
Last week, Russian Prime Minister Dmitry Medvedev said strains between Russia and the West had pushed the world "into a new cold war".


Question: Represent the summary to retrieve the rest of the news story with more details

Question: UK banking giant HSBC has announced it is to keep its headquarters in London.

Represent the news article to find a single sentence that could be used as a summary

Concerns about stricter UK regulations led Europe's biggest bank to launch a review into whether to move elsewhere, with Hong Kong seen as the most likely alternative.
But the bank said it had decided unanimously against the move and that London "offered the best outcome for our customers and shareholders".
The decision was seen as a vote of confidence for the UK.
The bank has had its headquarters in the UK since 1993 but makes most of its money overseas, and Asia accounts for the majority of its profit.
Douglas Flint, the chairman of HSBC, told the Today programme: "London offered the best of both worlds for us. HSBC at its heart is a bank focused on trade and investment flows.
"The UK is one of the most globally connected economies in the world with a fantastic regulatory system and legal system and immense experience in dealing with international affairs," Mr Flint said.
"The government's made very clear its commitment to ensuring that that UK remains a leading international financial centre ... We've ended up with the best of both worlds - a pivot to Asia led from London."
HSBC is understood to have paid about £30m to advisors to help it reach the decision to remain based in London.
HSBC shares rose 1.36% in Monday's trading in London to 446.4p, but have fallen 17% this year. The bank's Kong Hong-listed shares closed 4% higher on Monday.
However, analysts at Investec said HSBC's decision was "regrettable" because it faced tighter regulations and the cost of the UK bank levy.
"We see HSBC's announcement as a missed opportunity," said Investec analyst Ian Gordon.
HSBC had been paying £1bn a year through the UK banking levy before the government changed the tax last year.
Mr Flint said "it was important that there was a change in the scope of the levy".
"A levy based on an international balance sheet was a disincentive for a global group, and we made that point ever since the start of the levy. It was good to see that the scope of the levy changed to being a domestic impost, and that was important," the HSBC chairman said.
However, Mr Flint denied that HSBC had forced the government's hand in changing the banking levy.
"We had no negotiation with the government. The government was well aware of our view, and indeed the view of many other people who commented upon it, but there certainly was no pressure put, or negotiation."
He added that the regulatory regime had "not been softened".
HSBC's decision was based on "a generational view" and not on "short-term dynamics", Mr Flint said.
"It [the decision to stay] was based on a very thoughtful perspective on how economics will play out over the next 20 [to] 25 years," he said.
HSBC said that London had an "internationally respected regulatory framework and legal system" and added that it also was "home to a large pool of highly skilled, international talent".
It was therefore "ideally positioned to be the home base for a global financial institution such as HSBC".
Part of the review was considering whether the increased regulation of the banking industry in the UK - in particular the increased tax burden - warranted moving elsewhere.
But in the last Budget, the Chancellor George Osborne introduced a gradual reduction in the bank levy on balance sheets - a move which particularly affected HSBC, because of its large balance sheet.
In 2014 it paid £750m of the £1.9bn raised by the government through that particular tax.
For HSBC itself, the decision wasn't just about the tax environment in the UK.
There was also the problem of the regulatory environment in China - with the central bank causing nervousness among investors and volatility in the markets after intervening in the stock and currency markets.
Poorer news about the Chinese economy also focused minds at HSBC's Canary Wharf headquarters in London's docklands.
One interesting point to make about the decision is that whatever fears HSBC has about Britain possibly leaving the European Union, London's attraction as a financial capital was more significant.
Which raises a challenge for those who argue that businesses could quit the UK if Britain were to leave the EU.
Read Kamal in full
The board added that it had also decided to end the practice of reviewing the location of the group's headquarters every three years, and would only revisit the matter if there was "a material change in circumstances".
It stressed that Asia remained "at the heart of the group's strategy" and that it was putting "particular emphasis on investing further in the Pearl River Delta and ASEAN region".
Hong Kong's Monetary Authority (HKMA) said it respected HSBC's decision.
"The HKMA appreciates that for a large international bank such as HSBC, relocation of domicile is a very major and complicated undertaking," said Norman Chan, its chief executive.
The Treasury welcomed the move.
"It's a vote of confidence in the government's economic plan, and a boost to our goal of making the UK a great place to do more business with China and the rest of Asia," a spokesperson said.
The CBI business lobby group also said the announcement was "good news" because strong banks were "critical for the British economy".
That sentiment was echoed by the BBA, the banking industry body and TheCityUK.
In line with other banks, HSBC shares have fallen sharply this year.
The stock is down 18% since the start of the year and more than 30% from last April, when the review into where to base its HQ was first announced.
The bank will report full-year results on Monday, 22 February. It is in the process of implementing a $5bn (£3.4bn) savings drive and cutting 8,000 jobs in the UK.

In the final three months of last year, HSBC reported a pre-tax loss of $858m compared with a profit in the fourth quarter of 2014.
For the full-year, pre-tax profit was flat, up just 1% to $18.9bn (Â£13.1bn).
HBSC also confirmed that it is being investigated over its hiring practices in Asia.
Shares in Europe's largest bank fell 2.9% to 436p in mid-morning trading, hit by the unexpected loss in the fourth quarter because of write downs on the value of loans and declining income from lending.
Looking ahead, chairman Douglas Flint said: "China's slower economic growth will undoubtedly contribute to a bumpier financial environment."
Asia accounted for 83.5% of HSBC's global pre-tax profit last year.
However, Mr Flint said that he expects China "to be the largest contributor to global growth as its economy transitions to higher added value manufacturing and services and becomes more consumer driven".
The bank also said it had changed its outlook on interest rates and no longer expects the UK rate to rise in 2016, echoing Ross McEwan, chief executive of Royal Bank of Scotland, who does not forecast any move from the Bank of England until 2017.
The lender's group chief executive, Stuart Gulliver, noted the bank had seen a tough year in 2015, but that it was continuing to focus on delivering cost cutting measures announced in June last year.
"Targeted investment, prudent lending and our diversified, universal banking business model helped us achieve revenue growth in a difficult market environment, whilst also reducing risk-weighted assets," said Mr Gulliver.
Also, Mr Gulliver's pay fell by 6% to Â£7.3m because of higher costs, including the bank levy and write downs on bad loans, on which his pay is dependent.
The bank also disclosed that it is being investigated by the US Securities and Exchange Commission (SEC) in relation to the hiring of people referred by, or related to, government officials or employees of state-owned companies in Asia Pacific.
The SEC is already investigating JP Morgan over its employment of so-called princelings - the offspring of influential figures in the Chinese government and the country's elite. Goldman Sachs is also under investigation for its hiring practices in the region.
HSBC said: "HSBC has received various requests for information and is cooperating with the SEC's investigation.
"Based on the facts currently known, it is not practicable at this time for HSBC to predict the resolution of this matter, including the timing or any possible impact on HSBC, which could be significant."
The relatives of China's government officials are permitted to engage in business but are not allowed to profit from their connections.
HSBC's annual report also revealed that a monitor appointed by the US government to assess the bank's anti-money laundering and sanctions compliance programme had expressed "significant concerns" about the progress of improvement.
In 2012, HSBC was fined $1.9bn for failing to stop "drug kingpins and rogue nations" from using the bank to launder money.
As part of a five-year deferred prosecution agreement, HSBC agreed to allow a monitor to track its progress on putting in place certain compliance measures.
However, the monitor, Michael Cherkasky, found instances of potential financial crime as well as systems and controls deficiencies in the last year.
Mr Cherkasky, a former New York prosecutor, also questioned whether HSBC was on track to meet its five-year target to tighten money laundering controls.
HSBC recently announced that the bank would keep its headquarters in the UK, where they have based since 1993.
After a ten-month long investigation, HSBC said it had decided unanimously against the move and that London offered "the best outcome" for its shareholders and customers.
Mr Gulliver insisted that the bank would not review the location of its headquarters if Britain voted to leave the EU.
He added that if there was an exit, he only expected it to affect its 5,000-person global banking and markets business in the UK and forecast that 1,000 staff with roles linked to European financial legislation would have to move to Paris.
HSBC is understood to have paid about Â£30m to advisors to help it reach the decision, which was was seen as a vote of confidence for the UK.
However, some analysts said the decision to stay in London was not a good one because it meant HSBC would face tighter regulations together with the cost of the UK bank levy.
Economics editor Kamal Ahmed: Sigh of relief as HSBC stays in UK
HSBC chairman Douglas Flint on the banking giant's decision to keep its headquarters in London.
HSBC to axe up to 25,000 jobs globally in savings drive.
London-listed shares in HSBC have fallen 16% in the year-to-date and more than 25% over the last 12 months.
Last year, the bank announced thousands of job cuts, along with asset sales, as part of a major cost-cutting plan.
The lender has a global network of more than 6,000 offices in 72 countries and territories and serves some 48 million customers, according to its website.


Question: Represent the summary to retrieve the rest of the news story with more details:

Question: Eurozone leaders have broadly welcomed new proposals for Greek reforms amid hopes a deal can be struck within days to stop Greece defaulting on its debt.

Greece must repay a â‚¬1.6bn (Â£1.1bn) International Monetary Fund (IMF) loan by the end of the month. If it fails to do so, it risks crashing out of the euro and possibly the EU.
But would so-called "Grexit" actually be a disaster for Greece? Or could taking control of its own currency be the country's best way to prosperity - even if it resulted in a weakened eurozone?
Four expert witnesses spoke to the BBC World Service's Inquiry programme.
Cardiologist Giorgas Vichas runs the Metropolitan Community Clinic, a free health clinic in Athens set up by volunteer doctors.
"In the last three years, more and more of our patients are homeless, and have nothing to eat. When I told a patient who has high blood pressure that he should limit his salt intake, he replied that he eats at the church soup kitchen, and so he has no control over that.
"And when I prescribed aspirin to another patient with the normal instruction to take it half an hour after eating, he looked at me and said he hadn't eaten in three days. What people who don't live in Greece need to understand is that these are people who until recently had a completely normal life.
"Public hospitals in Greece have already run out of their funding for 2015 by June. Last month our social clinic gave medicines and supplies to ten public hospitals across Greece, because they couldn't buy them themselves.
"For us Greeks, that's the worst scenario, to stay in the eurozone under the current conditions, because the only things being produced by these policies are dead people, destitute people, and higher deficits."
Jens Bastian is an economist at the MacroPolis think tank in Greece.
"We are in uncharted territory. There is a lot of speculation going on, but we have no precedent, and we have no road map.
"Greece would have to introduce a new currency. It would immediately have to devalue vis-a-vis the euro. That would trigger inflation.
"Greece imports 48% of its food from abroad. Greece imports 80% of its energy, in particular fossil fuels. You would have pharmaceutical products that would become exorbitantly expensive, and would quickly create shortages. You would have rationing in the real economy.
"The social consequences of such a development would be major social disruption and major social inequality, which is already rising and which only would rise further and deepen the cleavages that exist in the society.
"Mitigating these effects would require financial resources. Where would Greece get that from? If you leave the eurozone, you would be a financial pariah in Europe for years to come. Greece would not be able to borrow in international capital markets.
"Grexit would not solve the underlying problems of the Greek real economy that have existed for decades, even when we had the drachma: a chronic lack of productivity, declining export capacity, and structural indebtedness.
"[Grexit] is often advocated by economists and by legal experts from outside Greece who do not have to bear the consequences of such a possible development. And my concern is for the social cohesion of this country, for the democratic glue of this society, and I do not want to face the consequences."
Frances Coppola is an independent economic commentator.
"In the short term after a euro exit, the Greek economy would look very bad indeed. In human terms, that does mean bankruptcies for small businesses; further cuts in wages; it could mean very high inflation.
"[But ] I think it's fair to say that Greece has not got from membership of the euro what it hoped. The principal effect of the single currency for Greece has been to make trading, oddly, more difficult.
"For example, you would think olive oil would be a principal export from Greece, but they've actually been overtaken by exports of olive oil from of all places, Germany. It imports raw olives, processes them, bottles the oil, and sells it more cheaply [than Greece can].
"One of Greece's major exports is actually petroleum products, refined oil. It's not feta cheese and olive oil at all. It has also historically been an important shipping source, both building and running shipping.
"It is an important trade hub for the region, and it could position itself as the trade hub for that 'Middle Eastern/Balkans gateway to Russia' region.
"Greece has a fragmented and disrupted political set up, some fair amount of corruption, a huge informal economy and this dominance of oligarchs in important sectors. They have to deal with all of that, and I don't see the EU helping them to make the institutional reforms and to eradicate corruption and break the oligarchic grip.
"The way the eurozone is going - with enforcing convergence through fiscal reform, and the commitment to austerity - actually makes it very hard to make reforms.
"One of the principal benefits of having their own currency for Greece would be to return control of their own affairs to them.
"When you join a single currency, when you use a currency that isn't yours, you give up control of your own economy. You adopt the policies of everybody using that currency, and in particular the policies of the strongest member, which in this case is Germany.
"When you start using somebody else's currency, in effect you've become a vassal state of that somebody else."
Dimitris Christopoulos is associate professor of Comparative Politics at Panteion University in Athens, and vice president of the International Federation for Human Rights.
"I'm not for Europe because I like Europe's aesthetics. I'm for Europe because Europe represents a key prudent answer to a security argument.
"For the majority of Greeks, EU membership is the formal, solemn recognition of Greece belonging to Europe. Becoming a eurozone member was part of a long transition from an unstable political regime to democracy and a consolidated rule of law.
"The fact that the EU, the Central Bank and the IMF are exercising such pressure on Greece to remain on the good path, means that the country represents high political significance.
"You have Israel, you have Lebanon, you have Syria, you have Turkey, which is not in a very safe situation today. To the north you have the whole Caucasus region which is a problem, and then of course you have Ukraine.
"You have Egypt, a dictatorship supported by the westerners in order to deal with the Muslim Brotherhood. And next you have a country which is already a failed state, Libya. Inside this triangle you have Greece. Despite its problems over the last 40 years [it has] represented a point of stability.
"If we decide to push the Greek government to the extreme of leaving the eurozone, I'm not sure where Greece will be in two or three years.
"We have had a re-emergence of the most atrocious form of far-right political extremism, because Golden Dawn is not a populist, nationalist, extremist party, it's a Nazi party. We're talking about a political ideology which is constructed around the biological differentiation of people, of humans and sub-humans. Imagine in this mess having to also deal with that.
"Exit from the eurozone [would create] political and financial instability, and when frustration rises, people turn to the far-right.
"When I speak to colleagues from the EU and other international organisations, I want to highlight the Greek history. I want to highlight the emergence of this far-right beast who is able to destroy Europe, to destroy the idea of togetherness. This is what bothers me."
The Inquiry is broadcast on the BBC World Service on Tuesdays from 12:05 GMT/13:05 BST. Listen online or download the podcast.

represent the news to retrieve its missing first sentence

Well-placed sources told BBC economics editor Robert Peston a decision to end the Emergency Liquidity Assistance (ELA) would be made by the ECB's governing council later on Sunday.
Greek banks depend on ELA funds daily.
Greek Finance Minister Yanis Varoufakis said his government would consider overnight what measures to take "to minimise the burden on our people".
Cutting the ECB lifeline could push Greece out of the euro.
Such an ECB cut would mean "Europe has failed", Mr Varoufakis told the BBC's World this Weekend.
It would mean Europe had "failed in its duty to preserve in parallel a democratic process and a monetary union", he said. "It is a dark hour for Europe."
The lenders have "not met Greece even a quarter of the way", he complained.
The government would consider "what can be done to minimise the burden on our people from Europe's refusal to grant us democratic rights".
A BBC reporter in Athens says long queues are forming at bank ATMs.
The EU-IMF bailout for heavily indebted Greece expires on Tuesday and talks have broken down.
Greek banks would find themselves in serious straits as soon as Monday if the ECB cut the ELA funding, Robert Peston says.
Greece will probably have to announce a bank holiday on Monday, pending the introduction of capital controls, he says.
It is one of the most momentous decisions the ECB has ever faced, since the euro was launched on 1 January 1999.
French Prime Minister Manuel Valls said the ECB "is independent but... I don't think it can cut off rations [for the Greeks]". He said "it's the Greek nation that is suffering".
Capital controls are restrictions on how much customers can withdraw from banks. Until now, the Greek government has signalled that it does not want to impose such controls.
In recent weeks, Greeks have withdrawn billions of euros from banks.
A Greek withdrawal from the euro - known as "Grexit" - is not inevitable, says Robert Peston, as the eurozone did resolve Cyprus's banking crisis in 2013 and the country stayed in the euro.
Capital controls were imposed on Cypriot banks, and remained in place for a long time - the last restrictions were only lifted in April this year.
Greece's situation is more difficult, our editor reports. Capital controls are seen as an important step towards leaving the euro, because the single currency's rules require free movement of capital.
But Greece could remain in if its government and the bailout providers - the EU and IMF - can restart constructive negotiations, he reports.
A country on the brink - chief correspondent Gavin Hewitt writes:
It is the most important decision in the ECB's history.
A withdrawal of funding could plunge Greece into chaos and yet the ECB cannot break its own rules by funding a banking system where the country is heading for a default.
Alexis Tsipras has gambled both with his future and that of his country. He committed Greece to a vote, but only after the current bailout has expired, so leaving Greece vulnerable and exposed.
Read Gavin's analysis in full here.
What are the Greek papers saying?
On Saturday eurozone finance ministers - the Eurogroup - refused to extend Greece's desperately-needed bailout beyond Tuesday.
The ministers blamed Greek Prime Minister Alexis Tsipras's surprise call for a referendum on 5 July on the bailout conditions.
The final €7.2bn (£5bn; $8bn) of Greece's second bailout has been frozen since last summer, as lenders demanded more Greek progress on deep economic reform.
Without more lending to Greece the country will default on a €1.6bn repayment due to the IMF on Tuesday.
Under the rules governing the euro, the ECB's emergency lifeline could not be continued if the ECB considered Greek banks to be insolvent.
Robert Peston says that with Greece no longer participating in a formal rescue programme, the solvency of the Greek state would be in doubt, as it is so intimately linked to the banks' solvency.
Mr Tsipras's leftist Syriza government rejects the bailout terms, after five years of lender-imposed austerity that has increased Greek unemployment and cut pensions and welfare benefits.
Greece has endured five years of recession, and total output (GDP) has shrunk by 25%.


Question: This is the first sentence of a news article. Represent it to easily retrieve the remaining few sentences of the article

Question: Individuals could be at risk of running short of retirement funds after cashing in their pension pots, analysis of overseas schemes suggests.

The Social Market Foundation, a left of centre think tank, studied policies in Australia and the US that are similar to the UK's pension reforms.
It found a significant proportion of people withdraw funds at an unsustainable rate.
In the UK, thousands have cashed in their pension pots since April.
The new rules, which came into force in April, allow pension savers to cash in their pension pots from the age of 55.
This is one of a number of options for savers. In doing so, they pay no tax on the first 25% of these funds, but pay the normal rate of tax on the rest.
Figures from HM Revenue and Customs (HMRC) found that 146,000 people cashed-in pension pots in the six months since April, withdrawing a total of Â£2.7bn.
Separate data, recorded slightly differently, from the Association of British Insurers suggested that Â£2.5bn was withdrawn over the same period in 166,700 cash lump sum payments, with an average withdrawal of just under Â£15,000.
Research by financial firms indicates that the funds are being used to pay off debt, upgrade the car or go on holiday.
The Social Market Foundation warned that evidence from overseas revealed a danger of pensioners spending money too quickly.
It said four out of 10 Australians with pension savings spent them all by the age of 75, while Americans typically withdrew at an unsustainable rate of 8% a year.
The think tank is urging the government to give older people a mid-retirement financial health check, to assess how fast they are using up their money.
Early withdrawal of funds provides a tax income boost for the Treasury - it is expected to take double the amount it predicted during the first year of reforms.
However, if pensioners use up savings, the eventual effect is an increased reliance on benefits and the state - a long-term cost to the Treasury.
Providers suggest that people are taking relatively safe approach to retirement savings.
"It is clear that people are taking a sensible approach and considering how they will pay for their retirement," said Yvonne Braun, of the ABI.
"However, the figures also show that ensuring people save enough for retirement remains our key challenge. With life expectancy increasing and final-salary pension provision declining, we must now turn our attention to helping customers grow bigger pots."
Tom McPhail, head of retirement policy at Hargreaves Lansdown, said: "For most retiring investors, a mix and match strategy will work best, using a combination of state pension, annuity purchase and drawdown."

The Pension Tracing Service will have its headcount tripled to 49 by April.
Last year, the service was contacted 145,000 times - double the number of contacts it dealt with in 2010.
It helps people to find providers of pensions they have lost contact with, often after switching jobs.
Estimates by the National Association of Pension Funds suggest that there could be as many as 50 million dormant and lost pension pots by 2050.
Pensions Minister Steve Webb said: "Whilst we have plans to help people combine their pension pots in future when they change jobs, there are still too many scattered and lost pensions.
"We are working hard to make sure people get what they are entitled to."
Jill Scott, operational manager at the PTS, pointed out that recovering this money can help people enter retirement "in a much better position".
"While it may sound strange, losing track of a pension is easily done, as people tend to move around the jobs market far more frequently than might have been the case in the past," she said.
From April pension holders will also be able to access the government's new "pension wise" service, which offers guidance to people over 55 about how they can make the most of the new pension freedoms which will come into force the same month.
Changes announced by George Osborne last year will mean that around 300,000 people a year will be able to access their defined contribution (DC) pension savings on demand, subject to their marginal tax rate in that year.
It replaces the current system in which people are directed towards a retirement annuity.
Concerns were raised earlier this month on Radio 4's Money Box that the new advice service will not have enough staff to deal with the demand expected when the new rules come into force in April.


Question: Represent the summary to retrieve the rest of the news story with more details.

Question: Egyptian President Mohammed Morsi has ordered the military to maintain security and protect state institutions in the run-up to a controversial referendum on a new constitution.

The army has also been given the power to arrest civilians.
Mr Morsi has tried to calm public anger by annulling a decree giving him huge powers, but rejected a call to scrap the 15 December constitutional vote.
Opposition leaders called for protests on Tuesday against the referendum.
The opposition was "not aiming at toppling the president" but wanted a better constitution, former Foreign Minister Amr Moussa told the BBC.
Islamist groups have said they will hold counter demonstrations, raising fears of further bloody clashes on the streets of the Egyptian capital.
In another apparent concession, the president suspended a big tax increase on the sale of a variety of goods including soft drinks, cigarettes and beer.
The decision was carried in a statement that appeared on Mr Morsi's Facebook page in the early hours of Monday, state-owned al-Ahram newspaper reported.
As tension increased before Saturday's referendum, Mr Morsi ordered the military to maintain security "up to the announcement of the results from the referendum", AFP news agency reports.
The BBC's Jon Leyne in Cairo says the step will raise fears that Egypt is moving back towards military rule.
Under the new presidential decree, the military is asked to co-ordinate with the police on maintaining security and is also entitled to arrest civilians.
The police have been seen as weakened since the fall of former President Hosni Mubarak and failed to intervene when anti-Muslim Brotherhood protesters ransacked the Islamist movement's Cairo headquarters last week, correspondents say.
Jeremy Bowen's 10 key moments
Postcards from the Arab Uprising
Arab Uprisings: Special report
An increased military presence was visible on Monday close to the presidential palace, which has been the focus of opposition demonstrations.  The army has sealed off the area with concrete blocks.
It is not yet clear whether the opposition will boycott Saturday's referendum. However, a group of senior judges announced on Monday that they would be prepared to oversee the vote, on certain conditions.
Votes in Egypt are traditionally supervised by the judiciary but the 22 November presidential decree led thousands of judges to go on strike.
Now, with the decree rescinded, the State Council Judges' Club has agreed to oversee the vote as long as pro-Morsi supporters call a halt to a sit-in outside Egypt's Supreme Constitutional Court.
The court suspended work on 2 December, citing "psychological pressure" from Islamists who had prevented a meeting on a draft of the new constitution. The protesters had wanted to block a ruling on the legality of the document.
The opposition argues that the constitution was drafted by an assembly dominated by Mohammed Morsi's Islamist allies.
In a statement after talks on Sunday, the opposition National Salvation Front said it would not recognise the draft constitution "because it does not represent the Egyptian people".
"We reject the referendum which will certainly lead to more division and sedition," spokesman Sameh Ashour said.
In a BBC interview, one of the Front's main leaders, Amr Moussa, insisted they were not "aiming at doing anything that would lead to the disintegration of the state".
"Why should we make the people swallow a constitution that could have been much better and should have been much better?"
On Sunday, hundreds of opposition protesters protested against the referendum outside the presidential palace.
By Jon LeyneBBC News, Cairo
Many Egyptians are furious that their lives have not got better since the revolution.
They point to a lack of reform, with no economic progress, no attempt to cleanse the notoriously brutal and corrupt police force, let alone any success in sorting out Egypt's many other problems, such as the piles of rubbish on the streets, the terrible traffic, and the filthy and polluted environment.
As for President Morsi, he is fighting a battle on two fronts.
While many opponents object to the Islamic tendencies in the new constitution, he is also under enormous pressure not to give ground to the liberals.
No easy way out of Egypt crisis
They chanted anti-Muslim Brotherhood slogans and held up banners reading slogans such as "Morsi, hold back your thugs" and "The people demand the fall of the regime".
But Mohamed Soudan, foreign relations secretary of the Muslim Brotherhood's Freedom and Justice Party, said Mr Morsi was constitutionally bound to go ahead with the vote because the date had been announced by the constituent assembly.
The president says he is trying to safeguard the revolution that overthrew Hosni Mubarak last year, but his critics accuse him of acting like a dictator.
Mr Morsi's decree of 22 November stripped the judiciary of any right to challenge his decisions and triggered violent protests.
Although the decree has been annulled, some decisions taken under it still stand.
The general prosecutor, who was dismissed, will not be reinstated, and the retrial of former regime officials will go ahead.

This is part of a news article. Represent it to retrieve the first (missing) sentence of the article

Spokesman Sameh Ashour said the decision was taken because of concerns the polls would not be free and fair, AFP news agency reported.
It comes days after President Mohammed Morsi announced the timing of the elections, to be held over four dates.
Judges dissolved the previous assembly, saying polls were unconstitutional.
The first round of voting in Cairo and four other provinces is due to be held on 22 April.
In the last elections, in January 2012, Islamist parties won an overwhelming majority, with the Freedom and Justice Party of Mr Morsi's Muslim Brotherhood movement taking the biggest share.
The lower house was dissolved in June after the Supreme Constitutional Court ruled that one of the laws under which the elections were fought was not legitimate.
By Yolande KnellBBC News
The National Salvation Front (NSF) is a coalition of mainly liberals and leftist parties. Its decision not to join the parliamentary election means the contest will be largely fought between Islamist groups - the Muslim Brotherhood of President Mohammed Morsi and more conservative parties like the Salafist Nur.
The Front's intention is to try to delegitimise the vote.  It also draws attention to the polarisation of Egyptian politics since the ouster of President Mubarak two years ago.
This announcement does not come as a great surprise.  Two days ago Mohamed ElBaradei, coordinator of the NSF, told the BBC that his party would "not participate in a sham poll".
The umbrella group has been demanding changes to the elections law as well as the formation of a national unity government and amendments to the new constitution.
Egypt is sharply divided between Islamists and their liberal and secular opponents and a boycott of the polls threatens to deepen the split, say correspondents.
Mr Morsi announced new polls last weekend. NSF leader Mohamed ElBaradei swiftly called for a boycott, branding fresh elections an "act of deception".
Mr Ashour said the NSF would not contest the polls under an election law which critics said favours Islamists.
"There can be no elections without a law that guarantees the fairness of the election process and a government that can implement such a law and be trusted by the people," he said in a televised news conference.
He said the NSF had unanimously decided to endorse Mr ElBaradei's call.
Mr Ashour said the alliance would also stay away from a meeting to promote national dialogue called by President Morsi, describing it as an insult to protesters killed in recent clashes.
More than 70 people were killed in violence between security forces and protesters following the second anniversary of the revolution which forced Hosni Mubarak from power.


Question: Represent the text to find a corresponding news article that continues the story

Question: After a week of three wins in six days, Braintree Town have endured another series of matches on a Saturday, Tuesday and Thursday in the Conference Premier.

Not only that, the defeat at Gateshead, win at Southport and draw at Halifax have taken in a combined 1,374 miles.
Defender Dean Wells, 28, like most of his team-mates, works as well as plays, and he has combined his job as a school caretaker with the Iron's push for the play-offs.
Here he talks to BBC Essex and gives is his week in his own words.
"I get a 6.30 alarm call from my little boy waking up to be fed. I pick up the gaffer Alan Devonshire at 7.15 before we meet the coach in Peterborough and we're in Gateshead five hours later.
"I play the full 90 minutes. The workrate of the lads, considering the number of games we've had and the travelling, is superb.
"For the first couple of hours on the coach back everyone's quiet. You have to get your head around the loss. But then the boys have a bit of banter and you have to get on with it.
"I roll into my house at about 10 past 11. I'm a massive Brentford fan, so I stay up to watch the Football League Show."
"It's Mother's Day, so I go and see my aunt who has brought me up since I was four.
"I got a bit of rest between 12 and two in the afternoon, had a little sleep and then caught some of the Liverpool versus Tottenham game."
"I'm up for seven to get Joe, the eldest of my two kids, ready for school. Then I'm at the gym for a couple of hours, before I go to work from two until seven.
"I'm a school caretaker at a local primary school in Isleworth. Last season I was doing 36 hours a week, but I've dropped it to 25 hours to fit it around the football.
"It can be anything from litter picking to fixing things in the classroom. It's not too bad. It's the joy of part-time football."
"It's the day from hell. I've never had a day like this.
"After finishing work at seven last night, I'm back in the school for seven this morning. For an away game I usually get a break after work - not today.
Heading into their game against Aldershot on Saturday, 22 March, Braintree were 13th in the Conference Premier.
Six games in 13 days later - and 13 points to boot - has seen them fly up the table to fourth place.
The Iron still have one game in hand on the teams below too.
"I'm superstitious and I like to pack my bag the day of the game, so I couldn't do it last night.
"I'm supposed to finish work at 12, but I ask to leave 10 minutes early to pick my lunch up from my aunt's - she's a better cook than my missus.
"I have to be at the gaffer's for 12.15 and we drive to Corley Services on the M6 to meet the coach.
"To be honest I was more tired driving up than back, because after such a good win you soften the blow a bit.
"Normally I'd get some sleep on the coach on the way back but you're still buzzing from all the sports drinks.
"I get in at half-past three. I'm in bed 15 minutes later."
"I got a decent night's sleep. Six or seven hours. Then it's off to the gym to see how the legs are getting on.
"Working part-time makes the recovery work hard. There's no going in for a warm down or a day off. One of the boys was in at five last night and up at eight for work.
"We get paid money though - it's part of the job.
"Luckily it's parents' evening at the school so my boss has let me come in an hour late, so I'm not in until three. It's off to my aunt's first for some healthy food to repair my body.
"It was Joe's parents' evening yesterday and he got a good report - so I found enough time to tell him 'well done'.
"He said 'well done on the result. Are the play-offs possible?' I said 'We hope so, but we're taking each game as it comes'.
"I haven't seen my six-month-old at all this week. It's not nice, but I'll make up for it when the fixtures are done and dusted."
"Considering the week we've had, I feel quite good. If we lose tonight it might be a different story though.
"I'm a bit stiff but once you start warming up you're fine.
"If we were in mid-table and just going through the motions, you could be disheartened. But the position we're in, we can't afford to have those thoughts.
"The motto at the moment is 'get on with it'. It's about a four-and-a-half hour journey home - so bed at about three.
"Then it's back up for work in the morning."

Gary Deegan's late dismissal in Saturday's 1-1 draw with Swindon Town was their third in just five matches.
On top of a season's haul of 23 yellow cards, it adds up to the worst disciplinary record in League One.
"I wouldn't say we're a dirty team in any way, shape or form. I wouldn't say we were overly physical," said Mellon.
"It's just the way things are going for us. We're being punished for every foul we make at the minute.
"We haven't got any for dissent and that's something," he told BBC Radio Shropshire. "But a lot of the bookings are all for nothing more than what you probably see at any other time as just being a free-kick.
"That needless first booking puts you under a lot of pressure if you're a player who makes tackles, or is expected to have physical contact. The next challenge you make, if it's deemed to be a foul, then you will be sent off.
"Everything I'm saying is probably getting used as an excuse, so I've got to be careful about what I say, but that's the way the game's going."
At least Mellon can feel encouraged by the reformed character of one of his midfield players, 31-year-old Scotsman Ian Black.
Last season, he had the worst record in League One, being sent off twice and booked 13 times. But he has only been booked twice this time round - and, on each occasion, he compensated with a goal.
Shrewsbury's poor home form continued on Saturday as they failed to win in front of their own fans for the fifth time in six League One games this season.
That comes on the back of last season's efforts, when Town won only five of their 23 League One home games, picking up 30 of their haul of 50 league points on their travels.
In that time, the Town have twice upset high-flying Championship sides on their own patch - Sheffield Wednesday earlier this year in the FA Cup fourth round and Huddersfield Town in this season's EFL Cup first round.
Yet only two teams in all four divisions have won fewer home games and recorded fewer home points since the start of last season - Newport County and Aston Villa.
Shrewsbury now face the comparative respite of three straight games away from the Greenhous Meadow - but they are at League One leaders Scunthorpe in the EFL Trophy on Tuesday, second-placed Bradford City next Saturday, then at local rivals Walsall the following weekend.
Meanwhile, Shrewsbury have had summer signing Ryan McGivern and promising youngster Dom Smith called up for under-21 international duty next week, by Northern Ireland and Wales respectively.


Question: Represent the text to find a corresponding news article that continues the story!

Question: Hundreds of jobs are set to be lost after Texas Instruments (TI) announced a phased closure of its electronics plant in Greenock, Inverclyde.

The global semiconductor company said it planned to move production to "more cost-effective" sites in Germany, Japan and the US over the next three years.
It does not expect any job losses before late 2017.
The Scottish government said it would "work closely" with TI to help secure a long-term future for the Greenock site.
About 365 people currently work at the Greenock facility.
The jobs affected will be in manufacturing, engineering, support and management.
In a statement, TI said the decision had been taken with its global operations in mind.
The company stated: "Our employees have done everything they can to keep the site cost-competitive, and we strongly considered ways to improve the site's efficiency, such as upgrading or expanding the facility.
"However, even with a considerable investment, TI's factory in Greenock would be far less efficient than our other larger, more efficient fabs (fabrication plants), which have open capacity available to absorb what's produced in Greenock.
"As part of this process, we are attempting to sell and transfer the facility as an on-going manufacturing operation (manufacturing related jobs, equipment, land and building).
"We have contracted with Atreg, a company that specializes in selling manufacturing properties, to help us with this.
"We are just at the proposal stage, and ending manufacturing operations is a lengthy process.
"If the plant closes, we expect it to take our Greenock employees as long as three years to transfer production to our other sites in Freising, Germany, Aizu, Japan and S. Portland Maine.
"We do not anticipate any job losses associated with the factory to happen any sooner than late 2017.
TI Scotland site manager Gerry McCarthy added: "Decisions like this are never easy, and we don't make them lightly.
"While the rationale for moving production out of our Greenock fab makes good business sense, we understand the impact it could have on our employees and the community.
"This is certainly not a reflection of the performance or commitment of our people but due to the efficiency of the site itself.
"We recognize this is difficult news, and our focus right now is on our employees and to ensure they have all of the information they need as we move forward."
Scotland's Business Minister Fergus Ewing said he was "disappointed" at the news.
He said: "This is a blow to the local community and will be a very anxious time for employees and their families.
"The Scottish government has been in touch with Texas Instruments and we will continue to work closely with the company to do all we can to secure a long-term future for the 365 jobs and manufacturing at the site.
"In addition, Scottish Enterprise is seeking an urgent meeting with local management.
"Should any redundancies proceed, the Scottish government's PACE initiative stands ready to support any affected employees.
"Through providing skills development and employability support, PACE aims to minimise the time that individuals affected by redundancy are out of work."
Inverclyde Council leader Stephen McCabe described the move as "a stunning blow" to the Scottish economy.
He said: "This announcement requires a significant response from local and national agencies.
"I am announcing the setting up of a dedicated task force and will be extending an invitation today to the Scottish government, their national agencies, local councillors in the area, our regional and constituency MSPs and our MP.
"It is time to once again stand shoulder to shoulder, as we did over the highly-successful Fergusons task force, and secure a future for this skilled workforce.
"We must also work together to ensure that national resource makes its way to Greenock to achieve that endeavour.
"I will also be seeking an urgent meeting with top level management at Texas Instruments."

SPS Technologies is planning redundancies at its site on Troon Industrial Estate, Barkby Road, Leicester, according to the Unite union.
It follows news earlier this month of nearly 600 job losses at Mark Group Ltd in Leicester.
The Unite union described the proposals as "devastating".
Mark Pettifer, from the union, said it is working with the company to avoid compulsory redundancies.
He added there could also be a knock-on effect to local firms in the company's supply chain.
SPS Technologies, which makes parts for the aerospace industry, is yet to comment on the proposed job losses.
Mark Group Ltd went into administration on 8 October, with the loss of more than 570 jobs at its headquarters in Beaumont Leys.


Question: this is the first sentence of a news article. represent it to easily retrieve the remaining few sentences of the article

Question: Sherwood Schwartz, creator of popular US television shows Gilligan's Island and The Brady Bunch, has died, aged 94.

The two shows, while panned by critics, are seen as an iconic and enduring part of American popular culture.
Gilligan's Island, which ran from 1964 to 1967, was about seven travellers marooned on a Pacific island.
The Brady Bunch (1969 to 1974) was about a clean-cut, attractive family formed by the marriage of a widow and widower and their six children.
Analysts say the shows were hit in part because they presented a wholesome image of America during a time of social upheaval.
Both programmes have endured on countless television repeats, influencing generations of children in America and beyond who never saw them on the original run.
Mr Schwartz conceived of the idea for The Brady Bunch in 1965 after reading that one-third of American households at the time included a child from a previous marriage.
"I realized there was a sociological change going on in this country, and it prompted me to sit down to write a script about it," Mr Schwartz told the Los Angeles Times in 2000.
He later said the show resonated with Americans because "it dealt with real emotional problems: the difficulty of being the middle girl; a boy being too short when he wants to be taller; going to the prom with zits on your face".
Mr Schwartz also said he planned Gilligan's Island, about a sea captain and his assistant, a science professor, a farm girl, a buxom movie star and a posh couple, as a social statement.
"It's one world, and we all have to learn to live with each other," he said in 1996.
Mr Schwartz was born in 1916 in New Jersey and grew up in Brooklyn, New York.
After earning a degree in biological science, he began writing jokes for comedian Bob Hope, and eventually turned to television.
"I was faced with a major decision - writing comedy or starving to death while I cured those diseases. I made a quick career change," he said in 2008, when he was awarded a star on Hollywood's Walk of Fame.

His wife, Louise, said he died at a care home in Newbury Park, California, on 7 July.
Conley, who starred in The Waltons for more than 10 years, had been suffering from dementia.
He landed the role of the Jefferson County general store owner when the series started in 1972.
The actor spent most of his on-screen time opposite Ronnie Claire Edwards, who portrayed his bossy wife Corabeth Walton Godsey.
Born in Buffalo, New York, in 1928, Conley moved to California to pursue an acting career after serving in the army during the Korean War.
He had bit parts in the 1960s series Green Acres and The Beverly Hillbillies before he joined The Waltons.
He published his autobiography, Ike Godsey of Walton's Mountain, in 2009.


Question: represent the summary to retrieve the rest of the news story with more details

Question: All pictures are copyrighted.

A selection of your pictures of Scotland sent in between 20 and 27 January. Send your photos to scotlandpictures@bbc.co.uk or our Instagram at #bbcscotlandpics

Represent the news article to find a single sentence that could be used as a summary.


Question: Represent the summary to retrieve the rest of the news story with more details

Question: New plans to improve treatment for children and young people with cancer have been outlined by Scotland's chief medical officer.

More than 300 people aged under 25 are diagnosed with the disease in Scotland every year.
Dr Catherine Calderwood said she wanted to ensure that children were seen by "the right experts in the right place".
She added that they should be able to access to "after care" services close to their family home.
Speaking to BBC Radio Scotland, Dr Calderwood said: "We want children to be seen by the right experts in the right place and we want them then to have opportunities as far as possible to participate in cancer clinical trials.
"Those are often the way that we can develop our medicines for cancer but also it often gives an opportunity for trial of new treatments for children.
"So we want as many children to be seen where the expertise lies but also to be treated by an expert team."
She said that approximately 150 children a year were diagnosed with cancer in Scotland.
About 180 young people aged 16-25 receive similar diagnoses.
She added: "The plan will also have children being able to be cared for, for their after care, closer to their own homes.
"So it doesn't mean children moving and having to stay away from family and friends and their usual activities."
The move has been supported by Cancer Research UK.
Spokesman Gregor McNie said: "We all know that the support networks and the holistic needs of someone who's ill with any disease are always best served close to home.
"So what this strategy tries to do is strike the balance of getting the specialist care from the very best at what they do but the wider care being as close to home as possible."

Dr Frank Atherton said he wants to make sure everyone in Wales has the same opportunities.
A Public Health Wales report said more needs to be done to tackle inequalities which lead to people living shorter lives in poorer parts of Wales.
Dr Atherton took up the post on 1 August, replacing the retiring Dr Ruth Hussey.
He said even though there are some improvements in health experiences and outcomes in Wales, "we can't be complacent" as "health indicators lag behind those in England".
Originally from Lancashire, Dr Atherton left his role as deputy chief medical officer of health in Nova Scotia, Canada, to come to Wales.
He is responsible for providing independent professional advice to the Welsh Government.


Question: Represent the summary to retrieve the rest of the news story with more details

Question: Scotland will play their first home futsal international on Wednesday evening.

The Scots meet Gibraltar in Perth in the five-a-side version of the game, which is credited with cultivating the intricate skills of Lionel Messi, Cristiano Ronaldo and Neymar.
The game is growing in popularity in this country and national coach Mark Potter is hopeful it can benefit the wider Scottish game.
"The ultimate aim would be to develop players who can make Scottish football clubs more successful in Europe," Potter told BBC Scotland.
A key difference between futsal, which originated in Uruguay in the 1930s, and the brand of five-a-side traditionally played in Scotland is the smaller, heavier ball used, which helps players master control and touch.
"I think the player development and the skill levels required provide a good synergy with the outdoor game, especially now when the entertainment levels expected of the top players are higher than they used to be," added Potter.
"Xavi, Iniesta, Messi and Ronaldo have all attributed their skills to playing futsal as youngsters. Brazil have many thousands of players who don't play any football until 15, 16 - they grow up playing futsal - and Brazil are recognised as producing some of the most skilful players in the world.
"There's no reason to suggest a programme that starts now couldn't produce world-class skill in 10, 15, 20 years - there's no question this is not going to be an overnight fix or that futsal is the panacea for all things that ail the sport.
"If it can help and produce one player then perhaps it's worth pursuing."
The national futsal team, which was only formed last year, now comes under the Scottish Football Association's Performance umbrella, headed by Brian McClair.
That, according to Potter, "would suggest the performance department sees futsal as having its own niche. By providing an aspirational forum for young players to grow into, hopefully we attract more people to the sport.
"If they can come and learn skills that make them more rounded football players and they can play for the 11-a-side team, that would be the ultimate aim."
Almost 700 adults play in six futsal leagues across the country, while the first internationals were played last year in the preliminary round for futsal's own version of Euro 2016.
The fledgling Scots team were beaten 13-0 by Sweden and 6-1 by both Israel and Armenia and while Gibraltar are footballing minnows, Potter warns they are "considerably ahead of us" in futsal terms.
"They've been playing futsal for a lot longer than we have in Scotland. The vast majority of the squad will play in the lower leagues in Spain and are therefore a considerable challenge," he added.
"We go to the next European Championship preliminary round in January 2017. We need to play games, we need to develop the squad and allow them to play against better opposition."
The squad, which features the former Hibernian player Ross Chisholm and Scott Chaplain, the ex-Albion Rovers midfielder, takes on Gibraltar on Wednesday and Thursday evening at the Bells Sports Centre in Perth.

Represent the news to retrieve its missing first sentence

Gareth Furlong scored twice as Wales sealed a semi-final spot with an unbeaten group campaign after previous wins against Czech Republic (2-1) and Switzerland (9-0).
The finalists will both be promoted to Championship I so victory for Wales in their semi-final on Friday will guarantee their elevation.
The final will be held on Saturday.


Question: This is the first sentence of a news article. Represent it to easily retrieve the remaining few sentences of the article

Question: Queens Park Rangers' three-year battle with the English Football League over their Financial Fair Play sanction is due to be resolved next month.

An arbitration panel will determine if the EFL were within their rights to lodge a heavy fine against the London club for exceeding spending limits.
The EFL have never said what fine they planned to impose after QPR's promotion to the Premier League in 2014.
However, it was anticipated at the time it could be as much as £58m.
QPR were limited to making losses of £8m for the season in question. Their actual loss was £9.8m, but owner Tony Fernandes and other shareholders also wrote off £60m in loans as an "exceptional item".
The Loftus Road club were relegated back into the Championship after one season.

It is understood that three parties are interested in buying Wanderers from current owner Eddie Davies.
Banker Roger Tamraz, Bolton Wanderers Supporters Trust and a consortium led by Dean Holdsworth are in the running.
The Championship club are scheduled to appear in the High Court on Monday over an unpaid tax bill of around £3m.
Bolton could face the threat of a winding-up order from Revenue & Customs if they fail to pay their tax bill, but avoided an immediate order in January before their case was adjourned until 22 February.
The Trotters are £172.9m in debt and currently under a transfer embargo for breaching Financial Fair Play rules.


Question: This is the first sentence of a news article. Represent it to easily retrieve the remaining few sentences of the article

Question: Bermuda international winger Reggie Lambe scored the only goal of the game as Carlisle condemned Plymouth to a third straight defeat this season.

This is part of a news article. Represent it to retrieve the first (missing) sentence of the article

The Pilgrims staged a late rally in vain after Carlisle had dominated for the first hour, with a man of the match display from Lambe as the home side held out well in injury time against the side that did the league double against them last season.
Carlisle's brisk opening had Plymouth on the back foot and Danny Grainger, finding space to come forward on the left, fizzed one 30-yard shot narrowly wide of Luke McCormick's left-hand post.
The defender was in action again when crossing accurately for Michael Raynes to direct a header just over from six yards.
Carlisle went ahead in the 37th minute when Plymouth's defence failed to clear another dangerous Grainger centre and Lambe drilled home a low right-footed shot from 15 yards for his second league goal of the season.
A pacey run and cross by Lambe almost set up Shaun Miller as Carlisle attempted to consolidate their superiority after the break.
Plymouth came more into the game in the later stages and ex-Carlisle loanee Jake Jervis, on as a substitute, might have done better with a 75th-minute header which flashed over the bar.
Grainger then came to the home side's rescue with a goalline clearance when Gary Miller looked sure to equalise for Pilgrims.
Report supplied by the Press Association.
Match ends, Carlisle United 1, Plymouth Argyle 0.
Second Half ends, Carlisle United 1, Plymouth Argyle 0.
Michael Jones (Carlisle United) wins a free kick in the defensive half.
Foul by Jake Jervis (Plymouth Argyle).
Corner,  Carlisle United. Conceded by Yann Songo'o.
Corner,  Carlisle United. Conceded by Luke McCormick.
Connor Smith (Plymouth Argyle) is shown the yellow card for a bad foul.
Jamie Devitt (Carlisle United) wins a free kick on the left wing.
Foul by Connor Smith (Plymouth Argyle).
Foul by Luke Joyce (Carlisle United).
Ryan Donaldson (Plymouth Argyle) wins a free kick in the attacking half.
Tom Miller (Carlisle United) wins a free kick in the attacking half.
Foul by Connor Smith (Plymouth Argyle).
Corner,  Plymouth Argyle. Conceded by Nicky Adams.
Attempt blocked. Gary Miller (Plymouth Argyle) right footed shot from the centre of the box is blocked.
Attempt saved. Jake Jervis (Plymouth Argyle) left footed shot from the left side of the box is saved in the centre of the goal.
Substitution, Carlisle United. Jason Kennedy replaces Reggie Lambe.
Danny Grainger (Carlisle United) wins a free kick in the defensive half.
Foul by Jake Jervis (Plymouth Argyle).
Attempt blocked. Jabo Ibehre (Carlisle United) right footed shot from the centre of the box is blocked.
Corner,  Carlisle United. Conceded by Yann Songo'o.
Attempt missed. Jake Jervis (Plymouth Argyle) header from the centre of the box is high and wide to the right.
Corner,  Plymouth Argyle. Conceded by Reggie Lambe.
Substitution, Carlisle United. Jamie Devitt replaces Charlie Wyke.
Substitution, Plymouth Argyle. Ryan Donaldson replaces Oscar Threlkeld.
Substitution, Plymouth Argyle. Jake Jervis replaces David Goodwillie.
Substitution, Carlisle United. Jabo Ibehre replaces Shaun Miller.
Foul by Shaun Miller (Carlisle United).
Yann Songo'o (Plymouth Argyle) wins a free kick in the attacking half.
Danny Grainger (Carlisle United) is shown the yellow card for a bad foul.
Graham Carey (Plymouth Argyle) wins a free kick in the defensive half.
Foul by Danny Grainger (Carlisle United).
Foul by Shaun Miller (Carlisle United).
Gary Miller (Plymouth Argyle) wins a free kick on the left wing.
Foul by Danny Grainger (Carlisle United).
James Spencer (Plymouth Argyle) wins a free kick on the right wing.
Foul by Reggie Lambe (Carlisle United).
Nauris Bulvitis (Plymouth Argyle) wins a free kick in the attacking half.
Danny Grainger (Carlisle United) wins a free kick in the attacking half.
Foul by James Spencer (Plymouth Argyle).

Former Torquay United winger Niall Thompson scored a hat-trick, taking his tally to five goals in his last four matches.
Les Afful was also on target for City, who move up two places to 16th in the sixth tier of English football.
Truro's last victory came on 24 September, when they won 2-1 at Wealdstone in National League South.


Question: this is the first sentence of a news article. represent it to easily retrieve the remaining few sentences of the article.

Question: Train operators have been working to fully restore services after heavy rain caused disruption in Glasgow and Edinburgh.

Parts of Scotland saw rain in the last two days which was above average for this time of year, resulting in almost 30 flood warnings and 14 flood alerts.
It has also been reported that Glasgow saw one of the wettest 24-hour periods since records began.
More rain has been forecast over the next few days.
Showers may ease off, but the Met Office said on-going disruption was likely, because of flooding from standing water and from swollen rivers and streams.
Problems overnight and into Thursday morning forced ScotRail to reduce service between Glasgow Queen Street and Edinburgh Waverley.
And there was disruption between Edinburgh and North Berwick and Glasgow Queen Street and Dunblane.
BBC - Travel News
Scotland-wide traffic updates
Traffic Scotland
National Rail Enquiries
ScotRail
BBC Weather
Sepa flood warnings
ScotRail managing director Steve Montgomery urged travellers to check the operator's website for the latest information, adding: "We ran 86% of services across Scotland this morning, despite extraordinary rainfall levels in some areas."
Amid forecasts of further rain, Transport Minister Keith Brown asked the public to check before they travelled.
"Heavy rain overnight and today has caused some disruption to rail services this morning with some delays and cancellations but Network Rail and ScotRail are working to reduce the disruption and expect the services to improve throughout the day," he said.
Elsewhere, in Rosyth, water was pumped from homes and a school at Park Road.
There were also reports of small problems in Wellbank near Dundee, and at Ceres and Kilmany near Cupar.
Perth and Kinross Council announced that the Perth Highland Games, due to take place on Sunday, had been cancelled. The authority said this was because of the current bad weather conditions and the forecast of further rain.
Precautionary measures were taken in the Meadows area of Huntly in Aberdeenshire for a second time in a week.
At about 01:00, residents in the neighbourhood were alerted by police that the River Deveron could burst its banks.
Grampian Housing deployed flood defence guards to doors and windows of about 50 homes.
BBC Scotland weather forecaster Stav Danaos, said: "It has been one of the wettest 24 hours in the Glasgow area since records began.
"The rain will begin to ease down this afternoon and become lighter with drier conditions following."
A spokesman for the Scottish Environment Protection Agency, said: "We expect to see a gradual rise in river levels. But as rain is persistent rather than thundery downpours, we do not expect to see any sudden increases.
"Accumulation of surface water and standing water is also anticipated."
Dumfries and Galloway Police said drivers would need to take extra care on the roads, in anticipation of heavy rain.
Are you in an area which has been hit by flooding? Send us your pictures and videos [only if it safe for you to take them] to newsonlinescotland@bbc.co.uk
BBC terms and conditions
Tayside Police said river levels were very high in the force area, but there were no reports of significant flooding, although officers urged motorists to take care.
Fife Fire and Rescue Service said they had six call-outs about flooding since 23:00 on Wednesday.

The hospice ambulance driver died and his passenger was badly injured on the A688 in County Durham. Nearby, a collapsed roof crushed a dozen cars.
Further north, in Ayrshire and Dumfries and Galloway, several hundred homes are without power, says Scottish Power.
Worst-hit are southern and central parts of Scotland, Northern Ireland, and northern England and Wales.
The Met Office has issued severe weather warnings for many areas and flood alerts have been issued, with road, rail and ferry travel disrupted.
The death of the driver happened at about 15:00 BST near Dunhouse Quarry, between Staindrop and Barnard Castle.
He has not been named, but was a volunteer with Butterwick Hospice in Bishop Auckland.
Graham Leggatt-Chidgey, chief executive of the hospice, said: "We can confirm that one of our long-term volunteers has been killed.
"We and the police are liaising with the man's family at the moment."
The passenger's injuries are not thought to be life threatening.
Also in the North East, cars were crushed when the roof of a building on Littleburn Industrial Estate at Langley Moor collapsed in strong winds.
In Scotland, a lorry hit a tree on the A811 near Arnprior, Stirlingshire, causing the telegraph pole to collapse. Power has been restored.
No-one was hurt in either incident.
A catering marquee being used on the set of the TV series Game of Thrones was ripped into the air near the Carrick-a-rede Rope Bridge on the north coast of Northern Ireland.
The weather caused the cancellation of stage two of cycling's Tour of Britain, through Lancashire and Cumbria.
"We've had to take the decision based on the advice we've had from the police and highways [officials] that it is unsafe," a tour spokesman said.
In Cornwall, the RNLI was warning surfers of the dangerous conditions caused by strong winds as a body boarder was rescued after being swept onto rocks.
The Met Office issued an amber warning covering several areas, meaning the public should be prepared for the risk of transport disruption and the possibility of damage to trees and structures.
It said an 82mph (132km/h) gust had been recorded at Capel Curig in north Wales, with strong winds expected to continue into Monday evening.
BBC weather forecaster Laura Tobin said: "We have some very stormy weather outside... courtesy of a deep area of low pressure. It is the remnants of Hurricane Katia.
"We could have gusts of wind up to 70mph (113km/h), maybe even 80mph around exposed headlands, coasts and hills."
She said the strong winds would decrease a little overnight and throughout Tuesday, and ease off completely by the end of the week.
Heavy rain in western Scotland is expected to continue for several days, giving a risk of localised flooding, with the Scottish Environment Protection Agency issuing several alerts.
The Environment Agency has alerts in place near Bridlington in East Yorkshire, Derwentwater in Cumbria and the western coast of Anglesey.
Some rail services in Scotland and northern England have been hit by delays and cancellations, National Rail Enquiries warns.
East Coast train services between London King's Cross and Newcastle have been seriously affected with some services cancelled after a tree fell on to the track between Durham and Darlington. Delays are expected until at least 23:00 BST.
Replacement coach services are operating between Darlington, Durham and Newcastle until the line reopens.
National Rail is updating its Twitter feed with the latest train disruptions.
ScotRail said there was some disruption to trains services between Glasgow Central and Largs/Ardrossan. Replacement buses were being provided from Kilwinning.
Other reported travel disruption included the cancellation of some Irish Sea ferry crossings, while in Scotland Caledonian MacBrayne has cancelled some ferries including services to and from Oban, Arran, Islay and Cumbrae.
The Severn Bridge has been closed to high-sided vehicles, along with the A55 Britannia Bridge to Anglesey and the Foyle Bridge in Londonderry.
In Scotland, the Tay Bridge has a 30mph limit and the Forth Road Bridge has a 40mph limit and is only open to cars.
Power companies have extra call handlers and engineers on standby to deal with any problems caused to electricity lines by the severe gales and possible falling trees.
People have also been urged to secure items such as garden furniture, wheelie bins and trampolines or store them safely.