Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Form recognizer readme #24476

Merged
merged 5 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
326 changes: 166 additions & 160 deletions sdk/formrecognizer/azure-ai-formrecognizer/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.azure.ai.formrecognizer.models.DocumentEntity;
import com.azure.ai.formrecognizer.models.DocumentKeyValuePair;
import com.azure.ai.formrecognizer.models.DocumentPage;
import com.azure.ai.formrecognizer.models.StringIndexType;
import com.azure.ai.formrecognizer.models.AnalyzeResult;
import com.azure.ai.formrecognizer.models.AnalyzedDocument;
import com.azure.ai.formrecognizer.models.DocumentStyle;
Expand All @@ -27,7 +26,6 @@ private AnalyzeResultHelper() { }
*/
public interface AnalyzeResultAccessor {
void setModelId(AnalyzeResult analyzeResult, String id);
void setStringIndexType(AnalyzeResult analyzeResult, StringIndexType stringIndexType);
void setContent(AnalyzeResult analyzeResult, String content);
void setPages(AnalyzeResult analyzeResult, List<DocumentPage> pages);
void setTables(AnalyzeResult analyzeResult, List<DocumentTable> tables);
Expand All @@ -50,10 +48,6 @@ static void setModelId(AnalyzeResult analyzeResult, String modelId) {
accessor.setModelId(analyzeResult, modelId);
}

static void setStringIndexType(AnalyzeResult analyzeResult, StringIndexType stringIndexType) {
accessor.setStringIndexType(analyzeResult, stringIndexType);
}

static void setContent(AnalyzeResult analyzeResult, String content) {
accessor.setContent(analyzeResult, content);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import com.azure.ai.formrecognizer.models.DocumentWord;
import com.azure.ai.formrecognizer.models.LengthUnit;
import com.azure.ai.formrecognizer.models.SelectionMarkState;
import com.azure.ai.formrecognizer.models.StringIndexType;
import com.azure.core.exception.HttpResponseException;
import com.azure.core.util.CoreUtils;

Expand Down Expand Up @@ -86,8 +85,6 @@ public static AnalyzeResult toAnalyzeResultOperation(

AnalyzeResultHelper.setContent(analyzeResult, innerAnalyzeResult.getContent());
AnalyzeResultHelper.setModelId(analyzeResult, innerAnalyzeResult.getModelId());
AnalyzeResultHelper.setStringIndexType(analyzeResult,
StringIndexType.fromString(innerAnalyzeResult.getStringIndexType().toString()));

// add document entities
if (!CoreUtils.isNullOrEmpty(innerAnalyzeResult.getEntities())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ public final class AnalyzeResult {
*/
private String modelId;

/*
* Method used to compute string offset and length.
*/
private StringIndexType stringIndexType;

/*
* Concatenate string representation of all textual and visual elements in
* reading order.
Expand Down Expand Up @@ -77,25 +72,6 @@ void setModelId(String modelId) {
this.modelId = modelId;
}

/**
* Get the stringIndexType property: Method used to compute string offset and length.
*
* @return the stringIndexType value.
*/
public StringIndexType getStringIndexType() {
return this.stringIndexType;
}

/**
* Set the stringIndexType property: Method used to compute string offset and length.
*
* @param stringIndexType the stringIndexType value to set.
* @return the AnalyzeResult object itself.
*/
void setStringIndexType(StringIndexType stringIndexType) {
this.stringIndexType = stringIndexType;
}

/**
* Get the content property: Concatenate string representation of all textual and visual elements in reading order.
*
Expand Down Expand Up @@ -236,11 +212,6 @@ public void setModelId(AnalyzeResult analyzeResult, String id) {
analyzeResult.setModelId(id);
}

@Override
public void setStringIndexType(AnalyzeResult analyzeResult, StringIndexType stringIndexType) {
analyzeResult.setStringIndexType(stringIndexType);
}

@Override
public void setContent(AnalyzeResult analyzeResult, String content) {
analyzeResult.setContent(content);
Expand Down

This file was deleted.

Loading