-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
load_from_files_multilabel()
to Dataset (#6)
A new method (``load_from_files_multilabel``) was added to the ``Dataset`` class to load multilabel datasets from disk. More details about this new class can be found in the API documentation (https://pyss3.rtfd.io/en/latest/api/index.html#pyss3.util.Dataset.load_from_files_multilabel). Resolves: #6
- Loading branch information
1 parent
e2ecda4
commit 7ece7ce
Showing
7 changed files
with
194 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
a catA | ||
a catB | ||
a catC | ||
b catA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
this is the first document | ||
>>>>> | ||
second document is toxic, severe_toxic, obscene, and insult. | ||
>>>>> | ||
this is document number 3 | ||
>>>>> | ||
the 4th document goes like this one :P | ||
>>>>> | ||
document 5 | ||
>>>>> | ||
this is the synthetic document number 6 | ||
>>>>> | ||
7, 7 is the number of this document | ||
>>>>> | ||
this is the last document, and it is really toxic! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
toxic,severe_toxic,obscene,insult | ||
|
||
|
||
|
||
|
||
|
||
toxic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
this is the first document!! | ||
|
||
:) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
and this is the | ||
|
||
SECOND!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters