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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應