fds.sdk.NaturalLanguageProcessing 0.23.6__tar.gz → 0.24.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/PKG-INFO +47 -53
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/README.md +31 -47
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/__init__.py +2 -2
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/api/__init__.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/api/ai_themes_api.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/api/named_entity_recognition_api.py +3 -2
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/api_client.py +6 -6
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/apis/__init__.py +1 -3
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/configuration.py +3 -3
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/exceptions.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/error_source.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/http_error.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/http_error_root.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_entity.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_entity_list.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_input_data_schema.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_input_schema.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_organization.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/ner_response_schema.py +1 -7
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/task.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/task_root.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/theme_sentiment.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/theme_sentiments_root.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/themes_parameters.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/themes_parameters_root.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model_utils.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/models/__init__.py +0 -12
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/rest.py +1 -1
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds.sdk.NaturalLanguageProcessing.egg-info/PKG-INFO +47 -53
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds.sdk.NaturalLanguageProcessing.egg-info/SOURCES.txt +0 -14
- fds_sdk_naturallanguageprocessing-0.24.0/fds.sdk.NaturalLanguageProcessing.egg-info/requires.txt +3 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/setup.py +5 -5
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/api/ai_text_summarization_api.py +0 -1001
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/api/question__answer_api.py +0 -857
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/error.py +0 -262
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/qn_a_answer.py +0 -268
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/qn_a_answer_parameters.py +0 -284
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/qn_a_answer_parameters_root.py +0 -272
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/qn_a_answer_root.py +0 -272
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/summarization_http_error.py +0 -260
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/summarization_request.py +0 -262
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/summarization_result.py +0 -260
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/summarization_result_id.py +0 -256
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/validation_error.py +0 -266
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/validation_error_detail.py +0 -262
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds/sdk/NaturalLanguageProcessing/model/validation_error_detail_location.py +0 -256
- fds.sdk.NaturalLanguageProcessing-0.23.6/fds.sdk.NaturalLanguageProcessing.egg-info/requires.txt +0 -3
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/LICENSE +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/__init__.py +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/NaturalLanguageProcessing/model/__init__.py +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds/sdk/__init__.py +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds.sdk.NaturalLanguageProcessing.egg-info/dependency_links.txt +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/fds.sdk.NaturalLanguageProcessing.egg-info/top_level.txt +0 -0
- {fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/setup.cfg +0 -0
{fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/PKG-INFO
RENAMED
|
@@ -1,30 +1,42 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: fds.sdk.NaturalLanguageProcessing
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.24.0
|
|
4
4
|
Summary: Natural Language Processing client library for Python
|
|
5
5
|
Home-page: https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1
|
|
6
6
|
Author: FactSet Research Systems
|
|
7
7
|
License: Apache License, Version 2.0
|
|
8
8
|
Keywords: FactSet,API,SDK
|
|
9
|
-
|
|
10
|
-
Requires-Python: >=3.7
|
|
9
|
+
Requires-Python: >=3.10
|
|
11
10
|
Description-Content-Type: text/markdown
|
|
12
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: urllib3>=2.7.0
|
|
13
|
+
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
14
|
+
Requires-Dist: fds.sdk.utils>=1.0.0
|
|
15
|
+
Dynamic: author
|
|
16
|
+
Dynamic: description
|
|
17
|
+
Dynamic: description-content-type
|
|
18
|
+
Dynamic: home-page
|
|
19
|
+
Dynamic: keywords
|
|
20
|
+
Dynamic: license
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
Dynamic: requires-dist
|
|
23
|
+
Dynamic: requires-python
|
|
24
|
+
Dynamic: summary
|
|
13
25
|
|
|
14
26
|
[](https://www.factset.com)
|
|
15
27
|
|
|
16
28
|
# Natural Language Processing client library for Python
|
|
17
29
|
|
|
18
|
-
[](https://pypi.org/project/fds.sdk.NaturalLanguageProcessing/)
|
|
30
|
+
[](https://developer.factset.com/api-catalog/natural-language-processing-api)
|
|
31
|
+
[](https://pypi.org/project/fds.sdk.NaturalLanguageProcessing/v/0.24.0)
|
|
20
32
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
21
33
|
|
|
22
34
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text
|
|
23
35
|
|
|
24
36
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
25
37
|
|
|
26
|
-
- API version: 1.
|
|
27
|
-
- SDK version: 0.
|
|
38
|
+
- API version: 1.4.0
|
|
39
|
+
- SDK version: 0.24.0
|
|
28
40
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
29
41
|
|
|
30
42
|
For more information, please visit [https://developer.factset.com/contact](https://developer.factset.com/contact)
|
|
@@ -38,24 +50,24 @@ For more information, please visit [https://developer.factset.com/contact](https
|
|
|
38
50
|
### Poetry
|
|
39
51
|
|
|
40
52
|
```shell
|
|
41
|
-
poetry add fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.
|
|
53
|
+
poetry add fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.24.0
|
|
42
54
|
```
|
|
43
55
|
|
|
44
56
|
### pip
|
|
45
57
|
|
|
46
58
|
```shell
|
|
47
|
-
pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.
|
|
59
|
+
pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.24.0
|
|
48
60
|
```
|
|
49
61
|
|
|
50
62
|
## Usage
|
|
51
63
|
|
|
52
64
|
1. [Generate authentication credentials](../../../../README.md#authentication).
|
|
53
65
|
2. Setup Python environment.
|
|
54
|
-
1. Install and activate python 3.
|
|
66
|
+
1. Install and activate python 3.10+. If you're using [pyenv](https://github.com/pyenv/pyenv):
|
|
55
67
|
|
|
56
68
|
```sh
|
|
57
|
-
pyenv install 3.
|
|
58
|
-
pyenv shell 3.
|
|
69
|
+
pyenv install 3.10.0
|
|
70
|
+
pyenv shell 3.10.0
|
|
59
71
|
```
|
|
60
72
|
|
|
61
73
|
2. (optional) [Install poetry](https://python-poetry.org/docs/#installation).
|
|
@@ -71,7 +83,7 @@ pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.23.6
|
|
|
71
83
|
from fds.sdk.utils.authentication import ConfidentialClient
|
|
72
84
|
|
|
73
85
|
import fds.sdk.NaturalLanguageProcessing
|
|
74
|
-
from fds.sdk.NaturalLanguageProcessing.api import
|
|
86
|
+
from fds.sdk.NaturalLanguageProcessing.api import ai_themes_api
|
|
75
87
|
from fds.sdk.NaturalLanguageProcessing.models import *
|
|
76
88
|
from dateutil.parser import parse as dateutil_parser
|
|
77
89
|
from pprint import pprint
|
|
@@ -103,48 +115,51 @@ configuration = fds.sdk.NaturalLanguageProcessing.Configuration(
|
|
|
103
115
|
# Enter a context with an instance of the API client
|
|
104
116
|
with fds.sdk.NaturalLanguageProcessing.ApiClient(configuration) as api_client:
|
|
105
117
|
# Create an instance of the API class
|
|
106
|
-
api_instance =
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
118
|
+
api_instance = ai_themes_api.AIThemesApi(api_client)
|
|
119
|
+
themes_parameters_root = ThemesParametersRoot(
|
|
120
|
+
data=ThemesParameters(
|
|
121
|
+
include_sentiments=False,
|
|
122
|
+
text="Studio Entertainment: At Studio Entertainment, operating income decreased in the quarter due to lower theatrical distribution and home entertainment results. Worldwide theatrical results continued to be adversely impacted by COVID-19, as theaters were closed in many key markets both domestically and internationally. With no significant worldwide theatrical releases in the quarter, we faced a difficult comparison against the strong performance of The Lion King and Toy Story 4 in the prior-year quarter. Operating Results: On our last earnings call, we said that we expected Q4 operating results of our DTC businesses to improve by approximately $100mm relative to the prior-year quarter. Our results came in better than that guidance, with operating income at our DTC businesses improving by approximately $300mm vs. the prior year due to better-than-expected performance across all three of our streaming services. I will note that we do not plan to further update any of our subscriber numbers until our Investor Day on December 10 At our International Channels, lower results were due to lower affiliate and advertising revenues, partially offset by a decrease in cost.",
|
|
123
|
+
),
|
|
124
|
+
meta={},
|
|
125
|
+
) # ThemesParametersRoot |
|
|
110
126
|
|
|
111
127
|
try:
|
|
112
|
-
# Endpoint to
|
|
128
|
+
# Endpoint to begin theme extraction job
|
|
113
129
|
# example passing only required values which don't have defaults set
|
|
114
|
-
|
|
115
|
-
api_response = api_instance.summarization_headline(summarization_request=summarization_request)
|
|
130
|
+
api_response = api_instance.themes_extract_themes(themes_parameters_root)
|
|
116
131
|
|
|
117
132
|
pprint(api_response)
|
|
118
133
|
except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
119
|
-
print("Exception when calling
|
|
134
|
+
print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
120
135
|
|
|
121
136
|
# # Get response, http status code and response headers
|
|
122
137
|
# try:
|
|
123
|
-
# # Endpoint to
|
|
124
|
-
# api_response, http_status_code, response_headers = api_instance.
|
|
138
|
+
# # Endpoint to begin theme extraction job
|
|
139
|
+
# api_response, http_status_code, response_headers = api_instance.themes_extract_themes_with_http_info(themes_parameters_root)
|
|
125
140
|
|
|
126
141
|
|
|
127
142
|
# pprint(api_response)
|
|
128
143
|
# pprint(http_status_code)
|
|
129
144
|
# pprint(response_headers)
|
|
130
145
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
131
|
-
# print("Exception when calling
|
|
146
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
132
147
|
|
|
133
148
|
# # Get response asynchronous
|
|
134
149
|
# try:
|
|
135
|
-
# # Endpoint to
|
|
136
|
-
# async_result = api_instance.
|
|
150
|
+
# # Endpoint to begin theme extraction job
|
|
151
|
+
# async_result = api_instance.themes_extract_themes_async(themes_parameters_root)
|
|
137
152
|
# api_response = async_result.get()
|
|
138
153
|
|
|
139
154
|
|
|
140
155
|
# pprint(api_response)
|
|
141
156
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
142
|
-
# print("Exception when calling
|
|
157
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
143
158
|
|
|
144
159
|
# # Get response, http status code and response headers asynchronous
|
|
145
160
|
# try:
|
|
146
|
-
# # Endpoint to
|
|
147
|
-
# async_result = api_instance.
|
|
161
|
+
# # Endpoint to begin theme extraction job
|
|
162
|
+
# async_result = api_instance.themes_extract_themes_with_http_info_async(themes_parameters_root)
|
|
148
163
|
# api_response, http_status_code, response_headers = async_result.get()
|
|
149
164
|
|
|
150
165
|
|
|
@@ -152,7 +167,7 @@ with fds.sdk.NaturalLanguageProcessing.ApiClient(configuration) as api_client:
|
|
|
152
167
|
# pprint(http_status_code)
|
|
153
168
|
# pprint(response_headers)
|
|
154
169
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
155
|
-
# print("Exception when calling
|
|
170
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
156
171
|
|
|
157
172
|
```
|
|
158
173
|
|
|
@@ -246,22 +261,14 @@ All URIs are relative to *https://api.factset.com/cognitive/nlp/v1*
|
|
|
246
261
|
|
|
247
262
|
Class | Method | HTTP request | Description
|
|
248
263
|
------------ | ------------- | ------------- | -------------
|
|
249
|
-
*AITextSummarizationApi* | [**summarization_headline**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_headline) | **POST** /summarization/headline | Endpoint to generate a headline from text
|
|
250
|
-
*AITextSummarizationApi* | [**summarization_headline_and_summary**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_headline_and_summary) | **POST** /summarization/headline-and-summary | Endpoint to summarize and generate a headline from text
|
|
251
|
-
*AITextSummarizationApi* | [**summarization_result**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_result) | **GET** /summarization/result/{resultId} | Endpoint to obtain result of a particular summarization job
|
|
252
|
-
*AITextSummarizationApi* | [**summarization_summary**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_summary) | **POST** /summarization/summary | Endpoint to summarize text
|
|
253
264
|
*AIThemesApi* | [**themes_extract_themes**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_extract_themes) | **POST** /themes | Endpoint to begin theme extraction job
|
|
254
265
|
*AIThemesApi* | [**themes_get_status**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_get_status) | **GET** /themes/{id}/status | Endpoint to get the completion status of a themes job
|
|
255
266
|
*AIThemesApi* | [**themes_get_themes**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_get_themes) | **GET** /themes/{id} | Endpoint to get a theme (and sentiments if requested) job result
|
|
256
267
|
*NamedEntityRecognitionApi* | [**ner_entities**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NamedEntityRecognitionApi.md#ner_entities) | **POST** /ner/entities | Endpoint to detect entities from text
|
|
257
|
-
*QuestionAnswerApi* | [**qna_get_answers**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_get_answers) | **GET** /qna/answers/{id} | Endpoint to get the answer(s)
|
|
258
|
-
*QuestionAnswerApi* | [**qna_get_status**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_get_status) | **GET** /qna/answers/{id}/status | Endpoint to get the completion status for a Q&A request
|
|
259
|
-
*QuestionAnswerApi* | [**qna_post_question**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_post_question) | **POST** /qna/answers | Endpoint to submit a question for answer(s)
|
|
260
268
|
|
|
261
269
|
|
|
262
270
|
## Documentation For Models
|
|
263
271
|
|
|
264
|
-
- [Error](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/Error.md)
|
|
265
272
|
- [ErrorSource](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ErrorSource.md)
|
|
266
273
|
- [HTTPError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/HTTPError.md)
|
|
267
274
|
- [HTTPErrorRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/HTTPErrorRoot.md)
|
|
@@ -271,23 +278,12 @@ Class | Method | HTTP request | Description
|
|
|
271
278
|
- [NERInputSchema](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NERInputSchema.md)
|
|
272
279
|
- [NEROrganization](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NEROrganization.md)
|
|
273
280
|
- [NERResponseSchema](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NERResponseSchema.md)
|
|
274
|
-
- [QnAAnswer](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswer.md)
|
|
275
|
-
- [QnAAnswerParameters](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerParameters.md)
|
|
276
|
-
- [QnAAnswerParametersRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerParametersRoot.md)
|
|
277
|
-
- [QnAAnswerRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerRoot.md)
|
|
278
|
-
- [SummarizationHTTPError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationHTTPError.md)
|
|
279
|
-
- [SummarizationRequest](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationRequest.md)
|
|
280
|
-
- [SummarizationResult](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationResult.md)
|
|
281
|
-
- [SummarizationResultID](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationResultID.md)
|
|
282
281
|
- [Task](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/Task.md)
|
|
283
282
|
- [TaskRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/TaskRoot.md)
|
|
284
283
|
- [ThemeSentiment](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemeSentiment.md)
|
|
285
284
|
- [ThemeSentimentsRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemeSentimentsRoot.md)
|
|
286
285
|
- [ThemesParameters](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemesParameters.md)
|
|
287
286
|
- [ThemesParametersRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemesParametersRoot.md)
|
|
288
|
-
- [ValidationError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationError.md)
|
|
289
|
-
- [ValidationErrorDetail](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationErrorDetail.md)
|
|
290
|
-
- [ValidationErrorDetailLocation](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationErrorDetailLocation.md)
|
|
291
287
|
|
|
292
288
|
|
|
293
289
|
## Documentation For Authorization
|
|
@@ -331,7 +327,7 @@ Please refer to the [contributing guide](../../../../CONTRIBUTING.md).
|
|
|
331
327
|
|
|
332
328
|
## Copyright
|
|
333
329
|
|
|
334
|
-
Copyright
|
|
330
|
+
Copyright 2026 FactSet Research Systems Inc
|
|
335
331
|
|
|
336
332
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
337
333
|
you may not use this file except in compliance with the License.
|
|
@@ -345,5 +341,3 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
345
341
|
See the License for the specific language governing permissions and
|
|
346
342
|
limitations under the License.
|
|
347
343
|
|
|
348
|
-
|
|
349
|
-
|
{fds.sdk.NaturalLanguageProcessing-0.23.6 → fds_sdk_naturallanguageprocessing-0.24.0}/README.md
RENAMED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
# Natural Language Processing client library for Python
|
|
4
4
|
|
|
5
|
-
[](https://pypi.org/project/fds.sdk.NaturalLanguageProcessing/)
|
|
5
|
+
[](https://developer.factset.com/api-catalog/natural-language-processing-api)
|
|
6
|
+
[](https://pypi.org/project/fds.sdk.NaturalLanguageProcessing/v/0.24.0)
|
|
7
7
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
8
8
|
|
|
9
9
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text
|
|
10
10
|
|
|
11
11
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
12
12
|
|
|
13
|
-
- API version: 1.
|
|
14
|
-
- SDK version: 0.
|
|
13
|
+
- API version: 1.4.0
|
|
14
|
+
- SDK version: 0.24.0
|
|
15
15
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
16
16
|
|
|
17
17
|
For more information, please visit [https://developer.factset.com/contact](https://developer.factset.com/contact)
|
|
@@ -25,24 +25,24 @@ For more information, please visit [https://developer.factset.com/contact](https
|
|
|
25
25
|
### Poetry
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
poetry add fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.
|
|
28
|
+
poetry add fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.24.0
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
### pip
|
|
32
32
|
|
|
33
33
|
```shell
|
|
34
|
-
pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.
|
|
34
|
+
pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.24.0
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## Usage
|
|
38
38
|
|
|
39
39
|
1. [Generate authentication credentials](../../../../README.md#authentication).
|
|
40
40
|
2. Setup Python environment.
|
|
41
|
-
1. Install and activate python 3.
|
|
41
|
+
1. Install and activate python 3.10+. If you're using [pyenv](https://github.com/pyenv/pyenv):
|
|
42
42
|
|
|
43
43
|
```sh
|
|
44
|
-
pyenv install 3.
|
|
45
|
-
pyenv shell 3.
|
|
44
|
+
pyenv install 3.10.0
|
|
45
|
+
pyenv shell 3.10.0
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
2. (optional) [Install poetry](https://python-poetry.org/docs/#installation).
|
|
@@ -58,7 +58,7 @@ pip install fds.sdk.utils fds.sdk.NaturalLanguageProcessing==0.23.6
|
|
|
58
58
|
from fds.sdk.utils.authentication import ConfidentialClient
|
|
59
59
|
|
|
60
60
|
import fds.sdk.NaturalLanguageProcessing
|
|
61
|
-
from fds.sdk.NaturalLanguageProcessing.api import
|
|
61
|
+
from fds.sdk.NaturalLanguageProcessing.api import ai_themes_api
|
|
62
62
|
from fds.sdk.NaturalLanguageProcessing.models import *
|
|
63
63
|
from dateutil.parser import parse as dateutil_parser
|
|
64
64
|
from pprint import pprint
|
|
@@ -90,48 +90,51 @@ configuration = fds.sdk.NaturalLanguageProcessing.Configuration(
|
|
|
90
90
|
# Enter a context with an instance of the API client
|
|
91
91
|
with fds.sdk.NaturalLanguageProcessing.ApiClient(configuration) as api_client:
|
|
92
92
|
# Create an instance of the API class
|
|
93
|
-
api_instance =
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
api_instance = ai_themes_api.AIThemesApi(api_client)
|
|
94
|
+
themes_parameters_root = ThemesParametersRoot(
|
|
95
|
+
data=ThemesParameters(
|
|
96
|
+
include_sentiments=False,
|
|
97
|
+
text="Studio Entertainment: At Studio Entertainment, operating income decreased in the quarter due to lower theatrical distribution and home entertainment results. Worldwide theatrical results continued to be adversely impacted by COVID-19, as theaters were closed in many key markets both domestically and internationally. With no significant worldwide theatrical releases in the quarter, we faced a difficult comparison against the strong performance of The Lion King and Toy Story 4 in the prior-year quarter. Operating Results: On our last earnings call, we said that we expected Q4 operating results of our DTC businesses to improve by approximately $100mm relative to the prior-year quarter. Our results came in better than that guidance, with operating income at our DTC businesses improving by approximately $300mm vs. the prior year due to better-than-expected performance across all three of our streaming services. I will note that we do not plan to further update any of our subscriber numbers until our Investor Day on December 10 At our International Channels, lower results were due to lower affiliate and advertising revenues, partially offset by a decrease in cost.",
|
|
98
|
+
),
|
|
99
|
+
meta={},
|
|
100
|
+
) # ThemesParametersRoot |
|
|
97
101
|
|
|
98
102
|
try:
|
|
99
|
-
# Endpoint to
|
|
103
|
+
# Endpoint to begin theme extraction job
|
|
100
104
|
# example passing only required values which don't have defaults set
|
|
101
|
-
|
|
102
|
-
api_response = api_instance.summarization_headline(summarization_request=summarization_request)
|
|
105
|
+
api_response = api_instance.themes_extract_themes(themes_parameters_root)
|
|
103
106
|
|
|
104
107
|
pprint(api_response)
|
|
105
108
|
except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
106
|
-
print("Exception when calling
|
|
109
|
+
print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
107
110
|
|
|
108
111
|
# # Get response, http status code and response headers
|
|
109
112
|
# try:
|
|
110
|
-
# # Endpoint to
|
|
111
|
-
# api_response, http_status_code, response_headers = api_instance.
|
|
113
|
+
# # Endpoint to begin theme extraction job
|
|
114
|
+
# api_response, http_status_code, response_headers = api_instance.themes_extract_themes_with_http_info(themes_parameters_root)
|
|
112
115
|
|
|
113
116
|
|
|
114
117
|
# pprint(api_response)
|
|
115
118
|
# pprint(http_status_code)
|
|
116
119
|
# pprint(response_headers)
|
|
117
120
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
118
|
-
# print("Exception when calling
|
|
121
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
119
122
|
|
|
120
123
|
# # Get response asynchronous
|
|
121
124
|
# try:
|
|
122
|
-
# # Endpoint to
|
|
123
|
-
# async_result = api_instance.
|
|
125
|
+
# # Endpoint to begin theme extraction job
|
|
126
|
+
# async_result = api_instance.themes_extract_themes_async(themes_parameters_root)
|
|
124
127
|
# api_response = async_result.get()
|
|
125
128
|
|
|
126
129
|
|
|
127
130
|
# pprint(api_response)
|
|
128
131
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
129
|
-
# print("Exception when calling
|
|
132
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
130
133
|
|
|
131
134
|
# # Get response, http status code and response headers asynchronous
|
|
132
135
|
# try:
|
|
133
|
-
# # Endpoint to
|
|
134
|
-
# async_result = api_instance.
|
|
136
|
+
# # Endpoint to begin theme extraction job
|
|
137
|
+
# async_result = api_instance.themes_extract_themes_with_http_info_async(themes_parameters_root)
|
|
135
138
|
# api_response, http_status_code, response_headers = async_result.get()
|
|
136
139
|
|
|
137
140
|
|
|
@@ -139,7 +142,7 @@ with fds.sdk.NaturalLanguageProcessing.ApiClient(configuration) as api_client:
|
|
|
139
142
|
# pprint(http_status_code)
|
|
140
143
|
# pprint(response_headers)
|
|
141
144
|
# except fds.sdk.NaturalLanguageProcessing.ApiException as e:
|
|
142
|
-
# print("Exception when calling
|
|
145
|
+
# print("Exception when calling AIThemesApi->themes_extract_themes: %s\n" % e)
|
|
143
146
|
|
|
144
147
|
```
|
|
145
148
|
|
|
@@ -233,22 +236,14 @@ All URIs are relative to *https://api.factset.com/cognitive/nlp/v1*
|
|
|
233
236
|
|
|
234
237
|
Class | Method | HTTP request | Description
|
|
235
238
|
------------ | ------------- | ------------- | -------------
|
|
236
|
-
*AITextSummarizationApi* | [**summarization_headline**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_headline) | **POST** /summarization/headline | Endpoint to generate a headline from text
|
|
237
|
-
*AITextSummarizationApi* | [**summarization_headline_and_summary**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_headline_and_summary) | **POST** /summarization/headline-and-summary | Endpoint to summarize and generate a headline from text
|
|
238
|
-
*AITextSummarizationApi* | [**summarization_result**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_result) | **GET** /summarization/result/{resultId} | Endpoint to obtain result of a particular summarization job
|
|
239
|
-
*AITextSummarizationApi* | [**summarization_summary**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AITextSummarizationApi.md#summarization_summary) | **POST** /summarization/summary | Endpoint to summarize text
|
|
240
239
|
*AIThemesApi* | [**themes_extract_themes**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_extract_themes) | **POST** /themes | Endpoint to begin theme extraction job
|
|
241
240
|
*AIThemesApi* | [**themes_get_status**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_get_status) | **GET** /themes/{id}/status | Endpoint to get the completion status of a themes job
|
|
242
241
|
*AIThemesApi* | [**themes_get_themes**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/AIThemesApi.md#themes_get_themes) | **GET** /themes/{id} | Endpoint to get a theme (and sentiments if requested) job result
|
|
243
242
|
*NamedEntityRecognitionApi* | [**ner_entities**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NamedEntityRecognitionApi.md#ner_entities) | **POST** /ner/entities | Endpoint to detect entities from text
|
|
244
|
-
*QuestionAnswerApi* | [**qna_get_answers**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_get_answers) | **GET** /qna/answers/{id} | Endpoint to get the answer(s)
|
|
245
|
-
*QuestionAnswerApi* | [**qna_get_status**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_get_status) | **GET** /qna/answers/{id}/status | Endpoint to get the completion status for a Q&A request
|
|
246
|
-
*QuestionAnswerApi* | [**qna_post_question**](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QuestionAnswerApi.md#qna_post_question) | **POST** /qna/answers | Endpoint to submit a question for answer(s)
|
|
247
243
|
|
|
248
244
|
|
|
249
245
|
## Documentation For Models
|
|
250
246
|
|
|
251
|
-
- [Error](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/Error.md)
|
|
252
247
|
- [ErrorSource](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ErrorSource.md)
|
|
253
248
|
- [HTTPError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/HTTPError.md)
|
|
254
249
|
- [HTTPErrorRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/HTTPErrorRoot.md)
|
|
@@ -258,23 +253,12 @@ Class | Method | HTTP request | Description
|
|
|
258
253
|
- [NERInputSchema](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NERInputSchema.md)
|
|
259
254
|
- [NEROrganization](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NEROrganization.md)
|
|
260
255
|
- [NERResponseSchema](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/NERResponseSchema.md)
|
|
261
|
-
- [QnAAnswer](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswer.md)
|
|
262
|
-
- [QnAAnswerParameters](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerParameters.md)
|
|
263
|
-
- [QnAAnswerParametersRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerParametersRoot.md)
|
|
264
|
-
- [QnAAnswerRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/QnAAnswerRoot.md)
|
|
265
|
-
- [SummarizationHTTPError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationHTTPError.md)
|
|
266
|
-
- [SummarizationRequest](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationRequest.md)
|
|
267
|
-
- [SummarizationResult](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationResult.md)
|
|
268
|
-
- [SummarizationResultID](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/SummarizationResultID.md)
|
|
269
256
|
- [Task](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/Task.md)
|
|
270
257
|
- [TaskRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/TaskRoot.md)
|
|
271
258
|
- [ThemeSentiment](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemeSentiment.md)
|
|
272
259
|
- [ThemeSentimentsRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemeSentimentsRoot.md)
|
|
273
260
|
- [ThemesParameters](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemesParameters.md)
|
|
274
261
|
- [ThemesParametersRoot](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ThemesParametersRoot.md)
|
|
275
|
-
- [ValidationError](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationError.md)
|
|
276
|
-
- [ValidationErrorDetail](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationErrorDetail.md)
|
|
277
|
-
- [ValidationErrorDetailLocation](https://github.com/FactSet/enterprise-sdk/tree/main/code/python/NaturalLanguageProcessing/v1/docs/ValidationErrorDetailLocation.md)
|
|
278
262
|
|
|
279
263
|
|
|
280
264
|
## Documentation For Authorization
|
|
@@ -318,7 +302,7 @@ Please refer to the [contributing guide](../../../../CONTRIBUTING.md).
|
|
|
318
302
|
|
|
319
303
|
## Copyright
|
|
320
304
|
|
|
321
|
-
Copyright
|
|
305
|
+
Copyright 2026 FactSet Research Systems Inc
|
|
322
306
|
|
|
323
307
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
324
308
|
you may not use this file except in compliance with the License.
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.4.0
|
|
9
9
|
Contact: api@factset.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
__version__ = "0.
|
|
14
|
+
__version__ = "0.24.0"
|
|
15
15
|
|
|
16
16
|
# import ApiClient
|
|
17
17
|
from fds.sdk.NaturalLanguageProcessing.api_client import ApiClient
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# do not import all apis into this module because that uses a lot of memory and stack frames
|
|
2
2
|
# if you need the ability to import all apis from one package, import them with
|
|
3
|
-
# from fds.sdk.NaturalLanguageProcessing.apis import
|
|
3
|
+
# from fds.sdk.NaturalLanguageProcessing.apis import AIThemesApi
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -25,6 +25,7 @@ from fds.sdk.NaturalLanguageProcessing.model_utils import ( # noqa: F401
|
|
|
25
25
|
validate_and_convert_types
|
|
26
26
|
)
|
|
27
27
|
from fds.sdk.NaturalLanguageProcessing.exceptions import ApiException
|
|
28
|
+
from fds.sdk.NaturalLanguageProcessing.model.http_error_root import HTTPErrorRoot
|
|
28
29
|
from fds.sdk.NaturalLanguageProcessing.model.ner_input_schema import NERInputSchema
|
|
29
30
|
from fds.sdk.NaturalLanguageProcessing.model.ner_response_schema import NERResponseSchema
|
|
30
31
|
|
|
@@ -47,7 +48,7 @@ class NamedEntityRecognitionApi(object):
|
|
|
47
48
|
self.ner_entities_endpoint = _Endpoint(
|
|
48
49
|
settings={
|
|
49
50
|
'response_type': (
|
|
50
|
-
{ 200: (NERResponseSchema,), 400: (
|
|
51
|
+
{ 200: (NERResponseSchema,), 400: (HTTPErrorRoot,), },
|
|
51
52
|
None
|
|
52
53
|
),
|
|
53
54
|
'auth': [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -116,7 +116,7 @@ class ApiClient(object):
|
|
|
116
116
|
self.default_headers[header_name] = header_value
|
|
117
117
|
self.cookie = cookie
|
|
118
118
|
# Set default User-Agent.
|
|
119
|
-
self.user_agent = f'fds-sdk/python/NaturalLanguageProcessing/0.
|
|
119
|
+
self.user_agent = f'fds-sdk/python/NaturalLanguageProcessing/0.24.0 ({platform.system()}, Python {platform.python_version()})'
|
|
120
120
|
|
|
121
121
|
def __enter__(self):
|
|
122
122
|
return self
|
|
@@ -846,11 +846,11 @@ class Endpoint(object):
|
|
|
846
846
|
""" This method is invoked when endpoints are called
|
|
847
847
|
Example:
|
|
848
848
|
|
|
849
|
-
api_instance =
|
|
850
|
-
api_instance.
|
|
851
|
-
api_instance.
|
|
849
|
+
api_instance = AIThemesApi()
|
|
850
|
+
api_instance.themes_extract_themes # this is an instance of the class Endpoint
|
|
851
|
+
api_instance.themes_extract_themes() # this invokes api_instance.themes_extract_themes.__call__()
|
|
852
852
|
which then invokes the callable functions stored in that endpoint at
|
|
853
|
-
api_instance.
|
|
853
|
+
api_instance.themes_extract_themes.callable or self.callable in this class
|
|
854
854
|
|
|
855
855
|
"""
|
|
856
856
|
return self.callable(self, *args, **kwargs)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# raise a `RecursionError`.
|
|
7
7
|
# In order to avoid this, import only the API that you directly need like:
|
|
8
8
|
#
|
|
9
|
-
# from .api.
|
|
9
|
+
# from .api.ai_themes_api import AIThemesApi
|
|
10
10
|
#
|
|
11
11
|
# or import this package, but before doing it, use:
|
|
12
12
|
#
|
|
@@ -14,7 +14,5 @@
|
|
|
14
14
|
# sys.setrecursionlimit(n)
|
|
15
15
|
|
|
16
16
|
# Import APIs into API package:
|
|
17
|
-
from fds.sdk.NaturalLanguageProcessing.api.ai_text_summarization_api import AITextSummarizationApi
|
|
18
17
|
from fds.sdk.NaturalLanguageProcessing.api.ai_themes_api import AIThemesApi
|
|
19
18
|
from fds.sdk.NaturalLanguageProcessing.api.named_entity_recognition_api import NamedEntityRecognitionApi
|
|
20
|
-
from fds.sdk.NaturalLanguageProcessing.api.question__answer_api import QuestionAnswerApi
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -429,8 +429,8 @@ conf = fds.sdk.NaturalLanguageProcessing.Configuration(
|
|
|
429
429
|
return "Python SDK Debug Report:\n"\
|
|
430
430
|
"OS: {env}\n"\
|
|
431
431
|
"Python Version: {pyversion}\n"\
|
|
432
|
-
"Version of the API: 1.
|
|
433
|
-
"SDK Package Version: 0.
|
|
432
|
+
"Version of the API: 1.4.0\n"\
|
|
433
|
+
"SDK Package Version: 0.24.0".\
|
|
434
434
|
format(env=sys.platform, pyversion=sys.version)
|
|
435
435
|
|
|
436
436
|
def get_host_settings(self):
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
APIs that leverage Natural Language Processing to help extract meaningful data from unstructured text # noqa: E501
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.4.0
|
|
7
7
|
Contact: api@factset.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
"""
|