From c69bd02e555654dcd81527c3a07e81ab571dbdee Mon Sep 17 00:00:00 2001 From: Selva Date: Tue, 13 Sep 2016 18:00:07 +0530 Subject: [PATCH] added cosine similarity example --- cosine_sim/dhoni.txt | 1 + cosine_sim/sachin.txt | 32 ++++++++++++++++++++++++++++++++ cosine_sim/sachin_sub.txt | 1 + 3 files changed, 34 insertions(+) create mode 100644 cosine_sim/dhoni.txt create mode 100644 cosine_sim/sachin.txt create mode 100644 cosine_sim/sachin_sub.txt diff --git a/cosine_sim/dhoni.txt b/cosine_sim/dhoni.txt new file mode 100644 index 0000000..6f9263a --- /dev/null +++ b/cosine_sim/dhoni.txt @@ -0,0 +1 @@ +Dhoni was named vice-captain of the ODI team for the series against South Africa in Ireland and the subsequent India-England seven-match ODI series. Dhoni, who received a 'B' grade contract in December 2005, was awarded an 'A' grade contract in June 2007. And also he was elected as captain of the Indian squad for the World Twenty20 in September 2007. On 2 September 2007, Dhoni equaled his idol Adam Gilchrist's international record for the most dismissals in an innings in ODI by catching five English players and stumping one. He led India to the ICC World Twenty 20 trophy in South Africa with a victory over arch-rivals Pakistan in an intensely fought final on 24 September 2007, and became the second Indian captain to have won a World Cup in any form of cricket, after Kapil Dev. During the series between India and Australia, Dhoni hit an aggressive 124 runs in just 107 balls, in the second ODI, and a measured knock of 71 runs in 95 balls, along with Yuvraj Singh, saw India home by 6 wickets, in the third ODI. Dhoni took his first wicket in international cricket on 30 September 2009. He bowled Travis Dowlin of the West Indies during a match of the 2009 Champions Trophy. Dhoni batting against South Africa during the group stage match of 2013 ICC Champions Trophy. Dhoni topped the ICC ODI Batsman rankings for several months in 2009. Michael Hussey from Australia replaced him at the top spot at the beginning of 2010. Dhoni had an excellent year in ODIs in 2009 scoring 1198 runs in just 24 innings at an astonishing average of 70.43. Dhoni was also the joint top-scorer in ODIs in 2009 along with Ricky Ponting, but the latter having played in 30 innings. On 12 February 2012, Dhoni made an unbeaten 44 to guide India to their first win over Australia at Adelaide. In the final over, he hit a monstrous six which traveled 112 metres off the bowling of Clint McKay. During the post-match presentation, he described this six as more important than the one he hit during the ICC World Cup final in 2011. On 2 November 2013, Dhoni became the second India batsman after Sachin Tendulkar to aggregate 1,000 or more ODI-runs against Australia. \ No newline at end of file diff --git a/cosine_sim/sachin.txt b/cosine_sim/sachin.txt new file mode 100644 index 0000000..bc129ec --- /dev/null +++ b/cosine_sim/sachin.txt @@ -0,0 +1,32 @@ +Tendulkar single-handedly won the ICC 1998 quarterfinal at Dhaka to pave way for India's entry into the semifinals, when he took four Australian wickets after scoring 141 runs in just 128 balls. +The inaugural Asian Test Championship took place in February and March 1999. Held just twice, the 1999 championship was contested by India, Pakistan, and Sri Lanka. The first Test match between India and Pakistan in Eden Gardens was previously scheduled as the third Test match of the tournament but later on was shifted to the first match. In the first match, Tendulkar was run out for nine after colliding with Pakistan bowler Shoaib Akhtar. Around 100,000 people came to support team India during the initial four days of the tournament. The aggregate Test attendance record which was made 63 years ago was broken during this Test. The crowd's reaction to the dismissal was to throw objects at Akhtar, and the players were taken off the field. The match resumed after Tendulkar and the president of the ICC appealed to the crowd, however further rioting meant that the match was finished in front of a crowd of just 200 people. Tendulkar scored his 19th Test century in the second Test and the match resulted in a draw with Sri Lanka. India did not progress to the final, which was won by Pakistan, and refused to participate the next time the championship was held due to increasing political tensions between India and Pakistan. +In the historic Test against Pakistan at Chepauk in 1999, the first of a two-Test series, Sachin scored 136 in the fourth innings with India chasing 271 for victory. However, he was out when India needed 17 more runs to win, triggering a batting collapse, and India lost the match by 12 runs. The worst was yet to come as Professor Ramesh Tendulkar, Sachin's father, died in the middle of the 1999 Cricket World Cup. Tendulkar flew back to India to attend the final rituals of his father, missing the match against Zimbabwe. However, he returned to the World Cup scoring a century (140 not out off 101 balls) in his very next match against Kenya in Bristol. He dedicated this century to his father. + + + + + + + + + + + + + + + + + + + + + + + + + + +Tendulkar's two tenures as captain of the Indian cricket team were not very successful. When Tendulkar took over as captain in 1996, it was with huge hopes and expectations. However, by 1997 the team was performing poorly. Azharuddin was credited with saying "Nahin jeetega! Chote ki naseeb main jeet nahin hai!", which translates into: "He won't win! It's not in the small one's destiny!". +Tendulkar, succeeding Azharuddin as captain for his second term, led India on a tour of Australia, where the visitors were beaten 3–0 by the newly crowned world champions. Tendulkar, however, won the player of the series award as well as player of the match in one of the games. After another Test series defeat, this time by a 0–2 margin at home against South Africa, Tendulkar resigned, and Sourav Ganguly took over as captain in 2000. +Tendulkar remained an integral part of the Indian team's strategic processes. He was often seen in discussion with the captain, at times actively involved in building strategies. Former captain Rahul Dravid publicly acknowledged that Tendulkar had been suggesting moves such as the promotion of Irfan Pathan up the batting order which, although only temporary, had an immediate effect on the team's fortunes. In 2007, Tendulkar was appointed vice-captain to captain Rahul Dravid. During the Indian team's 2007 tour of England, Dravid's desire to resign from the captaincy became known. The BCCI President Sharad Pawar personally offered the captaincy to Tendulkar. However, Tendulkar asked Pawar not to appoint him captain, instead recommending Mahendra Singh Dhoni to take over the reins. Pawar later revealed this conversation, crediting Tendulkar for first forwarding the name of Dhoni, who since achieved much success as captain. diff --git a/cosine_sim/sachin_sub.txt b/cosine_sim/sachin_sub.txt new file mode 100644 index 0000000..4483bb5 --- /dev/null +++ b/cosine_sim/sachin_sub.txt @@ -0,0 +1 @@ +In 2007, Tendulkar was appointed vice-captain to captain Rahul Dravid. During the Indian team's 2007 tour of England, Dravid's desire to resign from the captaincy became known. The BCCI President Sharad Pawar personally offered the captaincy to Tendulkar. However, Tendulkar asked Pawar not to appoint him captain, instead recommending Mahendra Singh Dhoni to take over the reins. Pawar later revealed this conversation, crediting Tendulkar for first forwarding the name of Dhoni, who since achieved much success as captain. \ No newline at end of file