728x90
반응형
뉴욕타임즈 뉴스 기사 요약하기(Sequence to sequence)
from google.colab import drive
drive.mount('/content/drive')
!git clone https://github.com/hengluchang/deep-news-summarization.git
오류 : 텍스트가 불러들여 오지 않음.
Data_set = np.loadtxt('/content/deep-news-summarization/dataset/article.txt', delimiter=" ")
Data_set = pd.read_csv('/content/deep-news-summarization/dataset/article.txt')
해결 :
# 뉴욕타임즈 기사 불러오기
with open('/content/deep-news-summarization/dataset/article.txt') as file_object:
contents = file_object.read()
print(contents)
# 기사 헤드라인 가져오기
with open('/content/deep-news-summarization/dataset/headline.txt') as file_object:
contents = file_object.read()
print(contents)
728x90
반응형
'SELF-IMPROVEMENT > error 기록' 카테고리의 다른 글
토픽모델링 TerminatedWorkerError (0) | 2022.04.15 |
---|---|
[SQL오류] Recursive query aborted after 1001 iterations. (0) | 2021.10.22 |
[Python] 파이썬 에러들 (0) | 2021.05.13 |
[Flask] Flask run 사이트에 연결할 수 없음 오류 (0) | 2021.03.28 |
[VS Code] conda 가상환경 CommandNotFoundError (0) | 2021.03.15 |