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

KorNLI #10

Closed
lovit opened this issue Aug 29, 2020 · 0 comments
Closed

KorNLI #10

lovit opened this issue Aug 29, 2020 · 0 comments

Comments

@lovit
Copy link
Member

lovit commented Aug 29, 2020

(data snapshot)

sentence1	sentence2	gold_label
그리고 그가 말했다, "엄마, 저 왔어요."	그는 학교 버스가 그를 내려주자마자 엄마에게 전화를 걸었다.	neutral
그리고 그가 말했다, "엄마, 저 왔어요."	그는 한마디도 하지 않았다.	contradiction
그리고 그가 말했다, "엄마, 저 왔어요."	그는 엄마에게 집에 갔다고 말했다.	entailment
class LabeledSentencePairKorpusData(KorpusData):
    pairs : List[str]
    labels : List[Optional[str, int, float]]

    def __init__(self, texts, pairs, labels):
        if not (len(texts) == len(pairs) == len(labels)):
            raise ValueError('All length of `texts`, `pairs`, `labels` should be same')
        self.texts = texts
        self.pairs = pairs
        self.labels = labels

class KorNLIKorpusData(LabeledSentencePairKorpusData):
    def __init__(self, texts, pairs, labels):
        super().__init__(texts, pairs, labels)
This was referenced Aug 29, 2020
lovit added a commit that referenced this issue Sep 1, 2020
lovit added a commit that referenced this issue Sep 1, 2020
lovit added a commit that referenced this issue Sep 1, 2020
lovit added a commit that referenced this issue Sep 1, 2020
lovit added a commit that referenced this issue Sep 1, 2020
@lovit lovit mentioned this issue Sep 1, 2020
3 tasks
ratsgo added a commit that referenced this issue Sep 1, 2020
lovit added a commit that referenced this issue Sep 1, 2020
@lovit lovit mentioned this issue Sep 1, 2020
Merged
3 tasks
@lovit lovit closed this as completed Sep 4, 2020
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

No branches or pull requests

1 participant