.../api/transliterate |
curl $ENDPOINT_URL \
-F input_text=udāharaṇam \
-F from_scheme=IAST \
-F to_scheme=HK
or
curl $ENDPOINT_URL -d "{
"input_text":"udāharaṇam",
"from_scheme":"IAST",
"to_scheme":"HK"
}" \
-H "Content-Type: application/json" |
curl $ENDPOINT_URL \
-F input_file=@/path/to/file \
-F from_scheme=IAST \
-F to_scheme=HK |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": "udāharaṇam",
"from_scheme": "IAST",
"to_scheme": "HK"
}).text
or
result = requests.post(
ENDPOINT_URL,
json={
"input_text": "udāharaṇam",
"from_scheme": "IAST",
"to_scheme": "HK"
}).text |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": open("path/to/file", "rb"),
"from_scheme": "IAST",
"to_scheme": "HK"
}).text
or
result = requests.post(
ENDPOINT_URL,
files={
"input_file": open("path/to/file", "rb")
},
data={
"from_scheme": "IAST",
"to_scheme": "HK"
}).text
|
.../api/scan |
curl $ENDPOINT_URL \
-F input_text="dharmakṣetre kurukṣetre" \
-F from_scheme=IAST \
-F to_scheme=HK \
-F show_weights=true \
-F show_morae=true \
-F show_gaRas=true \
-F show_alignment=true |
curl $ENDPOINT_URL \
-F input_file=@/path/to/file \
-F from_scheme=IAST \
-F to_scheme=HK \
-F show_weights=true \
-F show_morae=true \
-F show_gaRas=true \
-F show_alignment=true |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": "udāharaṇam",
"from_scheme": "IAST",
"to_scheme": "HK",
"show_weights": True,
"show_morae": True,
"show_gaRas": True,
"show_alignment": True
}).text |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": open("path/to/file", "rb"),
"from_scheme": "IAST",
"to_scheme": "HK",
"show_weights": True,
"show_morae": True,
"show_gaRas": True,
"show_alignment": True
}).text |
.../api/identify-meter |
curl $ENDPOINT_URL \
-F input_text="dharmakṣetre kurukṣetre samavetāḥ yuyutsavaḥ" \
-F from_scheme=IAST \
-F to_scheme=HK \
-F show_weights=true \
-F show_morae=true \
-F show_gaRas=true \
-F show_alignment=true \
-F resplit_option=resplit_lite_keep_mid |
curl $ENDPOINT_URL \
-F input_file=@/path/to/file \
-F from_scheme=IAST \
-F to_scheme=HK \
-F show_weights=true \
-F show_morae=true \
-F show_gaRas=true \
-F show_alignment=true \
-F resplit_option=resplit_lite_keep_mid |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": "udāharaṇam",
"from_scheme": "IAST",
"to_scheme": "HK",
"show_weights": True,
"show_morae": True,
"show_gaRas": True,
"show_alignment": True,
"resplit_option": "resplit_lite_keep_mid"
}).text |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": open("path/to/file", "rb"),
"from_scheme": "IAST",
"to_scheme": "HK",
"show_weights": True,
"show_morae": True,
"show_gaRas": True,
"show_alignment": True,
"resplit_option": "resplit_lite_keep_mid"
}).text |
.../api/split |
curl $ENDPOINT_URL \
-F input_text=tathodāharaṇam \
-F from_scheme=IAST \
-F to_scheme=HK |
curl $ENDPOINT_URL \
-F input_file=@/path/to/file \
-F from_scheme=IAST \
-F to_scheme=HK |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": "tathodāharaṇam",
"from_scheme": "IAST",
"to_scheme": "HK"
}).text |
result = requests.post(
ENDPOINT_URL,
data={
"input_text": open("path/to/file", "rb"),
"from_scheme": "IAST",
"to_scheme": "HK"
}).text |