Spaces:
Build error
Build error
Upload with huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +29 -34
- README.md +6 -5
- app.py +86 -0
- data/.gitkeep +0 -0
- data/data-00000-of-00028.arrow +3 -0
- data/data-00001-of-00028.arrow +3 -0
- data/data-00002-of-00028.arrow +3 -0
- data/data-00003-of-00028.arrow +3 -0
- data/data-00004-of-00028.arrow +3 -0
- data/data-00005-of-00028.arrow +3 -0
- data/data-00006-of-00028.arrow +3 -0
- data/data-00007-of-00028.arrow +3 -0
- data/data-00008-of-00028.arrow +3 -0
- data/data-00009-of-00028.arrow +3 -0
- data/data-00010-of-00028.arrow +3 -0
- data/data-00011-of-00028.arrow +3 -0
- data/data-00012-of-00028.arrow +3 -0
- data/data-00013-of-00028.arrow +3 -0
- data/data-00014-of-00028.arrow +3 -0
- data/data-00015-of-00028.arrow +3 -0
- data/data-00016-of-00028.arrow +3 -0
- data/data-00017-of-00028.arrow +3 -0
- data/data-00018-of-00028.arrow +3 -0
- data/data-00019-of-00028.arrow +3 -0
- data/data-00020-of-00028.arrow +3 -0
- data/data-00021-of-00028.arrow +3 -0
- data/data-00022-of-00028.arrow +3 -0
- data/data-00023-of-00028.arrow +3 -0
- data/data-00024-of-00028.arrow +3 -0
- data/data-00025-of-00028.arrow +3 -0
- data/data-00026-of-00028.arrow +3 -0
- data/data-00027-of-00028.arrow +3 -0
- data/dataset_info.json +55 -0
- data/state.json +94 -0
- index/.gitkeep +0 -0
- index/_0.fdm +0 -0
- index/_0.fdt +0 -0
- index/_0.fdx +0 -0
- index/_0.fnm +0 -0
- index/_0.nvd +0 -0
- index/_0.nvm +0 -0
- index/_0.si +0 -0
- index/_0_Lucene90_0.doc +0 -0
- index/_0_Lucene90_0.dvd +0 -0
- index/_0_Lucene90_0.dvm +0 -0
- index/_0_Lucene90_0.pos +3 -0
- index/_0_Lucene90_0.tim +0 -0
- index/_0_Lucene90_0.tip +0 -0
- index/_0_Lucene90_0.tmd +0 -0
- index/_1.fdm +0 -0
.gitattributes
CHANGED
@@ -1,34 +1,29 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
31 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
32 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
-
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
1 |
+
index/**/* filter=lfs diff=lfs merge=lfs -text
|
2 |
+
data/data-00002-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
data/data-00004-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
4 |
+
data/data-00017-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
5 |
+
data/data-00005-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
6 |
+
data/data-00018-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
7 |
+
data/data-00020-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
8 |
+
data/data-00003-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
9 |
+
data/data-00011-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
10 |
+
data/data-00026-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
11 |
+
data/data-00013-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
12 |
+
data/data-00000-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
13 |
+
data/data-00012-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
14 |
+
data/data-00021-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
15 |
+
data/data-00001-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
16 |
+
data/data-00014-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
17 |
+
data/data-00008-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
18 |
+
data/data-00025-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
19 |
+
data/data-00006-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
20 |
+
data/data-00019-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
21 |
+
data/data-00023-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
22 |
+
data/data-00027-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
23 |
+
data/data-00022-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
24 |
+
data/data-00024-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
25 |
+
data/data-00007-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
26 |
+
data/data-00010-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
27 |
+
data/data-00009-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
28 |
+
data/data-00015-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
29 |
+
data/data-00016-of-00028.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
|
|
10 |
---
|
11 |
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: IMDB search
|
3 |
+
emoji: 🐠
|
4 |
+
colorFrom: blue
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.12.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
+
license: apache-2.0
|
11 |
---
|
12 |
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from datasets import load_from_disk
|
3 |
+
from pyserini.search.lucene import LuceneSearcher
|
4 |
+
|
5 |
+
searcher = LuceneSearcher("index")
|
6 |
+
ds = load_from_disk("data")
|
7 |
+
PAGINATION_VISIBLE = True
|
8 |
+
NUM_PAGES = 10 # STATIC. THIS CAN'T CHANGE BECAUSE GRADIO CAN'T DYNAMICALLY CREATE COMPONENTS.
|
9 |
+
RESULTS_PER_PAGE = 5
|
10 |
+
|
11 |
+
TEXT_FIELD = "text"
|
12 |
+
METADATA_FIELD = "docid"
|
13 |
+
|
14 |
+
def result_html(result, meta):
|
15 |
+
return (
|
16 |
+
f"<div style=\"color:#2a5cb3;font-weight: 500\"><u>{meta}</u></div><br>"
|
17 |
+
f"<div><details><summary>{result[:250]}...</summary><p>{result[250:]}</p></details></div><br><hr><br>"
|
18 |
+
)
|
19 |
+
|
20 |
+
def format_results(results):
|
21 |
+
return "\n".join([result_html(result, meta) for result,meta in zip(results[TEXT_FIELD], results[METADATA_FIELD])])
|
22 |
+
|
23 |
+
def page_0(query):
|
24 |
+
hits = searcher.search(query, k=NUM_PAGES*RESULTS_PER_PAGE)
|
25 |
+
ix = [int(hit.docid) for hit in hits]
|
26 |
+
results = ds.select(ix).shard(num_shards=NUM_PAGES, index=0, contiguous=True) # no need to shard. split ix in batches instead. (would make sense if results was cacheable)
|
27 |
+
results = format_results(results)
|
28 |
+
return results, [ix]
|
29 |
+
|
30 |
+
def page_i(i, ix):
|
31 |
+
ix = ix[0]
|
32 |
+
results = ds.select(ix).shard(num_shards=NUM_PAGES, index=i, contiguous=True)
|
33 |
+
results = format_results(results)
|
34 |
+
return results, [ix]
|
35 |
+
|
36 |
+
with gr.Blocks(css="#b {min-width:15px;background:transparent;border:white;box-shadow:none;}") as demo: #
|
37 |
+
with gr.Row():
|
38 |
+
gr.Markdown(value="""## <p style="text-align: center;"> IMDB search </p>""")
|
39 |
+
with gr.Row():
|
40 |
+
with gr.Column(scale=1):
|
41 |
+
result_list = gr.Dataframe(type="array", visible=False, col_count=1)
|
42 |
+
with gr.Column(scale=13):
|
43 |
+
query = gr.Textbox(lines=1, max_lines=1, placeholder="Search…", label="")
|
44 |
+
with gr.Column(scale=1):
|
45 |
+
with gr.Row(scale=1):
|
46 |
+
pass
|
47 |
+
with gr.Row(scale=1):
|
48 |
+
submit_btn = gr.Button("🔍", elem_id="b").style(full_width=False)
|
49 |
+
with gr.Row(scale=1):
|
50 |
+
pass
|
51 |
+
|
52 |
+
with gr.Row():
|
53 |
+
with gr.Column(scale=1):
|
54 |
+
pass
|
55 |
+
with gr.Column(scale=13):
|
56 |
+
c = gr.HTML(label="Results")
|
57 |
+
with gr.Row():
|
58 |
+
# left = gr.Button(value="◀", elem_id="b", visible=False).style(full_width=True)
|
59 |
+
page_1 = gr.Button(value="1", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
60 |
+
page_2 = gr.Button(value="2", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
61 |
+
page_3 = gr.Button(value="3", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
62 |
+
page_4 = gr.Button(value="4", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
63 |
+
page_5 = gr.Button(value="5", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
64 |
+
page_6 = gr.Button(value="6", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
65 |
+
page_7 = gr.Button(value="7", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
66 |
+
page_8 = gr.Button(value="8", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
67 |
+
page_9 = gr.Button(value="9", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
68 |
+
page_10 = gr.Button(value="10", elem_id="b", visible=PAGINATION_VISIBLE).style(full_width=True)
|
69 |
+
# right = gr.Button(value="▶", elem_id="b", visible=False).style(full_width=True)
|
70 |
+
with gr.Column(scale=1):
|
71 |
+
pass
|
72 |
+
query.submit(fn=page_0, inputs=[query], outputs=[c, result_list])
|
73 |
+
submit_btn.click(page_0, inputs=[query], outputs=[c, result_list])
|
74 |
+
with gr.Box(visible=False):
|
75 |
+
nums = [gr.Number(i, visible=False, precision=0) for i in range(NUM_PAGES)]
|
76 |
+
page_1.click(fn=page_i, inputs=[nums[0], result_list], outputs=[c, result_list])
|
77 |
+
page_2.click(fn=page_i, inputs=[nums[1], result_list], outputs=[c, result_list])
|
78 |
+
page_3.click(fn=page_i, inputs=[nums[2], result_list], outputs=[c, result_list])
|
79 |
+
page_4.click(fn=page_i, inputs=[nums[3], result_list], outputs=[c, result_list])
|
80 |
+
page_5.click(fn=page_i, inputs=[nums[4], result_list], outputs=[c, result_list])
|
81 |
+
page_6.click(fn=page_i, inputs=[nums[5], result_list], outputs=[c, result_list])
|
82 |
+
page_7.click(fn=page_i, inputs=[nums[6], result_list], outputs=[c, result_list])
|
83 |
+
page_8.click(fn=page_i, inputs=[nums[7], result_list], outputs=[c, result_list])
|
84 |
+
page_9.click(fn=page_i, inputs=[nums[8], result_list], outputs=[c, result_list])
|
85 |
+
page_10.click(fn=page_i, inputs=[nums[9], result_list], outputs=[c, result_list])
|
86 |
+
demo.launch(enable_queue=True, debug=True)
|
data/.gitkeep
ADDED
File without changes
|
data/data-00000-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a1ee6ae93ee94def8066f7d4b10fe58625bd3b814f0816f8952c590a1f0104e
|
3 |
+
size 1182752
|
data/data-00001-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:028e08406f19c4eaa635529ba64f49c30116869a34bca79de0df283c21e821fe
|
3 |
+
size 1129936
|
data/data-00002-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e73a2a71712511a2a01c93ec7ff2649aeed8749b89183a7e86001a24eb7aa0c5
|
3 |
+
size 1145352
|
data/data-00003-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:23b7329ac2b5fdbeab6363b67a724fdfd6577d33d323ee5d540aa96fe6d24aca
|
3 |
+
size 1172640
|
data/data-00004-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ead5dad1bb9b3f4765647049278426cc51b6cac2bcba2bee89ac65d28f5a7733
|
3 |
+
size 1187064
|
data/data-00005-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0e7cc11f82748aeb6662bf8ab014d77f2d759540e8e425c7f181d47615eaff24
|
3 |
+
size 1193288
|
data/data-00006-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0c0a1f1deaf509314696c51512fac74ee3d619b3f6b2a306151af3fbc3f4574a
|
3 |
+
size 1257400
|
data/data-00007-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c007f5c47c8884828b69caccdd086b7d4c6a95d7851acc1141af050cf1b45099
|
3 |
+
size 1117368
|
data/data-00008-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dabe3091ad434f0709df48bce3680887092cac3ff8eacdc3395cb1790e840336
|
3 |
+
size 1279104
|
data/data-00009-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8ed50832ee22d82458a49a317a47e02ae223b0ee3dbac09142ca7f6bfd56b699
|
3 |
+
size 1198560
|
data/data-00010-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ac291600dfd053ac310bfc0d5bb24b6b062fa0b464f2f1299e5fe6480af2a11
|
3 |
+
size 1132048
|
data/data-00011-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8831cbe3be650a23eab12b371a6fc228a1862ebbc271622ee76bcf6dac35c526
|
3 |
+
size 1132416
|
data/data-00012-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:01bce3dd4da0ea2395774a0f8d23279faf7d2ab22f0a7a8bdd88114654503ea6
|
3 |
+
size 1131856
|
data/data-00013-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68863d00d7ec4e521574713ff19f1ccf19ea7a0391a0afbcb6aa81525f30e45b
|
3 |
+
size 1192864
|
data/data-00014-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6778d98b72dd72e10fef944fc49bf39fa6611461f8b1501115bc9c36bdf7a52d
|
3 |
+
size 1179232
|
data/data-00015-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fd66a20d13aefd53eefaa8927d85f93ba85037570329ca12963500592a0e7e7e
|
3 |
+
size 1280600
|
data/data-00016-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:04ea574871964d888a3748eb4d70d0682388d4b8eb0acc0e358f19e790ba96b6
|
3 |
+
size 1186768
|
data/data-00017-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6ddee884b136a935cfc33c82fc1f7562c9f5ce33d46cbf90e9654f0903461916
|
3 |
+
size 1220096
|
data/data-00018-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:83a6e8e03ad7a0573392aa1e0e29477315b01b5a0715efb18206dba9d845e19a
|
3 |
+
size 1259104
|
data/data-00019-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96a5ff6305022fda1c2b77f7e637c472a7749483b1f088b59d7fd2c04a3861e0
|
3 |
+
size 1154104
|
data/data-00020-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ecfa7b0da3fb75228140f7f6d3c57d00d1b4c4e2b34cf2b4f97920603c0e6dbe
|
3 |
+
size 1214392
|
data/data-00021-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:68053c7a9f52161746926cde2477c1dd84ea6f923e254c59abc2eea6d89044c2
|
3 |
+
size 1236032
|
data/data-00022-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b4b091d072623a846983444ee45e556fe8e60c71d391f9bbc9d1fe035182d4c
|
3 |
+
size 1226720
|
data/data-00023-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4c66848c7358c3e42fb1e4bac54345756f833f082b27ca9df91182ac0df7690a
|
3 |
+
size 1196744
|
data/data-00024-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2314af74807fbf3c35e2e7620de090db31b78626557a1d048ce29ab083a817d3
|
3 |
+
size 1223576
|
data/data-00025-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8e017a0828dc714499bf0e5eccc6a2063614aadf7b72d5f6204e94cb21644f7b
|
3 |
+
size 1173912
|
data/data-00026-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:178b06fdfd6bcf84656715c7280a9a8f8ed72cb904f7e2288f933fcaa68d7c85
|
3 |
+
size 1254640
|
data/data-00027-of-00028.arrow
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7da5a5081a8cd37ae5025739b4aadc93aaec9e11a05046e3a062cbdf16acb6f9
|
3 |
+
size 1196600
|
data/dataset_info.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"builder_name": "imdb",
|
3 |
+
"citation": "@InProceedings{maas-EtAl:2011:ACL-HLT2011,\n author = {Maas, Andrew L. and Daly, Raymond E. and Pham, Peter T. and Huang, Dan and Ng, Andrew Y. and Potts, Christopher},\n title = {Learning Word Vectors for Sentiment Analysis},\n booktitle = {Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies},\n month = {June},\n year = {2011},\n address = {Portland, Oregon, USA},\n publisher = {Association for Computational Linguistics},\n pages = {142--150},\n url = {http://www.aclweb.org/anthology/P11-1015}\n}\n",
|
4 |
+
"config_name": "plain_text",
|
5 |
+
"dataset_size": 133190302,
|
6 |
+
"description": "Large Movie Review Dataset.\nThis is a dataset for binary sentiment classification containing substantially more data than previous benchmark datasets. We provide a set of 25,000 highly polar movie reviews for training, and 25,000 for testing. There is additional unlabeled data for use as well.",
|
7 |
+
"download_checksums": {
|
8 |
+
"http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz": {
|
9 |
+
"num_bytes": 84125825,
|
10 |
+
"checksum": "c40f74a18d3b61f90feba1e17730e0d38e8b97c05fde7008942e91923d1658fe"
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"download_size": 84125825,
|
14 |
+
"features": {
|
15 |
+
"text": {
|
16 |
+
"dtype": "string",
|
17 |
+
"_type": "Value"
|
18 |
+
},
|
19 |
+
"docid": {
|
20 |
+
"dtype": "int64",
|
21 |
+
"_type": "Value"
|
22 |
+
}
|
23 |
+
},
|
24 |
+
"homepage": "http://ai.stanford.edu/~amaas/data/sentiment/",
|
25 |
+
"license": "",
|
26 |
+
"size_in_bytes": 217316127,
|
27 |
+
"splits": {
|
28 |
+
"train": {
|
29 |
+
"name": "train",
|
30 |
+
"num_bytes": 33432823,
|
31 |
+
"num_examples": 25000,
|
32 |
+
"dataset_name": "imdb"
|
33 |
+
},
|
34 |
+
"test": {
|
35 |
+
"name": "test",
|
36 |
+
"num_bytes": 32650685,
|
37 |
+
"num_examples": 25000,
|
38 |
+
"dataset_name": "imdb"
|
39 |
+
},
|
40 |
+
"unsupervised": {
|
41 |
+
"name": "unsupervised",
|
42 |
+
"num_bytes": 67106794,
|
43 |
+
"num_examples": 50000,
|
44 |
+
"dataset_name": "imdb"
|
45 |
+
}
|
46 |
+
},
|
47 |
+
"task_templates": [],
|
48 |
+
"version": {
|
49 |
+
"version_str": "1.0.0",
|
50 |
+
"description": "",
|
51 |
+
"major": 1,
|
52 |
+
"minor": 0,
|
53 |
+
"patch": 0
|
54 |
+
}
|
55 |
+
}
|
data/state.json
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_data_files": [
|
3 |
+
{
|
4 |
+
"filename": "data-00000-of-00028.arrow"
|
5 |
+
},
|
6 |
+
{
|
7 |
+
"filename": "data-00001-of-00028.arrow"
|
8 |
+
},
|
9 |
+
{
|
10 |
+
"filename": "data-00002-of-00028.arrow"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"filename": "data-00003-of-00028.arrow"
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"filename": "data-00004-of-00028.arrow"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"filename": "data-00005-of-00028.arrow"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"filename": "data-00006-of-00028.arrow"
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"filename": "data-00007-of-00028.arrow"
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"filename": "data-00008-of-00028.arrow"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"filename": "data-00009-of-00028.arrow"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"filename": "data-00010-of-00028.arrow"
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"filename": "data-00011-of-00028.arrow"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"filename": "data-00012-of-00028.arrow"
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"filename": "data-00013-of-00028.arrow"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"filename": "data-00014-of-00028.arrow"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"filename": "data-00015-of-00028.arrow"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"filename": "data-00016-of-00028.arrow"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"filename": "data-00017-of-00028.arrow"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"filename": "data-00018-of-00028.arrow"
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"filename": "data-00019-of-00028.arrow"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"filename": "data-00020-of-00028.arrow"
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"filename": "data-00021-of-00028.arrow"
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"filename": "data-00022-of-00028.arrow"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"filename": "data-00023-of-00028.arrow"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"filename": "data-00024-of-00028.arrow"
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"filename": "data-00025-of-00028.arrow"
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"filename": "data-00026-of-00028.arrow"
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"filename": "data-00027-of-00028.arrow"
|
86 |
+
}
|
87 |
+
],
|
88 |
+
"_fingerprint": "1d74567875c58748",
|
89 |
+
"_format_columns": null,
|
90 |
+
"_format_kwargs": {},
|
91 |
+
"_format_type": null,
|
92 |
+
"_output_all_columns": false,
|
93 |
+
"_split": "train"
|
94 |
+
}
|
index/.gitkeep
ADDED
File without changes
|
index/_0.fdm
ADDED
Binary file (158 Bytes). View file
|
|
index/_0.fdt
ADDED
Binary file (36.5 kB). View file
|
|
index/_0.fdx
ADDED
Binary file (93 Bytes). View file
|
|
index/_0.fnm
ADDED
Binary file (322 Bytes). View file
|
|
index/_0.nvd
ADDED
Binary file (6.35 kB). View file
|
|
index/_0.nvm
ADDED
Binary file (103 Bytes). View file
|
|
index/_0.si
ADDED
Binary file (498 Bytes). View file
|
|
index/_0_Lucene90_0.doc
ADDED
Binary file (938 kB). View file
|
|
index/_0_Lucene90_0.dvd
ADDED
Binary file (38.1 kB). View file
|
|
index/_0_Lucene90_0.dvm
ADDED
Binary file (171 Bytes). View file
|
|
index/_0_Lucene90_0.pos
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fb16246848a389dd1739783c966b0d1a8ebcb591f41b5c61d31f80d59bf1660
|
3 |
+
size 1260420
|
index/_0_Lucene90_0.tim
ADDED
Binary file (315 kB). View file
|
|
index/_0_Lucene90_0.tip
ADDED
Binary file (8.35 kB). View file
|
|
index/_0_Lucene90_0.tmd
ADDED
Binary file (261 Bytes). View file
|
|
index/_1.fdm
ADDED
Binary file (158 Bytes). View file
|
|