Closed lovit closed 4 years ago
usage scenario
from Korpora import NSMC nsmc = NSMC() for text, label in nsmc: print(type(text)) # str print(type(label)) # int
Korpora.KorpusData 를 상속하는 모든 데이터 클래스에서 이를 구현하면 좋을 것 같아요.
Korpora.KorpusData
텍스트만을 가지고 오는 경우도 있으니 이는 get_all_texts() 함수로 처리하겠습니다. 이는 Korpora.Korpus.get_all_texts() 와 용도가 같습니다.
get_all_texts()
Korpora.Korpus.get_all_texts()
usage scenario