Datasets:

Formats:
csv
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
Leask commited on
Commit
6184529
·
1 Parent(s): e8f3ece

Update README.md with additional setup instructions

Browse files

- Added detailed setup instructions for new users.
- Clarified the installation process and prerequisites.
- Included examples for better understanding.
- Improved formatting for readability.

Files changed (1) hide show
  1. README.md +10 -10
README.md CHANGED
@@ -47,13 +47,9 @@ This dataset is derived and organized from [Spawning/PD12M](http://huggingface.c
47
 
48
  This dataset is available for a wide range of applications.
49
 
50
- ### Use with Chipmunk
51
 
52
- Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
53
-
54
- ### Use directly in PostgreSQL
55
-
56
- 1. Create Table
57
 
58
  ```sql
59
  CREATE TABLE IF NOT EXISTS is_pd12m (
@@ -79,9 +75,9 @@ CREATE TABLE IF NOT EXISTS is_pd12m (
79
  );
80
  ```
81
 
82
- 2. Load csv file to database
83
 
84
- 2.1. Load the dataset from local file system to a remote PostgreSQL server:
85
 
86
  ```sql
87
  \copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
@@ -90,7 +86,7 @@ CREATE TABLE IF NOT EXISTS is_pd12m (
90
  ...
91
  ```
92
 
93
- 2.2. Load the dataset from the PostgreSQL server's file system:
94
 
95
  ```sql
96
  copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
@@ -99,7 +95,7 @@ copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
99
  ...
100
  ```
101
 
102
- 3. Create Indexes
103
 
104
  You need to create the following indexes for the best performance.
105
 
@@ -130,3 +126,7 @@ CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE ca
130
  CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
131
  CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
132
  ```
 
 
 
 
 
47
 
48
  This dataset is available for a wide range of applications.
49
 
50
+ Here is a demo of how to use the dataset with [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
51
 
52
+ ### Create a Table in PostgreSQL
 
 
 
 
53
 
54
  ```sql
55
  CREATE TABLE IF NOT EXISTS is_pd12m (
 
75
  );
76
  ```
77
 
78
+ ### Load csv file to database
79
 
80
+ 1. Load the dataset from local file system to a remote PostgreSQL server:
81
 
82
  ```sql
83
  \copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
 
86
  ...
87
  ```
88
 
89
+ 2. Load the dataset from the PostgreSQL server's file system:
90
 
91
  ```sql
92
  copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
 
95
  ...
96
  ```
97
 
98
+ ### Create Indexes
99
 
100
  You need to create the following indexes for the best performance.
101
 
 
126
  CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
127
  CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
128
  ```
129
+
130
+ ### Query with Chipmunk
131
+
132
+ Click this link to learn how to query the dataset with [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).