Skip to content

Commit

Permalink
Update Form recognizer readme (#24476)
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaity authored Sep 30, 2021
1 parent b7bcbe3 commit 313b6b6
Show file tree
Hide file tree
Showing 8 changed files with 288 additions and 406 deletions.
345 changes: 182 additions & 163 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

0 comments on commit 313b6b6

Please sign in to comment.