@Sanam Khalili Do you see the required result if you used begin_analyze_document_from_url()
method?
If yes, then the complete data of the file might not be saved when using local file to pass to begin_analyze_document()
Based on my experience, this might not be the case. Since GUI is showing the required result, I think the issue might be the stringIndexType
parameter value with the SDK. By default, the REST API call from studio uses stringIndexType=utf16CodeUnit
where as SDK uses stringIndexType=textElements
this might cause this discrepancy for some documents based on its format. Try passing stringIndexType
with value utf16CodeUnit
to begin_analyze_document()
and see if it helps. Here is the reference to this method.
If you still see an issue with SDK response, can you add an issue on the SDK repo for python with details of the request?