📦 Initialize Geulbeot structure and merge Prompts & test projects
This commit is contained in:
13
02. Prompts/문서생성/codedomain/엔지니어링데일리_기자_Python_v01.py
Normal file
13
02. Prompts/문서생성/codedomain/엔지니어링데일리_기자_Python_v01.py
Normal file
@@ -0,0 +1,13 @@
|
||||
def clean_text(text):
|
||||
replacements = {
|
||||
' ': ' ', '‘': "'", '’': "'", '“': '"', '”': '"',
|
||||
'&': '&', '<': '<', '>': '>', ''': "'",
|
||||
'"' : "'", '·': "'"
|
||||
}
|
||||
|
||||
for entity, replacement in replacements.items():
|
||||
text = text.replace(entity, replacement)
|
||||
|
||||
text = re.sub(r'<[^>]+>', '', text)
|
||||
text = re.sub(r'\(엔지니어링데일리\).*?기자=', '', text) # (엔지니어링데일리) *** 기자= 패턴 삭제
|
||||
text = re.sub(r'\[국토일보\s.*?
|
||||
Reference in New Issue
Block a user