# Keyterm Sentiment Analytics Metrics

## Example code

```python
from finter.data import ContentFactory
cf = ContentFactory("kr_stock", 20240101, 20240201)

# sentiment_us category
df = cf.get_df("all-N_of_mat_key[all_cat]", cagegory='sentiment')

# sentiment_exp_us category
df = cf.get_df("all-N_of_mat_key[all_cat]", cagegory='sentiment_exp')
```

## Metadata

| Valid From | Delivery Schedule  | Time Zone  | Data Frequency |
| ---------- | ------------------ | ---------- | -------------- |
| 2005-01-01 | UTC 00 21 \* \* \* | Asia/Seoul | 1d             |

## Item List

* Use `sentiment` category for Korea
* Use `sentiment_exp` category for Korea Expanded

### All Sentiment

* `all-N_of_mat_key[all_cat]`: Number of total key terms for overall sentiment on the given day in Korea.
* `all-N_of_mat_key[in_cat]`: Number of matching key terms for overall sentiment in the specified category on the given day in Korea.
* `all-N_of_news`: Number of total news articles for overall sentiment on the given day in Korea.
* `all-mat_key_rate[in_cat%all_cat]`: Category key term rate for overall sentiment on the given day in Korea.

### Negative Sentiment

* `neg-N_of_mat_key[all_cat]`: Number of total key terms for negative sentiment on the given day in Korea.
* `neg-N_of_mat_key[in_cat]`: Number of matching key terms for negative sentiment in the specified category on the given day in Korea.
* `neg-N_of_news`: Number of total news articles for negative sentiment on the given day in Korea.
* `neg-mat_key_rate[in_cat%all_cat]`: Category key term rate for negative sentiment on the given day in Korea.

### Neutral Sentiment

* `neu-N_of_mat_key[all_cat]`: Number of total key terms for neutral sentiment on the given day in Korea.
* `neu-N_of_mat_key[in_cat]`: Number of matching key terms for neutral sentiment in the specified category on the given day in Korea.
* `neu-N_of_news`: Number of total news articles for neutral sentiment on the given day in Korea.
* `neu-mat_key_rate[in_cat%all_cat]`: Category key term rate for neutral sentiment on the given day in Korea.

### Positive Sentiment

* `pos-N_of_mat_key[all_cat]`: Number of total key terms for positive sentiment on the given day in Korea.
* `pos-N_of_mat_key[in_cat]`: Number of matching key terms for positive sentiment in the specified category on the given day in Korea.
* `pos-N_of_news`: Number of total news articles for positive sentiment on the given day in Korea.
* `pos-mat_key_rate[in_cat%all_cat]`: Category key term rate for positive sentiment on the given day in Korea.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://quantit.gitbook.io/quanda/kr-stock/unstructured/ews-early-warning-signal/keyterm-sentiment-analytics-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
