Difference between revisions of "Orange: NY Times"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Sumber: https://orange3-text.readthedocs.io/en/latest/widgets/nytimes.html Loads data from the New York Times’ Article Search API. Inputs None Outputs Corpus: A...")
 
Line 15: Line 15:
 
To use the widget, you must enter your own API key.
 
To use the widget, you must enter your own API key.
  
../_images/NYTimes-stamped.png
+
[[File:NYTimes-stamped.png|center|200px|thumb]]
  
 
     To begin your query, insert NY Times’ Article Search API key. The key is securely saved in your system keyring service (like Credential Vault, Keychain, KWallet, etc.) and won’t be deleted when clearing widget settings.
 
     To begin your query, insert NY Times’ Article Search API key. The key is securely saved in your system keyring service (like Credential Vault, Keychain, KWallet, etc.) and won’t be deleted when clearing widget settings.
  
    ../_images/NYT-API.png
+
[[File:NYT-API.png|center|200px|thumb]]
  
 
     Set query parameters:
 
     Set query parameters:
 
         Query
 
         Query
 
         Query time frame. The widget allows querying articles from September 18, 1851 onwards. Default is set to 1 year back from the current date.
 
         Query time frame. The widget allows querying articles from September 18, 1851 onwards. Default is set to 1 year back from the current date.
 
 
     Define which features to include as text features.
 
     Define which features to include as text features.
 
 
     Information on the output.
 
     Information on the output.
 
 
     Produce report.
 
     Produce report.
 
 
     Run or stop the query.
 
     Run or stop the query.
  
Example
+
==Contoh==
  
 
NYTimes is a data retrieving widget, similar to Twitter and Wikipedia. As it can retrieve geolocations, that is geographical locations the article mentions, it is great in combination with Document Map widget.
 
NYTimes is a data retrieving widget, similar to Twitter and Wikipedia. As it can retrieve geolocations, that is geographical locations the article mentions, it is great in combination with Document Map widget.
  
../_images/NYTimes-Example1.png
+
[[File:NYTimes-Example1.png|center|200px|thumb]]
  
 
First, let’s query NYTimes for all articles on Slovenia. We can retrieve the articles found and view the results in Corpus Viewer. The widget displays all the retrieved features, but includes on selected features as text mining features.
 
First, let’s query NYTimes for all articles on Slovenia. We can retrieve the articles found and view the results in Corpus Viewer. The widget displays all the retrieved features, but includes on selected features as text mining features.

Revision as of 13:51, 24 January 2020

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

Loads data from the New York Times’ Article Search API.

Inputs

   None

Outputs

   Corpus: A collection of documents from the New York Times newspaper.

NYTimes widget loads data from New York Times’ Article Search API. You can query NYTimes articles from September 18, 1851 to today, but the API limit is set to allow retrieving only a 1000 documents per query. Define which features to use for text mining, Headline and Abstract being selected by default.

To use the widget, you must enter your own API key.

NYTimes-stamped.png
   To begin your query, insert NY Times’ Article Search API key. The key is securely saved in your system keyring service (like Credential Vault, Keychain, KWallet, etc.) and won’t be deleted when clearing widget settings.
NYT-API.png
   Set query parameters:
       Query
       Query time frame. The widget allows querying articles from September 18, 1851 onwards. Default is set to 1 year back from the current date.
   Define which features to include as text features.
   Information on the output.
   Produce report.
   Run or stop the query.

Contoh

NYTimes is a data retrieving widget, similar to Twitter and Wikipedia. As it can retrieve geolocations, that is geographical locations the article mentions, it is great in combination with Document Map widget.

NYTimes-Example1.png

First, let’s query NYTimes for all articles on Slovenia. We can retrieve the articles found and view the results in Corpus Viewer. The widget displays all the retrieved features, but includes on selected features as text mining features.

Now, let’s inspect the distribution of geolocations from the articles mentioning Slovenia. We can do this with Document Map. Unsurprisingly, Croatia and Hungary appear the most often in articles on Slovenia (discounting Slovenia itself), with the rest of Europe being mentioned very often as well.



Referensi

Pranala Menarik