Commit 0a19c79d authored by Abdelwahab HEBA's avatar Abdelwahab HEBA
Browse files

try to split jonction

parent b123acb7
...@@ -85,7 +85,7 @@ def transformation_text(text): ...@@ -85,7 +85,7 @@ def transformation_text(text):
text = re.sub(r"\"+", "", text) text = re.sub(r"\"+", "", text)
# t 'avais # t 'avais
text = re.sub(r"[ ]\'", "\'", text) text = re.sub(r"[ ]\'", "\'", text)
#text = re.sub(r"\'", "\' ", text) text = re.sub(r"\'", "\' ", text)
# for example : A43 # for example : A43
#num_list = re.findall("\w+?-?\d+", text) #num_list = re.findall("\w+?-?\d+", text)
num_list = re.findall("[a-zA-Z|à|è|é|ù]+\'*[a-zA-Z|à|é|è|ù]*[-]?\d+""", text) num_list = re.findall("[a-zA-Z|à|è|é|ù]+\'*[a-zA-Z|à|é|è|ù]*[-]?\d+""", text)
......
...@@ -85,7 +85,7 @@ def transformation_text(text): ...@@ -85,7 +85,7 @@ def transformation_text(text):
text = re.sub(r"\"+", "", text) text = re.sub(r"\"+", "", text)
# t 'avais # t 'avais
text = re.sub(r"[ ]\'", "\'", text) text = re.sub(r"[ ]\'", "\'", text)
#text = re.sub(r"\'", "\' ", text) text = re.sub(r"\'", "\' ", text)
# for example : A43 # for example : A43
#num_list = re.findall("\w+?-?\d+", text) #num_list = re.findall("\w+?-?\d+", text)
num_list = re.findall("[a-zA-Z|à|è|é|ù]+\'*[a-zA-Z|à|é|è|ù]*[-]?\d+""", text) num_list = re.findall("[a-zA-Z|à|è|é|ù]+\'*[a-zA-Z|à|é|è|ù]*[-]?\d+""", text)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment