일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- object detection
- Convolution Neural Network
- python __init__
- TensorFlow
- 딥러닝
- text2img
- tokenizing
- word embedding
- opencv SURF
- #English
- python 알고리즘
- #실생활영어
- convexhull
- 이미지 생성
- #1일1영어
- 영어
- #영어 명언
- #영어
- findContours
- #실생활 영어
- #일상영어
- #프로젝트
- python list
- tensorflow update
- #Android
- 영어명언
- c언어
- keras
- #opencv
- 완전탐색
Archives
- Today
- Total
목록02. Study/Python (12)
When will you grow up?
raise LookupError(resource_not_found) 오류
from nltk.corpus import stopwords 모듈을 사용할때 12345from nltk.corpus import stopwords porter = PorterStemmer()stop = stopwords.works('english')cs 이런식으로 코드 사용 시 raise LookupError(resource_not_found) 오류를 가 발생하여 구글링을 해봤다.오류는 아래와 같다. 해결 방안커맨드 창에서import nltknltk.download()를 입력하면 아래 사진과 같은 창이 뜬다.(저는 anaconda Spyder를 사용한다) 현재 Cancel GUI 버튼이 download버튼일거다 설치를 하고,Corpora탭으로 이동하여 필요한 정보 만 다운로드 하여 사용하면 된다.
02. Study/Python
2017. 5. 6. 16:41
Python 에서 text 과정중 UnicodeDecodeError: 'cp949' codec can't decode byte 0xe2 in position 564
python으로 text 읽어오는 과정중,위 사진과 같은 오류가 뜰 경우가 있는데, 12345#수정전open(os.path.join(dirpath, file), "r") as f: #open(os.path.join(dirpath, file), "r", encoding='UTF8') as f:cs 으로 바꿔주시면 됩니다.코덱으로 인코딩 된 파일을 읽어들일때 Decode과정에서 Error를 뿜어낸다고 하네요.
02. Study/Python
2017. 5. 4. 16:14