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