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 | 29 | 30 | 31 |
Tags
- requests
- API
- API Gateway
- hadoop
- gather_nd
- top_k
- 상관관계
- youtube data
- spark udf
- chatGPT
- GCP
- tensorflow text
- TensorFlow
- flask
- UDF
- Counterfactual Explanations
- BigQuery
- grad-cam
- Airflow
- integrated gradient
- 유튜브 API
- Retry
- session 유지
- XAI
- airflow subdag
- login crawling
- 공분산
- correlation
- GenericGBQException
- subdag
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