Difference between revisions of "Orange: The Guardian"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://orange3-text.readthedocs.io/en/latest/widgets/guardian-widget.html Fetching data from The Guardian Open Platform. Inputs None Outputs Corpus: A...")
 
Line 15: Line 15:
 
Guardian retrieves articles from the Guardian newspaper via their API. For the widget to work, you need to provide the API key, which you can get at their access platform.
 
Guardian retrieves articles from the Guardian newspaper via their API. For the widget to work, you need to provide the API key, which you can get at their access platform.
  
../_images/Guardian-stamped.png
+
[[File:Guardian-stamped.png|center|200px|thumb]]
  
 
     Insert the API key for the widget to work.
 
     Insert the API key for the widget to work.
  
    ../_images/Guardian-API.png
+
[[File:Guardian-API.png|center|200px|thumb]]
  
 
     Provide the query and set the time frame from which to retrieve the articles.
 
     Provide the query and set the time frame from which to retrieve the articles.
 
 
     Define which features to retrieve from the Guardian platform.
 
     Define which features to retrieve from the Guardian platform.
 
 
     Information on the output.
 
     Information on the output.
 
 
     Press Search to start retrieving the articles or Stop to stop the retrieval.
 
     Press Search to start retrieving the articles or Stop to stop the retrieval.
  
Example
+
==Contoh==
  
 
Guardian can be used just like any other data retrieval widget in Orange, namely NY Times, Wikipedia, Twitter or PubMed.
 
Guardian can be used just like any other data retrieval widget in Orange, namely NY Times, Wikipedia, Twitter or PubMed.
Line 37: Line 34:
 
We can observe the results in the Corpus Viewer widget.
 
We can observe the results in the Corpus Viewer widget.
  
../_images/Guardian-Example.png
+
[[File:Guardian-Example.png|center|200px|thumb]]
  
  

Revision as of 13:47, 24 January 2020

Sumber: https://orange3-text.readthedocs.io/en/latest/widgets/guardian-widget.html


Fetching data from The Guardian Open Platform.

Inputs

   None

Outputs

   Corpus: A collection of documents from the Guardian newspaper.

Guardian retrieves articles from the Guardian newspaper via their API. For the widget to work, you need to provide the API key, which you can get at their access platform.

Guardian-stamped.png
   Insert the API key for the widget to work.
Guardian-API.png
   Provide the query and set the time frame from which to retrieve the articles.
   Define which features to retrieve from the Guardian platform.
   Information on the output.
   Press Search to start retrieving the articles or Stop to stop the retrieval.

Contoh

Guardian can be used just like any other data retrieval widget in Orange, namely NY Times, Wikipedia, Twitter or PubMed.

We will retrieve 240 articles mentioning slovenia between september 2017 and september 2018. The text will include article headline and content. Upon pressing Search, the articles will be retrieved.

We can observe the results in the Corpus Viewer widget.

Guardian-Example.png


Referensi

Pranala Menarik