We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c27271a commit 59e6c8bCopy full SHA for 59e6c8b
1 file changed
aider/helpers/similarity.py
@@ -79,7 +79,7 @@ def create_bigram_vector(texts):
79
chars = np.array(list(text_lower))
80
81
# Create bigrams by combining consecutive characters
82
- bigrams = np.core.defchararray.add(chars[:-1], chars[1:])
+ bigrams = np.char.add(chars[:-1], chars[1:])
83
84
# Filter only alphabetic bigrams
85
mask = np.array([bg.isalpha() for bg in bigrams])
0 commit comments