Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
License:
Pawitsapak commited on
Commit
069e774
·
verified ·
1 Parent(s): af10c85

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -48,7 +48,7 @@ You can easily load this dataset using the Hugging Face `datasets` library:
48
  from datasets import load_dataset
49
 
50
  # Load the statute corpus
51
- dataset = load_dataset("vistec-AI/nitibench-statute", split="train")
52
 
53
  # Example: Print the first section
54
  print(dataset[0])
@@ -65,7 +65,7 @@ for row in dataset:
65
  # Use 'section_content' as the text chunk to be indexed
66
  documents.append(row['section_content'])
67
  # Use 'law_code' or a combination of name+section as ID
68
- ids.append(row['law_code'])
69
 
70
  # ... Proceed to pass `documents` to your VectorDB or Retriever (e.g., FAISS, ChromaDB, BM25)
71
  ```
 
48
  from datasets import load_dataset
49
 
50
  # Load the statute corpus
51
+ dataset = load_dataset("vistec-AI/nitibench-statute", split="ccl")
52
 
53
  # Example: Print the first section
54
  print(dataset[0])
 
65
  # Use 'section_content' as the text chunk to be indexed
66
  documents.append(row['section_content'])
67
  # Use 'law_code' or a combination of name+section as ID
68
+ ids.append(f"row['law_code']-row['section_num']")
69
 
70
  # ... Proceed to pass `documents` to your VectorDB or Retriever (e.g., FAISS, ChromaDB, BM25)
71
  ```