Skip to content

Commit f8ca338

Browse files
committed
fixes #95 updating changelog and readme
1 parent f8ea668 commit f8ca338

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ Change Log
22
==========
33
## Version 0.5.0
44

5+
_2016-06-24_
6+
7+
* New: Added `AlchemyData News` abstraction
8+
9+
## Version 0.5.0
10+
511
_2016-06-24_
612

713
* New: Added `Alchemy Language` abstraction

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Use this SDK to build Watson-powered applications in Unity. It comes with a set
1919
* [Conversation](#conversation)
2020
* [Visual Recognition](#visual-recognition)
2121
* [Alchemy Language](#alchemy-language)
22+
* [AlchemyData News](#alchemy-data-news)
2223
* [Personality Insights](#personality-insights)
2324
* [Developing a basic application in one minute](#developing-a-basic-application-in-one-minute)
2425
* [Documentation](#documentation)
@@ -1358,6 +1359,34 @@ private void OnGetCombinedData(CombinedCallData combinedData, string data)
13581359
}
13591360
```
13601361

1362+
### AlchemyData News
1363+
Use the [AlchemyData News][alchemyData_news] service to provide news and blog content enriched with natural language processing to allow for highly targeted search and trend analysis. Now you can query the world's news sources and blogs like a database.
1364+
1365+
#### Getting News
1366+
AlchemyData News indexes 250k to 300k English language news and blog articles every day with historical search available for the past 60 days. You can query the News API directly with no need to acquire, enrich and store the data yourself - enabling you to go beyond simple keyword-based searches. You can request which fields to return and filter fields by string. All available fields can be accessed using Fields constants in the AlchemyData News Data Model.
1367+
1368+
```
1369+
private AlchemyAPI m_AlchemyAPI = new AlchemyAPI();
1370+
1371+
void Start()
1372+
{
1373+
string[] returnFields = {Fields.ENRICHED_URL_ENTITIES, Fields.ENRICHED_URL_KEYWORDS};
1374+
Dictionary<string, string> queryFields = new Dictionary<string, string>();
1375+
queryFields.Add(Fields.ENRICHED_URL_RELATIONS_RELATION_SUBJECT_TEXT, "Obama");
1376+
queryFields.Add(Fields.ENRICHED_URL_CLEANEDTITLE, "Washington");
1377+
1378+
if (!m_AlchemyAPI.GetNews(OnGetNews, returnFields, queryFields))
1379+
Log.Debug("ExampleAlchemyData", "Failed to get news!");
1380+
}
1381+
1382+
void OnGetNews(NewsResponse newsData, string data)
1383+
{
1384+
// Access requested fields
1385+
if(newsData != null)
1386+
Log.Debug("ExampleAlchemyData", "status: {0}", newsData.status);
1387+
}
1388+
```
1389+
13611390
## Developing a basic application in one minute
13621391
You can quickly develop a basic application that uses the Speech to Text service and the Natural Language Classifier service by using the prefabs that come with the SDK. Ensure that you prepare the test data before you complete the the following steps:
13631392

@@ -1405,6 +1434,7 @@ See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
14051434
[natural_language_classifier]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/nl-classifier/
14061435

14071436
[alchemy_language]: http://www.alchemyapi.com/products/alchemylanguage
1437+
[alchemyData_news]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/alchemy-data-news.html
14081438
[sentiment_analysis]: http://www.alchemyapi.com/products/alchemylanguage/sentiment-analysis
14091439
[tone_analyzer]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tone-analyzer/
14101440
[tradeoff_analytics]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/tradeoff-analytics/

0 commit comments

Comments
 (0)