Skip to content

Commit 342063e

Browse files
committed
Morph changes
1 parent 6e6b850 commit 342063e

16 files changed

+36
-38
lines changed

dist/firstlanguage_python-2.3.tar.gz

40.9 KB
Binary file not shown.

doc/models/orignal-string.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
# Orignal String
2+
# original String
33

44
## Structure
55

6-
`OrignalString`
6+
`originalString`
77

88
## Fields
99

doc/models/responsemorph.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
| Name | Type | Tags | Description |
1111
| --- | --- | --- | --- |
12-
| `orignal_string` | [`OrignalString`](../../doc/models/orignal-string.md) | Optional | - |
12+
| `original_string` | [`originalString`](../../doc/models/original-string.md) | Optional | - |
1313

1414
## Example (as JSON)
1515

1616
```json
1717
{
18-
"orignalString": null
18+
"originalString": null
1919
}
2020
```
2121

example_Stemmer.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,26 @@
77
apikey='63af276e-34fe-4fd5-a474-0c69847f25e1',
88
environment=Environment.PRODUCTION,)
99

10-
reqbody='{"input":{"text":"அவள் வேகமாக ஓடினாள்","lang":"ta"} }'
10+
reqbody='{"input":{"text":"i am selva","lang":"en"} }'
1111

1212
body = jsonpickle.decode(reqbody)
1313
basic_api_controller = client.basic_api
1414

1515
advanced_api_controller = client.advanced_api
1616

17-
result = basic_api_controller.get_stemmer(body)
17+
result = basic_api_controller.get_morph(body)
1818

19-
for res in result:
20-
print("Original Text passed: "+res.original_text)
21-
print("Stemmed result: "+res.stem)
19+
print(result.original_string)
2220

23-
'{"input":{"lang":"ja","url": "https://drive.google.com/uc?id=1JFV4lyT1Ajn_6jfmf5CXxw5bzQ0ra1V5", "contentType":"pdf","preserveFormat":"true"}}'
21+
#'{"input":{"lang":"ja","url": "https://drive.google.com/uc?id=1JFV4lyT1Ajn_6jfmf5CXxw5bzQ0ra1V5", "contentType":"pdf","preserveFormat":"true"}}'
2422
#reqbody='{"input":{"text":"Welcome to Google and FirstLanguage","lang":"en"} }'
25-
reqbody='{"input":{"lang":"ja","url": "https://drive.google.com/uc?id=1JFV4lyT1Ajn_6jfmf5CXxw5bzQ0ra1V5", "contentType":"pdf","preserveFormat":"false"} }'
23+
#reqbody='{"input":{"lang":"ja","url": "https://drive.google.com/uc?id=1JFV4lyT1Ajn_6jfmf5CXxw5bzQ0ra1V5", "contentType":"pdf","preserveFormat":"false"} }'
2624
#reqbody='{"input":{"lang":"ja","url": "http://www.dhs.state.il.us/OneNetLibrary/27897/documents/Initiatives/IITAA/Sample-Document.docx", "contentType":"docx","preserveFormat":"true"} }'
27-
body = jsonpickle.decode(reqbody)
25+
#body = jsonpickle.decode(reqbody)
2826

2927

30-
result = advanced_api_controller.get_translate(body)
31-
print(result)
28+
#result = advanced_api_controller.get_translate(body)
29+
#print(result)
3230
# if(body['input']['contentType'] == 'docx'):
3331
# #store the binary value returned to a file
3432
# with open('output.docx', 'wb') as f:

firstlanguage_python.egg-info/SOURCES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ firstlanguage_python/models/input_6.py
7474
firstlanguage_python/models/input_7.py
7575
firstlanguage_python/models/input_8.py
7676
firstlanguage_python/models/input_9.py
77-
firstlanguage_python/models/orignal_string.py
77+
firstlanguage_python/models/original_string.py
7878
firstlanguage_python/models/responseclassify.py
7979
firstlanguage_python/models/responselemma.py
8080
firstlanguage_python/models/responsemorph.py

firstlanguage_python/models/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
__all__ = [
1+
__all__ = [
22
'responseclassify',
33
'responsemorph',
44
'text_input',
55
'text_input_classify',
66
'text_input_tamil',
77
'url_input',
88
'url_input_classify',
9-
'api_imagecaption_request',
10-
'api_imagecaption_response',
9+
'api_imagecaption_request',
10+
'api_imagecaption_response',
1111
'api_ner_request',
1212
'api_ner_request_1',
1313
'api_ner_response',
@@ -42,9 +42,9 @@
4242
'input_13',
4343
'input_14',
4444
'input_15',
45-
'input_16',
46-
'orignal_string',
45+
'input_16',
46+
'original_string',
4747
'responselemma',
4848
'responsepo',
49-
'responsestem',
49+
'responsestem',
5050
]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)