250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 공분산
- GenericGBQException
- chatGPT
- subdag
- airflow subdag
- hadoop
- spark udf
- correlation
- login crawling
- Retry
- tensorflow text
- BigQuery
- session 유지
- UDF
- youtube data
- TensorFlow
- XAI
- API
- requests
- gather_nd
- Counterfactual Explanations
- integrated gradient
- API Gateway
- 유튜브 API
- grad-cam
- flask
- top_k
- 상관관계
- GCP
- Airflow
Archives
- Today
- Total
데이터과학 삼학년
[Text Preprocessing] re를 활용한 문자(한글,영어), 숫자만 가져오기 본문
Natural Language Processing
[Text Preprocessing] re를 활용한 문자(한글,영어), 숫자만 가져오기
Dan-k 2020. 7. 21. 14:37반응형
text 전처리에서 문자와 숫자만 가져오는 경우 코드
import re
txt = '가 1Ace& *+ナルト김밥★'
re.sub('[^A-Za-z0-9가-힣 ]','', txt) # 띄어쓰기 유지
=======
'가 1Ace 김밥'
728x90
반응형
LIST
'Natural Language Processing' 카테고리의 다른 글
Comments