shinseung428
commited on
Commit
β’
b29fd1c
1
Parent(s):
640edb5
update benchmark pdf files and results
Browse files- README.md +6 -6
- dataset/pdfs/01030000000170.pdf +2 -2
- dataset/pdfs/01030000000185.pdf +2 -2
- dataset/pdfs/01030000000186.pdf +2 -2
- dataset/pdfs/01030000000187.pdf +2 -2
- dataset/pdfs/01030000000188.pdf +2 -2
- dataset/pdfs/01030000000189.pdf +2 -2
- dataset/pdfs/01030000000190.pdf +2 -2
- dataset/pdfs/01030000000191.pdf +2 -2
- dataset/pdfs/01030000000192.pdf +2 -2
- dataset/pdfs/01030000000193.pdf +2 -2
- dataset/pdfs/01030000000195.pdf +2 -2
- dataset/pdfs/01030000000196.pdf +2 -2
- dataset/pdfs/01030000000197.pdf +2 -2
- dataset/reference.json +0 -0
- dataset/sample_results/aws_241010.json +0 -0
- dataset/sample_results/aws_241024.json +0 -0
- dataset/sample_results/google_241010.json +0 -0
- dataset/sample_results/google_241024.json +0 -0
- dataset/sample_results/llamaparse_241010.json +0 -0
- dataset/sample_results/llamaparse_241024.json +0 -0
- dataset/sample_results/microsoft_241010.json +0 -0
- dataset/sample_results/microsoft_241024.json +0 -0
- dataset/sample_results/unstructured_241010.json +0 -0
- dataset/sample_results/unstructured_241024.json +0 -0
- dataset/sample_results/{upstage_241022.json β upstage_241024.json} +0 -0
- scripts/infer_unstructured.py +7 -0
README.md
CHANGED
@@ -232,11 +232,11 @@ $ python evaluate.py \
|
|
232 |
|
233 |
| Source | Request date | TEDS β | TEDS-S β | NID β | Avg. Time (secs) β |
|
234 |
|:---------------------|:------------:|-----------:|----------:|------------:|------------:|
|
235 |
-
| upstage | 2024-10-
|
236 |
-
| aws | 2024-10-
|
237 |
-
| llamaparse | 2024-10-
|
238 |
-
| unstructured | 2024-10-
|
239 |
-
| google | 2024-10-
|
240 |
-
| microsoft | 2024-10-
|
241 |
|
242 |
</div>
|
|
|
232 |
|
233 |
| Source | Request date | TEDS β | TEDS-S β | NID β | Avg. Time (secs) β |
|
234 |
|:---------------------|:------------:|-----------:|----------:|------------:|------------:|
|
235 |
+
| upstage | 2024-10-24 | **93.48** | **94.16** | **97.02** | **3.79** |
|
236 |
+
| aws | 2024-10-24 | 88.05 | 90.79 | 96.71 | 14.47 |
|
237 |
+
| llamaparse | 2024-10-24 | 74.57 | 76.34 | 92.82 | 4.14 |
|
238 |
+
| unstructured | 2024-10-24 | 65.56 | 70.00 | 91.18 | 13.14 |
|
239 |
+
| google | 2024-10-24 | 66.13 | 71.58 | 90.86 | 5.85 |
|
240 |
+
| microsoft | 2024-10-24 | 87.19 | 89.75 | 87.69 | 4.44 |
|
241 |
|
242 |
</div>
|
dataset/pdfs/01030000000170.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4d5b682effaf9580928a7073980e3916687d168238bc96b6c17222f747eacde6
|
3 |
+
size 69255
|
dataset/pdfs/01030000000185.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b639c25ab157f6f4ecbdb7cd31724bf4c8869f03134f5e606c49dd5fbee2bb54
|
3 |
+
size 107787
|
dataset/pdfs/01030000000186.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:22d276b33b49ec941acbc323e24fa57ed07579760f472c136f226d755a0c3b13
|
3 |
+
size 256708
|
dataset/pdfs/01030000000187.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:29d883eb26e7b9d08250b4bab1c51092d74e310e6acfa955f8fe28f1008accf5
|
3 |
+
size 71370
|
dataset/pdfs/01030000000188.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61070c2fe64a690c7c9cc97d12b76380e7a134feda3c5315f779306699a89a1b
|
3 |
+
size 114941
|
dataset/pdfs/01030000000189.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2f972daaa81cb3949db12a39cf6910c4f9952135f7eb3850e1f60ef7d8b5aaf9
|
3 |
+
size 71529
|
dataset/pdfs/01030000000190.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eac01901729786f15ba498716c592370d50f00658c291495086ff49a8538c5c6
|
3 |
+
size 85792
|
dataset/pdfs/01030000000191.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:196876d21778214061c0d970de83cf37204a90e0f58c3da7e9f3c8c7e803b770
|
3 |
+
size 84621
|
dataset/pdfs/01030000000192.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eaafa071048c2ec1309751325280ea3d354317cf67ebda400cdf4fd39503392b
|
3 |
+
size 65607
|
dataset/pdfs/01030000000193.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fcaa8c3de4757ff51e604d84c983c59c421e31b9989df5b74c930e0e8720e5ae
|
3 |
+
size 47856
|
dataset/pdfs/01030000000195.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b12f031b9b42e6f54b76b7d4666df76b7c8410a676d63b0ad2afdb40388d623
|
3 |
+
size 52383
|
dataset/pdfs/01030000000196.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1c0d070f25babee3e3b5e2a842c54258f41939a7774c0e7c6d85fb7078e1196d
|
3 |
+
size 52496
|
dataset/pdfs/01030000000197.pdf
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39f32d6a01b8e434ad2fb16ff3896931153cdf4f85bca09194b71e1514711355
|
3 |
+
size 44988
|
dataset/reference.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/aws_241010.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/aws_241024.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/google_241010.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/google_241024.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/llamaparse_241010.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/llamaparse_241024.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/microsoft_241010.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/microsoft_241024.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/unstructured_241010.json
DELETED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/unstructured_241024.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dataset/sample_results/{upstage_241022.json β upstage_241024.json}
RENAMED
The diff for this file is too large to render.
See raw diff
|
|
scripts/infer_unstructured.py
CHANGED
@@ -151,6 +151,13 @@ class UnstructuredInference:
|
|
151 |
with open(self.save_path, "w") as f:
|
152 |
json.dump(result_dict, f)
|
153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
if __name__ == "__main__":
|
156 |
args = argparse.ArgumentParser()
|
|
|
151 |
with open(self.save_path, "w") as f:
|
152 |
json.dump(result_dict, f)
|
153 |
|
154 |
+
for error_file in error_files:
|
155 |
+
print(f"Error processing file: {error_file}")
|
156 |
+
|
157 |
+
print("Finished processing all documents")
|
158 |
+
print("Results saved to: {}".format(self.save_path))
|
159 |
+
print("Number of errors: {}".format(len(error_files)))
|
160 |
+
|
161 |
|
162 |
if __name__ == "__main__":
|
163 |
args = argparse.ArgumentParser()
|