자연어 처리
-
문제 11. 탭을 공백으로 변환NLP/NLP100 2021. 1. 4. 18:25
모든 탭을 공백 문자로 변환하시오. 확인을 위해 sed명령어, tr명령어, expand명령어를 사용하시오. datapath = "/Users/p1zz4/Downloads/popular-names.txt" with open(datapath) as p: f = [line.replace("\t", " ").rstrip() for line in p] print(f[:10]) # 전체 출력하느라 오래걸리므로 일부만 출력해서 확인 [확인] - sed (base) P1ZZ4:Downloads p1zz4$ sed "s/\t/ /g" re_popular-names.txt - tr (base) P1ZZ4:Downloads p1zz4$ tr '\tr' ' ' < re_popular-names.txt - expand (bas..
-
NLP100 문제 풀이NLP/NLP100 2021. 1. 4. 17:59
https://nlp100.github.io/ko/about.html 100문제로 두드려 보는 자연어처리에 대하여 NLP 100 Exercise is a workbook designed for learning skills for programming, data analysis, and research activities by taking practical and exciting assignments. nlp100.github.io 총 10개의 챕터로 구성된 자연어처리의 기본을 공부하기 좋은 사이트이다. 1. 준비운동 2. UNIX 명령어 3. 정규표현식 4. 형태소 분석 5. 구문 분석 6. 기계 학습 7. 단어 벡터 8. 신경망 9. RNN과 CNN 10. 기계 번역 원 사이트는 일본 사이트로, 현재 ..