Skip to content

Commit 160eab6

Browse files
authored
[language text] Remove auto language detection tests & update healthcare expectations (Azure#25891)
Remove auto language detection test to prepare for release, update healthcare related expectations.
1 parent d474152 commit 160eab6

File tree

3 files changed

+19
-366
lines changed

3 files changed

+19
-366
lines changed

sdk/cognitivelanguage/ai-language-text/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/cognitivelanguage/ai-language-text",
5-
"Tag": "js/cognitivelanguage/ai-language-text_ccae2f3f11"
5+
"Tag": "js/cognitivelanguage/ai-language-text_b611b37431"
66
}

sdk/cognitivelanguage/ai-language-text/test/public/analyzeBatch.spec.ts

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ import {
4343
expectation9,
4444
expectation30,
4545
expectation31,
46-
expectation71,
4746
} from "./expectations";
4847
import { windows365ArticlePart1, windows365ArticlePart2 } from "./inputs";
4948

@@ -804,43 +803,6 @@ matrix([["APIKey", "AAD"]] as const, async (authMethod: AuthMethod) => {
804803
await assertActionsResults(await poller.pollUntilDone(), expectation15);
805804
});
806805

807-
// TODO: Unskip when hear back from service team on 'isLanguageDefaulted' property
808-
it.skip("whole batch input with auto language detection", async function () {
809-
const docs = [
810-
"I will go to the park.",
811-
"Este es un document escrito en Español.",
812-
"猫は幸せ",
813-
];
814-
const poller = await client.beginAnalyzeBatch(
815-
[
816-
{
817-
kind: AnalyzeBatchActionNames.EntityRecognition,
818-
},
819-
{
820-
kind: AnalyzeBatchActionNames.PiiEntityRecognition,
821-
},
822-
{
823-
kind: AnalyzeBatchActionNames.SentimentAnalysis,
824-
},
825-
{
826-
kind: AnalyzeBatchActionNames.KeyPhraseExtraction,
827-
},
828-
{
829-
kind: AnalyzeBatchActionNames.EntityLinking,
830-
},
831-
{
832-
kind: AnalyzeBatchActionNames.Healthcare,
833-
},
834-
],
835-
docs,
836-
"auto",
837-
{
838-
updateIntervalInMs: pollingInterval,
839-
}
840-
);
841-
await assertActionsResults(await poller.pollUntilDone(), expectation71);
842-
});
843-
844806
it("invalid language hint", async function () {
845807
const docs = ["This should fail because we're passing in an invalid language hint"];
846808
const poller = await client.beginAnalyzeBatch(
@@ -1005,7 +967,7 @@ matrix([["APIKey", "AAD"]] as const, async (authMethod: AuthMethod) => {
1005967
});
1006968

1007969
describe("stringIndexType", function () {
1008-
it("family emoji wit skin tone modifier", async function () {
970+
it("family emoji with skin tone modifier", async function () {
1009971
const docs = ["👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987"];
1010972
const poller = await client.beginAnalyzeBatch(
1011973
[
@@ -1023,7 +985,7 @@ matrix([["APIKey", "AAD"]] as const, async (authMethod: AuthMethod) => {
1023985
await assertActionsResults(await poller.pollUntilDone(), expectation18);
1024986
});
1025987

1026-
it("family emoji wit skin tone modifier with Utf16CodeUnit", async function () {
988+
it("family emoji with skin tone modifier with Utf16CodeUnit", async function () {
1027989
const docs = ["👩🏻‍👩🏽‍👧🏾‍👦🏿 ibuprofen"];
1028990
const poller = await client.beginAnalyzeBatch(
1029991
[
@@ -1041,7 +1003,7 @@ matrix([["APIKey", "AAD"]] as const, async (authMethod: AuthMethod) => {
10411003
await assertActionsResults(await poller.pollUntilDone(), expectation22);
10421004
});
10431005

1044-
it("family emoji wit skin tone modifier with UnicodeCodePoint", async function () {
1006+
it("family emoji with skin tone modifier with UnicodeCodePoint", async function () {
10451007
const docs = ["👩🏻‍👩🏽‍👧🏾‍👦🏿 ibuprofen"];
10461008
const poller = await client.beginAnalyzeBatch(
10471009
[

0 commit comments

Comments
 (0)