Commit 20da7120 authored by Sacha's avatar Sacha Committed by SXibolet@2PITAU
Browse files

various (see log)

parent 729cdef7
.borderless,table.borderless td,table.borderless th{border:0}table.borderless td,table.borderless th{padding:0 .5em 0 0!important}.first{margin-top:0!important}.last,.with-subtitle{margin-bottom:0!important}.hidden{display:none}a.toc-backref{text-decoration:none;color:black}blockquote.epigraph{margin:2em 5em}dl.docutils dd{margin-bottom:.5em}object[type="image/svg+xml"],object[type="application/x-shockwave-flash"]{overflow:hidden}div.abstract{margin:2em 5em}div.abstract p.topic-title{font-weight:bold;text-align:center}div.admonition,div.attention,div.caution,div.danger,div.error,div.hint,div.important,div.note,div.tip,div.warning{margin:2em;border:medium outset;padding:1em}div.admonition p.admonition-title,div.hint p.admonition-title,div.important p.admonition-title,div.note p.admonition-title,div.tip p.admonition-title{font-weight:bold;font-family:sans-serif}div.attention p.admonition-title,div.caution p.admonition-title,div.danger p.admonition-title,div.error p.admonition-title,div.warning p.admonition-title,.code .error{color:red;font-weight:bold;font-family:sans-serif}div.dedication{margin:2em 5em;text-align:center;font-style:italic}div.dedication p.topic-title{font-weight:bold;font-style:normal}div.figure{margin-left:2em;margin-right:2em}div.footer,div.header{clear:both;font-size:smaller}div.line-block{display:block;margin-top:1em;margin-bottom:1em}div.line-block div.line-block{margin-top:0;margin-bottom:0;margin-left:1.5em}div.sidebar{margin:0 0 .5em 1em;border:medium outset;padding:1em;background-color:#ffe;width:40%;float:right;clear:right}div.sidebar p.rubric{font-family:sans-serif;font-size:medium}div.system-messages{margin:5em}div.system-messages h1{color:red}div.system-message{border:medium outset;padding:1em}div.system-message p.system-message-title{color:red;font-weight:bold}div.topic{margin:2em}h1.section-subtitle,h2.section-subtitle,h3.section-subtitle,h4.section-subtitle,h5.section-subtitle,h6.section-subtitle{margin-top:.4em}h1.title{text-align:center}h2.subtitle{text-align:center}hr.docutils{width:75%}img.align-left,.figure.align-left,object.align-left{clear:left;float:left;margin-right:1em}img.align-right,.figure.align-right,object.align-right{clear:right;float:right;margin-left:1em}img.align-center,.figure.align-center,object.align-center{display:block;margin-left:auto;margin-right:auto}.align-left{text-align:left}.align-center{clear:both;text-align:center}.align-right{text-align:right}div.align-right{text-align:inherit}ol.simple,ul.simple{margin-bottom:1em}ol.arabic{list-style:decimal}ol.loweralpha{list-style:lower-alpha}ol.upperalpha{list-style:upper-alpha}ol.lowerroman{list-style:lower-roman}ol.upperroman{list-style:upper-roman}p.attribution{text-align:right;margin-left:50%}p.caption{font-style:italic}p.credits{font-style:italic;font-size:smaller}p.label{white-space:nowrap}p.rubric{font-weight:bold;font-size:larger;color:maroon;text-align:center}p.sidebar-title{font-family:sans-serif;font-weight:bold;font-size:larger}p.sidebar-subtitle{font-family:sans-serif;font-weight:bold}p.topic-title{font-weight:bold}pre.address{margin-bottom:0;margin-top:0;font:inherit}pre.literal-block,pre.doctest-block,pre.math,pre.code{margin-left:2em;margin-right:2em}pre.code .ln{color:grey}pre.code,code{background-color:#eee}pre.code .comment,code .comment{color:#5c6576}pre.code .keyword,code .keyword{color:#3b0d06;font-weight:bold}pre.code .literal.string,code .literal.string{color:#0c5404}pre.code .name.builtin,code .name.builtin{color:#352b84}pre.code .deleted,code .deleted{background-color:#deb0a1}pre.code .inserted,code .inserted{background-color:#a3d289}span.classifier{font-family:sans-serif;font-style:oblique}span.classifier-delimiter{font-family:sans-serif;font-weight:bold}span.interpreted{font-family:sans-serif}span.option{white-space:nowrap}span.pre{white-space:pre}span.problematic{color:red}span.section-subtitle{font-size:80%}table.citation{border-left:solid 1px gray;margin-left:1px}table.docinfo{margin:2em 4em}table.docutils{margin-top:.5em;margin-bottom:.5em}table.footnote{border-left:solid 1px black;margin-left:1px}table.docutils td,table.docutils th,table.docinfo td,table.docinfo th{padding-left:.5em;padding-right:.5em;vertical-align:top}table.docutils th.field-name,table.docinfo th.docinfo-name{font-weight:bold;text-align:left;white-space:nowrap;padding-left:0}table.docutils.booktabs{border:0;border-top:2px solid;border-bottom:2px solid;border-collapse:collapse}table.docutils.booktabs *{border:0}table.docutils.booktabs th{border-bottom:thin solid;text-align:left}h1 tt.docutils,h2 tt.docutils,h3 tt.docutils,h4 tt.docutils,h5 tt.docutils,h6 tt.docutils{font-size:100%}{list-style-type:none}
\ No newline at end of file
This diff is collapsed.
......@@ -23,7 +23,7 @@ article rank
**GET** ``/api?q=syria``
.. include:: documents/syria.json
.. include:: documents/syria-spec.json
:code: javascript
import csv
# -*- coding: utf-8 -*-
"""Creates representative API response for specification
import json
if __name__ == "__main__":
syria = open('syria-2.json', 'r')
with open('syria-2.json') as spec:
data = json.load(spec)
sample_data = data['result'][0]
sample_data['sentences'] = [sample_data['sentences'][0]]
sample_data['sentences'][0]['tweets'] = [sample_data['sentences'][0]['tweets'][0]]
with open('syria-spec.json', 'w') as new_spec:
str_rep = json.dumps(sample_data,
separators=(',', ': '),
"training": false,
"byline": "By TIM ARANGO",
"lead": "A question has come to dominate the lives of thousands of Syrians here: Embark on a perilous journey to Europe or build a new life in Turkey.",
"title": "Syrian Migrants in Istanbul Confront Choice: Stay or Move On",
"url": "",
"abstract": "A question has come to dominate the lives of thousands of Syrians here: Embark on a perilous journey to Europe or build a new life in Turkey.",
"xlarge": "",
"source": "The New York Times",
"score": 140.29687018903874,
"full": "ISTANBUL \u2014 At Pages, a bookstore and cafe in a three-story wooden house in a tidy cul-de-sac up a hill in this city\u2019s oldest quarter, a literary refuge has blossomed for young Arabs in exile \u2014 mainly Syrians but also Iraqis, Libyans and Yemenis who have fled the troubles of home and taken up residence here. The shelves are lined with Arabic translations of Orhan Pamuk, Jack Kerouac, Gabriel Garc\u00eda M\u00e1rquez and Franz Kafka. Two Syrian novels are particularly popular: \u201cNo Knives in This City\u2019s Kitchens,\u201d about a family living under tyranny, and \u201cThe Shell,\u201d about a prisoner in a Syrian jail. \u201cThis is the generation of revolution in all of the Arab world,\u201d said Samer Alkadri, a painter and graphic designer from Damascus, Syria, who opened the cafe with his wife in July. He stocks Arabic books he has flown in from a publishing house in Beirut, Lebanon. \u201cThey want to know why everything happened, and they don\u2019t believe the media.\u201d The cafe, and the little garden out back where a lazy rabbit visits on many days, is also a place to discuss the one question that has come to dominate the lives of Syrians here: to stay, or to embark on the perilous sea journey to Europe. That question has become more urgent in the wake of a recent deal between Turkey and the European Union aimed at stemming the flow of asylum seekers to the Continent. As Europe confronts a crisis in which nearly 700,000 people this year have made a journey that started with a dangerous sea passage from Turkey to Greece, it has turned to Turkey for help. The European Union, under the recent pact, is offering more than $3 billion in aid to the Turkish government to spend on improving the lives of Syrians, such as building schools and health facilities, with the hope that many would then choose to stay and build their lives here. Four of the five people who worked for Mr. Alkadri when he opened the cafe are now in Europe. Mr. Alkadri, though, has vowed to stay. \u201cI am here because I want to return to Syria,\u201d he said. \u201cMaybe tomorrow, or maybe after 10 years.\u201d \u201cAfter this terrible war,\u201d he added, \u201cwe will need people to rebuild Syria.\u201d For many Syrians, the decision will depend on whether Turkey can deliver on a promise to allow them to work legally, which could raise their wages and, as many Syrians hope, offer a way to citizenship. Basil Qali, 19, left a government-controlled suburb of Damascus in October, and on a recent morning he was sweeping the floor of a cafe here. He works 13 hours a day and earns the equivalent of about $280 a month. \u201cHere you work for about 13 hours a day only for money for food,\u201d he said. He said he would think about staying in Turkey if he could make more money and have a chance at citizenship. But for now, he thinks only of Europe. \u201cFor us, there is no point in talking about what is going on in Syria because we know it will last for five or 10 more years,\u201d he said. \u201cSo we mostly talk about a plan for getting to Europe, and making money and saving money.\u201d Another young Syrian in Istanbul, Mohammed Sayid, 20, works as a restaurant deliveryman. He said his father had been a supporter of the rebellion in Syria, and had been executed by the government. He has learned Turkish and hopes to stay here, provided the government does more to improve his life by allowing him to work legally. He complains of discrimination \u2014 girls he flirts with in bars turn away, he said, when they learn he is Syrian \u2014 but he is hesitant to join his friends in Europe. \u201cI\u2019ve been here as a stranger for a long time,\u201d Mr. Sayid said. \u201cI\u2019m not ready to be a stranger again in a new country.\u201d Despite a recent exodus, there are still nearly 2.2 million Syrian refugees in Turkey, the most of any host country in the region. In Istanbul alone, there are roughly 350,000, writing their own chapter in the history of a city that has long been a place of exile. Over the years, they have become woven into the frenetic life of this city, opening cafes, performing as street musicians on its busiest boulevard and panhandling on street corners, holding out Syrian passports to elicit the sympathies of passers-by. Perhaps not since the end of World War I, when Muslims were fleeing Greece and the Balkans, and Russians were escaping the Bolshevik Revolution, have Istanbul\u2019s streets swelled with so many \u00e9migr\u00e9s. Syrians here say they are newly optimistic because of the victory of President Recep Tayyip Erdogan\u2019s Islamist Justice and Development party in parliamentary elections last month. Syrians, by and large, love Mr. Erdogan because of Turkey\u2019s longstanding open-door policy for refugees, and ahead of the election they worried that opposition parties hostile to foreigners would do well at the ballot box. \u201cHe opened the doors for Syrians,\u201d Mr. Alkadri said. Mr. Erdogan and his allies consider themselves heirs to the Ottoman past, when Istanbul \u2014 then Constantinople \u2014 ruled an empire that stretched to the Arab world and into Europe. It was also the seat of the Muslim caliphate, but the lands they controlled were a mosaic of ethnicities and faiths. The modern Turkey that emerged from the collapse of the empire at the end of World War I was a largely homogeneous country based on an ethnic understanding of national identity. Political groups that see themselves as the upholders of this tradition \u2014 rivals to Mr. Erdogan and his party \u2014 have been hostile to the presence of so many Syrians. Now, without an election to muddy the political waters, and with billions in European money for the government to spend, many Syrians here are hopeful that Mr. Erdogan\u2019s government will see to their basic needs, which are many. In a recent report, for example, Human Rights Watch said that 400,000 Syrian children in Turkey were not in school. At Pages, Mohammed Kayali, 32, works on promoting the cafe on social media. He already made the journey to Europe, to Sweden in 2012, but came back. \u201cSurvivor\u2019s guilt,\u201d he said, simply, when asked why. And, he added, \u201cThe weather.\u201d When friends contemplating the journey ask his advice, Mr. Kayali tells them, \u201cIn some ways you are going to regret it.\u201d In Europe, he said that because of generous social programs, \u201cYou are guaranteed a living but not a life.\u201d By that, he meant a loss of identity. \u201cYou will be forced to change too much.\u201d On the night of the elections last month, when it became clear that Mr. Erdogan\u2019s party was cruising to victory, Mr. Kayali picked up his phone and called his fianc\u00e9e, also in Turkey. \u201cWe are going to stay,\u201d he told her.",
"sentences": [
"tweets": [
"is_negative": false,
"is_positive": false,
"sentiment": 0,
"author": "kamalkaroum",
"retweeted": false,
"ts": "Thu Jan 07 00:38:05 +0000 2016",
"n_statuses": 6353,
"pimg": "",
"time_zone": "Casablanca",
"followers": 2208,
"location": "",
"clean": "syria here",
"identifier": 684896754479792128,
"retweets": 0,
"dirty": "#syria here"
"text": "\u201cThis is the generation of revolution in all of the Arab world,\u201d said Samer Alkadri, a painter and graphic designer from Damascus, Syria, who opened the cafe with his wife in July.",
"score": 6.186682698996645,
"linguistic_score": 5.155639062229566,
"sentiment_score": 1.031043636767078
"sentiment_score": 31.710930212630974,
"linguistic_score": 108.58593997640777,
"published": "2015-12-27"
\ No newline at end of file
......@@ -27,7 +27,7 @@
<span id=details>
<a href="training">Annotate articles</a> to help us build a dataset for future study!
<a href="">&star; on GitHub</a> &middot; <a href="">known bugs</a>
<a href="">&star; on GitHub</a> &middot; <a href="">Known bugs</a>
Please login or <a href="register">create a free account</a> to use the demo.
......@@ -63,6 +63,4 @@ if (!window.jQuery) {
$.ajax({url: '/set/safari'});
<script async defer id="github-bjs" src="//"></script>
{% endblock %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment