Skip to content

Commit a77a010

Browse files
committed
more cleanup
1 parent b4090fd commit a77a010

File tree

2 files changed

+17
-51
lines changed

2 files changed

+17
-51
lines changed

building-intelligent-applications/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ To run Python script we need install OCI command line interface and to setup con
473473
region=<Region-OCID>
474474

475475

476-
**I** f you would like to know more about setting up OCI Command Line Interface, please check my video on that (Lab 3 of [AI for Healthcare][28] Livelabs)
476+
If you would like to know more about setting up OCI Command Line Interface, please check my video on that (Lab 3 of [AI for Healthcare][28] Livelabs)
477477

478478

479479
[28]: https://bit.ly/O_AI_healthcare

text-analysis-and-translation/README.md

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Provide **User OCID** , **Tenancy OCID** , **Fingerprint** , **Private Key** and
7373

7474
[7]: images/1706267038395.png
7575

76-
_Note: If you are new to OCI CLI (Command Line Interface) and would like to explore it further, please check my [AI for Healthcare][8] (Lab 3) _
76+
_Note: If you are new to OCI CLI (Command Line Interface) and would like to explore it further, please check my [AI for Healthcare][8] (Lab 3)_
7777

7878

7979
[8]: https://bit.ly/O_AI_healthcare
@@ -87,11 +87,8 @@ This page will have the following elements
8787
- Button to Translate
8888
- OUTPUT -> Type **Display Only** display translated output.
8989
- SOURCE_LANG -> Type **Display Only** to display detected source language.
90-
91-
92-
93-
94-
At the time of this article, the following languages are supported:
90+
91+
At the time of this article, the following languages are supported:
9592

9693
Arabic (ar)
9794
Brazilian Portuguese (pt-BR)
@@ -153,11 +150,8 @@ Select **When Button Pressed** and select **Translate** button
153150
Process on button click
154151

155152
Write the **PL/SQL code** block to invoke Language REST API service. Unless if you want to explicitly mention input language we can let the service auto detect input language with **auto** as **language code** .
156-
157-
158-
159-
160-
--REST API for OCI Language Translation Service, your selected region can vary from us-phoenix-1 to some other region.
153+
154+
--REST API for OCI Language Translation Service, your selected region can vary from us-phoenix-1 to some other region.
161155

162156
https://language.aiservice.us-phoenix-1.oci.oraclecloud.com/20221001/actions/batchLanguageTranslation
163157

@@ -193,11 +187,8 @@ Write the **PL/SQL code** block to invoke Language REST API service. Unless if y
193187
194188

195189
Couple of changes that you would need to make in this code, replace your web credentials in the variable **l_web_cred** , compartment id in the JSON payload **l_body** and page numbers for example :P87_INPUT will be different as per your APEX page item.
196-
197-
198-
199-
200-
-- Complete code for Text translation
190+
191+
-- Complete code for Text translation
201192
-- Author: Madhusudhan Rao
202193

203194
DECLARE
@@ -259,9 +250,7 @@ Couple of changes that you would need to make in this code, replace your web cre
259250
End Loop;
260251
261252
END;
262-
263-
264-
253+
265254

266255
You can download this source from [my GitHub location][13]
267256

@@ -276,55 +265,32 @@ Now we are all set to translate our text content by running the page. click on *
276265
[14]: images/1706289423938.png
277266

278267
Running the APEX page
279-
280-
281-
282-
283-
Input: Hello beautiful world
268+
269+
Input: Hello beautiful world
284270
Target: Simplified Chinese
285271
Output: 你好,美丽的世界
286-
287-
288-
289272

290273
![][15]
291-
292-
274+
293275
[15]: images/1706269487347.png
294276

295277

296-
297-
298-
Input: Good morning have a great day
278+
Input: Good morning have a great day
299279
Italian: Buongiorno buona giornata
300-
301-
302-
303280

304281
![][16]
305-
306-
307-
[16]: images/1706269657080.png
308282

283+
[16]: images/1706269657080.png
309284

310-
311-
312-
Input: Buongiorno buona giornata
285+
Input: Buongiorno buona giornata
313286
Japanese: おはようございます
314287

315288
![][17]
316-
317-
318-
[17]: images/1706269748424.png
319289

290+
[17]: images/1706269748424.png
320291

321-
322-
323-
Input: good morning have a great day
292+
Input: good morning have a great day
324293
Arabic: صباح الخير لديك يوم عظيم
325-
326-
327-
328294

329295
![][18]
330296

0 commit comments

Comments
 (0)