Datasets:
danielpark
commited on
Commit
•
49393e5
1
Parent(s):
0f01b97
Update README.md
Browse files
README.md
CHANGED
@@ -31,10 +31,10 @@ Data was gathered at the 5th of May 2017.
|
|
31 |
The MQuAD provides embedded question and answer arrays in string format, so it is recommended to convert the string-formatted arrays into float format as follows. This measure has been applied to save resources and time used for embedding.
|
32 |
```python
|
33 |
from datasets import load_dataset
|
34 |
-
from utilfunction import
|
|
|
35 |
|
36 |
qa = load_dataset("danielpark/MQuAD-v1", "csv")
|
37 |
df_qa = pd.DataFrame(qa['train'])
|
38 |
-
|
39 |
-
df_qa = col_converter(df, ['Q_FFNN_embeds', 'A_FFNN_embeds'])
|
40 |
```
|
|
|
31 |
The MQuAD provides embedded question and answer arrays in string format, so it is recommended to convert the string-formatted arrays into float format as follows. This measure has been applied to save resources and time used for embedding.
|
32 |
```python
|
33 |
from datasets import load_dataset
|
34 |
+
from utilfunction import col_convert
|
35 |
+
import pandas as pd
|
36 |
|
37 |
qa = load_dataset("danielpark/MQuAD-v1", "csv")
|
38 |
df_qa = pd.DataFrame(qa['train'])
|
39 |
+
df_qa = col_convert(df_qa, ['Q_FFNN_embeds', 'A_FFNN_embeds'])
|
|
|
40 |
```
|