Datasets:
Upload folder using huggingface_hub
Browse files- medqa_corpus_en.py +0 -5
medqa_corpus_en.py
CHANGED
@@ -53,12 +53,7 @@ SUBJECT_SUBSETS = {
|
|
53 |
|
54 |
from pathlib import Path
|
55 |
import json
|
56 |
-
try:
|
57 |
-
from ogbujipt.text_helper import text_splitter
|
58 |
-
except ImportError as e:
|
59 |
-
raise ImportError("Need ogbujipt installed. Try: pip install ogbujipt")
|
60 |
import datasets
|
61 |
-
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
62 |
|
63 |
CHUNK_OVERLAP = 20
|
64 |
MAX_CHUNK_SIZE = 800
|
|
|
53 |
|
54 |
from pathlib import Path
|
55 |
import json
|
|
|
|
|
|
|
|
|
56 |
import datasets
|
|
|
57 |
|
58 |
CHUNK_OVERLAP = 20
|
59 |
MAX_CHUNK_SIZE = 800
|