From be85b62a423d6af7f5b1db64261be28a9db8a0e6 Mon Sep 17 00:00:00 2001 From: TomuHirata Date: Thu, 6 Mar 2025 14:22:25 +0900 Subject: [PATCH] fix undefined attributes (#7916) --- dspy/dsp/utils/dpr.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dspy/dsp/utils/dpr.py b/dspy/dsp/utils/dpr.py index d4d18f84ff..3f9531553f 100644 --- a/dspy/dsp/utils/dpr.py +++ b/dspy/dsp/utils/dpr.py @@ -5,9 +5,11 @@ """ import unicodedata - +import copy +import logging import regex +logger = logging.getLogger(__name__) class Tokens: """A class to represent a list of tokenized text."""