Skip to content

Commit

Permalink
remove side effect. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxuechen authored Jun 13, 2023
1 parent 2b22201 commit 80208d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/alpaca_farm/auto_annotations/pairwise_annotators.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import copy
import logging
import os
import re
Expand Down Expand Up @@ -397,7 +398,7 @@ def _initialize_annotators(

def _annotate(self, df_to_annotate: pd.DataFrame, **decoding_kwargs) -> pd.DataFrame:
"""Annotate the examples."""
curr_decoding_kwargs = self.decoding_kwargs
curr_decoding_kwargs = copy.deepcopy(self.decoding_kwargs)
curr_decoding_kwargs.update(decoding_kwargs)

df_annotated = df_to_annotate
Expand Down

0 comments on commit 80208d1

Please sign in to comment.