lecture07 1교시 개념정리 CNN 기반 텍스트 분류 이미지 처리에 사용되는 CNN 기법을 텍스트 분류에 사용 문장의 각 단어를 벡터화(word2vec), n,k행렬로 표현 다양한 크기, 종류의 convolution 필터로 중요feature 추출 pooling으로 추출 mlp convolution and pooling convolution은 가로(k-dimension)축 통채로 w * k 크기의 필터를 구성한다 pooling은 max값 하나만 추출 파이썬 딥러닝 ai 스쿨 기초/lecture07 2021.03.26
lecture07 0교시 파이썬 기초 연습문제 nltk 토큰화 import nltk sentence = "Hi . This is Tom . I have many cars ." sentence = sentence.lower() tokens = nltk.word_tokenize(sentence) # 토근화 print(tokens) text = nltk.Text(tokens) # 토큰 다시 텍스트화 print(text) print(len(text.tokens)) print(len(set(text.tokens))) for token in text.vocab(): print(token, text.vocab()[token]) # text.vocab[token]에 출현수 저장됨 text.plot(9) print(text.count('.')) print(text... 파이썬 딥러닝 ai 스쿨 기초/lecture07 2021.03.26