Papers with Code · CC BY-SA 4.0
데이터셋 탐색
데이터셋의 설명·홈페이지를 찾고, 관련 태스크의 평가 기록을 살펴보세요.
데이터셋의 설명·홈페이지를 찾고, 관련 태스크의 평가 기록을 살펴보세요.
python from datasets import load_dataset # Load the raw dataset dataset = load_dataset("ASSERT-KTH/DISL", "raw") # OR # Load the decomposed dataset dataset = load_dataset("ASSERT-KTH/DISL", "decomposed") # number of rows and columns num_rows = len(dataset["train"]) num_columns = len(dataset["train"].column_names) # random row import random random_row = random.choice(dataset["train"]) # random source code random_sc = random.choice(dataset["train"])['source_code'] print(random_sc)