You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-6Lines changed: 38 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,17 +163,49 @@ for ticker in references.tickers:
163
163
print(ticker)
164
164
```
165
165
166
-
###Text Analytics
166
+
## Text Analytics
167
167
168
168
Analyse your own content using RavenPack’s proprietary NLP technology.
169
169
170
-
The API for analyzing your internal content is still in beta and may change in the future. You can request an early
171
-
access and [see an example of usage here](ravenpackapi/examples/text_extraction.py).
170
+
The API for analyzing your internal content is still in beta and may change in the future. You can request an early access and [see an example of usage here](ravenpackapi/examples/text_analytics_example.py).
171
+
172
+
### Uploading a file
173
+
Upload a file to the system. In order to successfully have your files analized by RavenPack's text analytics platform, you need to perform the following method:
174
+
175
+
```python
176
+
f = api.upload.file("_orig.doc")
177
+
```
178
+
179
+
Different options and features are available when uploading a file for development. For more information, please check the user guide found on RavenPack's platform.
180
+
181
+
### Getting analytics
182
+
Saves analytics for the processed files. You can choose to retrieve analytics in JSON-Lines or CSV format:
183
+
184
+
```python
185
+
f.save_analytics("_analytics.json")
186
+
```
187
+
188
+
### Getting normalized documents
189
+
RavenPack’s Text Analytics provides normalized content in JSON format, along with text categorization, tables in HTML format and metadata derived from the original document.
190
+
191
+
```python
192
+
f.save_text_extraction("_text_extraction.json")
193
+
```
194
+
195
+
It is also possible to obtain the normalized content in JSON format, along with annotations of entities, events and analytics derived from the content.
For further details, please [see the example of usage exposed here](ravenpackapi/examples/text_analytics_example.py).
202
+
203
+
204
+
172
205
173
206
### Accessing the low-level requests
174
207
175
-
RavenPack API wrapper is using the [requests library](https://2.python-requests.org) to do HTTPS requests, you can set
176
-
common requests parameters to all the outbound calls by setting the `common_request_params` attribute.
208
+
RavenPack API wrapper is using the [requests library](https://2.python-requests.org) to do HTTPS requests, you can set common requests parameters to all the outbound calls by setting the `common_request_params` attribute.
177
209
178
210
For example, to disable HTTPS certificate verification and to setup your internal proxy:
0 commit comments