Upload folder using huggingface_hub
Browse files
lcs.py
CHANGED
|
@@ -52,7 +52,6 @@ def find_common_gram_positions(str_list, common_grams):
|
|
| 52 |
|
| 53 |
# Create a list to store positions of common grams for the current sentence
|
| 54 |
sentence_positions = []
|
| 55 |
-
|
| 56 |
for gram in common_grams:
|
| 57 |
# Clean the gram for matching
|
| 58 |
cleaned_gram = re.sub(r'[^\w\s]', '', gram).lower()
|
|
|
|
| 52 |
|
| 53 |
# Create a list to store positions of common grams for the current sentence
|
| 54 |
sentence_positions = []
|
|
|
|
| 55 |
for gram in common_grams:
|
| 56 |
# Clean the gram for matching
|
| 57 |
cleaned_gram = re.sub(r'[^\w\s]', '', gram).lower()
|