Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Korpus.get_all_texts (#59) #68

Merged
merged 1 commit into from
Sep 10, 2020
Merged

Implement Korpus.get_all_texts (#59) #68

merged 1 commit into from
Sep 10, 2020

Conversation

lovit
Copy link
Member

@lovit lovit commented Sep 9, 2020

Pull Request

Korpora에 기여해 주셔서 감사합니다.

해당 Pull Request를 제출하기 전에 아래 사항이 완료되었는지 확인 부탁드립니다:

  • 작성한 코드가 어떤 에러나 경고 없이 실행이 되나요?
  • 작성한 코드에 대한 테스트 코드를 만드셨나요? (경로 : Korpora/test)
    • 기존의 테스트 코드를 그대로 이용합니다.
  • 기존 코드 역시 에러 없이 수행이 되겠죠?

1. 해당 PR은 어떤 내용인가요?

KorpusData 가 하나인 경우에는 get_all_texts 를 구현하지 않아도 Korpus 의 attribute 중 KorpusData 를 상속하는 클래스를 찾아 texts 를 가져옵니다.
만약 get_all_texts 에서 return 하는 텍스트의 순서를 강제하고 싶은 경우에는 Korpus 를 상속한 각 클래스별로 get_all_texts 를 오버라이딩합니다.

2. PR과 관련된 이슈가 있나요?

#59

Copy link
Member

@ratsgo ratsgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생 많으셨습니다!

@ratsgo ratsgo merged commit ad8017d into dev Sep 10, 2020
@lovit lovit deleted the dev-korpus-getalltext branch September 10, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants