Update README.md
Browse files
README.md
CHANGED
@@ -2700,7 +2700,6 @@ To load the dataset,
|
|
2700 |
|
2701 |
```
|
2702 |
import datasets
|
2703 |
-
from datasets import Image, Value, Sequence, ClassLabel, Features
|
2704 |
ds = datasets.load_dataset("AmazonScience/MultilingualMultiModalClassification", data_dir="wiki-doc-ar-merged")
|
2705 |
print(ds)
|
2706 |
DatasetDict({
|
@@ -2719,6 +2718,7 @@ DatasetDict({
|
|
2719 |
})
|
2720 |
|
2721 |
# In case you encountered `NonMatchingSplitsSizesError`, try out the following:
|
|
|
2722 |
# features = Features({'image': Image(mode=None, decode=True, id=None), 'filename': Value(dtype='string', id=None), 'words': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'ocr_bboxes': Sequence(feature=Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), length=-1, id=None), 'label': ClassLabel(names=['AcademicJournal', 'AdultActor', 'Album', 'AmateurBoxer', 'Ambassador', 'AmericanFootballPlayer', 'Amphibian', 'AnimangaCharacter', 'Anime', 'Arachnid', 'Baronet', 'BasketballTeam', 'BeautyQueen', 'BroadcastNetwork', 'BusCompany', 'BusinessPerson', 'CanadianFootballTeam', 'Canal', 'Cardinal', 'Cave', 'ChristianBishop', 'ClassicalMusicArtist', 'ClassicalMusicComposition', 'CollegeCoach', 'Comedian', 'ComicsCreator', 'Congressman', 'Conifer', 'Convention', 'Cricketer', 'Crustacean', 'CultivatedVariety', 'Cycad', 'Dam', 'Economist', 'Engineer', 'Entomologist', 'EurovisionSongContestEntry', 'Fern', 'FilmFestival', 'Fish', 'FootballMatch', 'Glacier', 'GolfTournament', 'Governor', 'Gymnast', 'Historian', 'IceHockeyLeague', 'Insect', 'Journalist', 'Judge', 'Lighthouse', 'Magazine', 'Mayor', 'Medician', 'MemberOfParliament', 'MilitaryPerson', 'Model', 'Mollusca', 'Monarch', 'Moss', 'Mountain', 'MountainPass', 'MountainRange', 'MusicFestival', 'Musical', 'MythologicalFigure', 'Newspaper', 'Noble', 'OfficeHolder', 'Other', 'Philosopher', 'Photographer', 'PlayboyPlaymate', 'Poem', 'Poet', 'Pope', 'President', 'PrimeMinister', 'PublicTransitSystem', 'Racecourse', 'RadioHost', 'RadioStation', 'Religious', 'Reptile', 'Restaurant', 'Road', 'RoadTunnel', 'RollerCoaster', 'RugbyClub', 'RugbyLeague', 'Saint', 'School', 'ScreenWriter', 'Senator', 'ShoppingMall', 'Skater', 'SoccerLeague', 'SoccerManager', 'SoccerPlayer', 'SoccerTournament', 'SportsTeamMember', 'SumoWrestler', 'TelevisionStation', 'TennisTournament', 'TradeUnion', 'University', 'Village', 'VoiceActor', 'Volcano', 'WrestlingEvent'], id=None)})
|
2723 |
# ds = datasets.load_dataset("AmazonScience/MultilingualMultiModalClassification", data_dir="wiki-doc-ar-merged", features=features, verification_mode="no_checks")
|
2724 |
```
|
|
|
2700 |
|
2701 |
```
|
2702 |
import datasets
|
|
|
2703 |
ds = datasets.load_dataset("AmazonScience/MultilingualMultiModalClassification", data_dir="wiki-doc-ar-merged")
|
2704 |
print(ds)
|
2705 |
DatasetDict({
|
|
|
2718 |
})
|
2719 |
|
2720 |
# In case you encountered `NonMatchingSplitsSizesError`, try out the following:
|
2721 |
+
# from datasets import Image, Value, Sequence, ClassLabel, Features
|
2722 |
# features = Features({'image': Image(mode=None, decode=True, id=None), 'filename': Value(dtype='string', id=None), 'words': Sequence(feature=Value(dtype='string', id=None), length=-1, id=None), 'ocr_bboxes': Sequence(feature=Sequence(feature=Value(dtype='int64', id=None), length=-1, id=None), length=-1, id=None), 'label': ClassLabel(names=['AcademicJournal', 'AdultActor', 'Album', 'AmateurBoxer', 'Ambassador', 'AmericanFootballPlayer', 'Amphibian', 'AnimangaCharacter', 'Anime', 'Arachnid', 'Baronet', 'BasketballTeam', 'BeautyQueen', 'BroadcastNetwork', 'BusCompany', 'BusinessPerson', 'CanadianFootballTeam', 'Canal', 'Cardinal', 'Cave', 'ChristianBishop', 'ClassicalMusicArtist', 'ClassicalMusicComposition', 'CollegeCoach', 'Comedian', 'ComicsCreator', 'Congressman', 'Conifer', 'Convention', 'Cricketer', 'Crustacean', 'CultivatedVariety', 'Cycad', 'Dam', 'Economist', 'Engineer', 'Entomologist', 'EurovisionSongContestEntry', 'Fern', 'FilmFestival', 'Fish', 'FootballMatch', 'Glacier', 'GolfTournament', 'Governor', 'Gymnast', 'Historian', 'IceHockeyLeague', 'Insect', 'Journalist', 'Judge', 'Lighthouse', 'Magazine', 'Mayor', 'Medician', 'MemberOfParliament', 'MilitaryPerson', 'Model', 'Mollusca', 'Monarch', 'Moss', 'Mountain', 'MountainPass', 'MountainRange', 'MusicFestival', 'Musical', 'MythologicalFigure', 'Newspaper', 'Noble', 'OfficeHolder', 'Other', 'Philosopher', 'Photographer', 'PlayboyPlaymate', 'Poem', 'Poet', 'Pope', 'President', 'PrimeMinister', 'PublicTransitSystem', 'Racecourse', 'RadioHost', 'RadioStation', 'Religious', 'Reptile', 'Restaurant', 'Road', 'RoadTunnel', 'RollerCoaster', 'RugbyClub', 'RugbyLeague', 'Saint', 'School', 'ScreenWriter', 'Senator', 'ShoppingMall', 'Skater', 'SoccerLeague', 'SoccerManager', 'SoccerPlayer', 'SoccerTournament', 'SportsTeamMember', 'SumoWrestler', 'TelevisionStation', 'TennisTournament', 'TradeUnion', 'University', 'Village', 'VoiceActor', 'Volcano', 'WrestlingEvent'], id=None)})
|
2723 |
# ds = datasets.load_dataset("AmazonScience/MultilingualMultiModalClassification", data_dir="wiki-doc-ar-merged", features=features, verification_mode="no_checks")
|
2724 |
```
|