Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public class DocumentResultCollection<T> extends IterableStream<T> {
*
* @param flux Flux of items to iterate over.
*/
public DocumentResultCollection(Flux<T> flux) {
DocumentResultCollection(Flux<T> flux) {
super(flux);
}

public String getModelVersion() {
return modelVersion;
}

DocumentResultCollection setModelVersion(String modelVersion) {
DocumentResultCollection<T> setModelVersion(String modelVersion) {
this.modelVersion = modelVersion;
return this;
}
Expand All @@ -33,7 +33,7 @@ public TextBatchStatistics getBatchStatistics() {
return statistics;
}

DocumentResultCollection setBatchStatistics(TextBatchStatistics statistics) {
DocumentResultCollection<T> setBatchStatistics(TextBatchStatistics statistics) {
this.statistics = statistics;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ LinkedEntity setId(String id) {
*
* @return the url value.
*/
public String getUrl() {
public String getUri() {
return this.url;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void main(String[] args) {
client.recognizeLinkedEntities(text, "US").getLinkedEntities().stream().forEach(
linkedEntity -> System.out.printf("Recognized Linked NamedEntity: %s, URL: %s, Data Source: %s",
linkedEntity.getName(),
linkedEntity.getUrl(),
linkedEntity.getUri(),
linkedEntity.getDataSource()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.azure.cs.textanalytics.models.DetectedLanguageResult;
import com.azure.cs.textanalytics.models.TextBatchStatistics;
import com.azure.cs.textanalytics.models.DocumentResultCollection;
import com.azure.cs.textanalytics.models.DetectLanguageInput;
import com.azure.cs.textanalytics.models.TextAnalyticsRequestOptions;

import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public static void main(String[] args) {
detectedBatchResult.stream().forEach(linkedEntityDocumentResult ->
linkedEntityDocumentResult.getLinkedEntities().stream().forEach(linkedEntity ->
System.out.printf("Recognized Linked NamedEntity: %s, URL: %s, Data Source: %s",
linkedEntity.getName(), linkedEntity.getUrl(), linkedEntity.getDataSource())));
linkedEntity.getName(), linkedEntity.getUri(), linkedEntity.getDataSource())));
}
}