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