AnalyzeDocumentOptions Class
- java.
lang. Object - com.
azure. ai. formrecognizer. documentanalysis. models. AnalyzeDocumentOptions
- com.
public final class AnalyzeDocumentOptions
The configurable options to be passed when using analyze document API on Document Analysis client.
Constructor Summary
Constructor | Description |
---|---|
AnalyzeDocumentOptions() |
Creates a new instance of Analyze |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Document |
getDocumentAnalysisFeatures()
Get the list of optional analysis features. |
String |
getLocale()
Get the locale hint for text recognition and document analysis. |
List<String> |
getPages()
Get the custom page numbers for multipage documents(PDF/TIFF). |
Analyze |
setDocumentAnalysisFeatures(DocumentAnalysisFeature[] documentAnalysisFeatures)
Set optional analysis features. |
Analyze |
setDocumentAnalysisFeatures(List<DocumentAnalysisFeature> documentAnalysisFeatures)
Set the list of optional analysis features. |
Analyze |
setLocale(String locale)
Set the locale value. |
Analyze |
setPages(List<String> pages)
Set the custom page numbers for multipage documents(PDF/TIFF). |
Methods inherited from java.lang.Object
Constructor Details
AnalyzeDocumentOptions
public AnalyzeDocumentOptions()
Creates a new instance of AnalyzeDocumentOptions.
Method Details
getDocumentAnalysisFeatures
public List
Get the list of optional analysis features.
Returns:
getLocale
public String getLocale()
Get the locale hint for text recognition and document analysis. Value may contain only the language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").
Returns:
getPages
public List
Get the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Returns:
setDocumentAnalysisFeatures
public AnalyzeDocumentOptions setDocumentAnalysisFeatures(DocumentAnalysisFeature[] documentAnalysisFeatures)
Set optional analysis features.
Parameters:
Returns:
AnalyzeDocumentOptions
value.setDocumentAnalysisFeatures
public AnalyzeDocumentOptions setDocumentAnalysisFeatures(List
Set the list of optional analysis features.
Parameters:
Returns:
AnalyzeDocumentOptions
value.setLocale
public AnalyzeDocumentOptions setLocale(String locale)
Set the locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US.
Parameters:
Returns:
AnalyzeDocumentOptions
value.setPages
public AnalyzeDocumentOptions setPages(List
Set the custom page numbers for multipage documents(PDF/TIFF). Input the number of the pages you want to get the recognized result for.
For a range of pages, use a hyphen, ex - ["1-3"]. Separate each page or a page range with a comma, ex - ["1-3", 4].
Parameters:
Returns:
AnalyzeDocumentOptions
value.Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기