Skip to content

Commit c976e15

Browse files
authored
Vendor rouge-score into Evaluation SDK and Include NOTICE File (Azure#37905)
* Vendor rouge-score into Evaluation SDK * fix typo in NOTICE * run black * ignore vendor for cspell
1 parent 2c169fd commit c976e15

File tree

12 files changed

+581
-6
lines changed

12 files changed

+581
-6
lines changed

.vscode/cspell.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"sdk/core/azure-servicemanagement-legacy/**",
6262
"sdk/core/corehttp/**",
6363
"sdk/digitaltwins/azure-digitaltwins-core/**",
64+
"sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_vendor/**",
6465
"sdk/evaluation/azure-ai-evaluation/tests/**",
6566
"sdk/eventhub/azure-eventhub-checkpointstoretable/**",
6667
"sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/**",
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
NOTICES AND INFORMATION
2+
Do Not Translate or Localize
3+
4+
This software incorporates material from third parties.
5+
Microsoft makes certain open source code available at https://3rdpartysource.microsoft.com,
6+
or you may send a check or money order for US $5.00, including the product name,
7+
the open source component name, platform, and version number, to:
8+
9+
Source Code Compliance Team
10+
Microsoft Corporation
11+
One Microsoft Way
12+
Redmond, WA 98052
13+
USA
14+
15+
Notwithstanding any other terms, you may reverse engineer this software to the extent
16+
required to debug changes to any libraries licensed under the GNU Lesser General Public License.
17+
18+
License notice for nltk
19+
---------------------------------------------------------
20+
21+
Copyright 2024 The NLTK Project
22+
23+
Licensed under the Apache License, Version 2.0 (the "License");
24+
you may not use this file except in compliance with the License.
25+
You may obtain a copy of the License at
26+
27+
http://www.apache.org/licenses/LICENSE-2.0
28+
29+
Unless required by applicable law or agreed to in writing, software
30+
distributed under the License is distributed on an "AS IS" BASIS,
31+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32+
See the License for the specific language governing permissions and
33+
limitations under the License.
34+
35+
License notice for rouge-score
36+
---------------------------------------------------------
37+
38+
Copyright 2024 The Google Research Authors
39+
40+
Licensed under the Apache License, Version 2.0 (the "License");
41+
you may not use this file except in compliance with the License.
42+
You may obtain a copy of the License at
43+
44+
http://www.apache.org/licenses/LICENSE-2.0
45+
46+
Unless required by applicable law or agreed to in writing, software
47+
distributed under the License is distributed on an "AS IS" BASIS,
48+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49+
See the License for the specific language governing permissions and
50+
limitations under the License.

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_rouge/_rouge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from enum import Enum
55

66
from promptflow._utils.async_utils import async_run_allowing_running_loop
7-
from rouge_score import rouge_scorer
7+
from azure.ai.evaluation._vendor.rouge_score import rouge_scorer
88

99
from azure.core import CaseInsensitiveEnumMeta
1010

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ---------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# ---------------------------------------------------------
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# coding=utf-8
2+
# Copyright 2024 The Google Research Authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.

0 commit comments

Comments
 (0)