Spaces:
Runtime error
Runtime error
feat: Move examples to a separate file
Browse files- util/examples.py +112 -0
util/examples.py
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from util import summarizer
|
2 |
+
|
3 |
+
entries = [
|
4 |
+
[
|
5 |
+
"US9820315B2",
|
6 |
+
summarizer.summary_options,
|
7 |
+
summarizer.model_names[3],
|
8 |
+
summarizer.model_names[0],
|
9 |
+
summarizer.model_names[2],
|
10 |
+
True,
|
11 |
+
250
|
12 |
+
],
|
13 |
+
[
|
14 |
+
"US9820315B2",
|
15 |
+
summarizer.summary_options,
|
16 |
+
summarizer.model_names[3],
|
17 |
+
summarizer.model_names[0],
|
18 |
+
summarizer.model_names[2],
|
19 |
+
True,
|
20 |
+
400
|
21 |
+
],
|
22 |
+
[
|
23 |
+
"https://patents.google.com/patent/US9820315B2",
|
24 |
+
summarizer.summary_options,
|
25 |
+
summarizer.model_names[2],
|
26 |
+
summarizer.model_names[2],
|
27 |
+
summarizer.model_names[2],
|
28 |
+
True,
|
29 |
+
700
|
30 |
+
],
|
31 |
+
[
|
32 |
+
"https://patents.google.com/patent/US10263802B2/en?q=smart+user+interface&oq=smart+user+interface",
|
33 |
+
summarizer.summary_options,
|
34 |
+
summarizer.model_names[1],
|
35 |
+
summarizer.model_names[1],
|
36 |
+
summarizer.model_names[1],
|
37 |
+
True,
|
38 |
+
400
|
39 |
+
],
|
40 |
+
[
|
41 |
+
"CN211575647U",
|
42 |
+
summarizer.summary_options,
|
43 |
+
summarizer.model_names[3],
|
44 |
+
summarizer.model_names[0],
|
45 |
+
summarizer.model_names[2],
|
46 |
+
True,
|
47 |
+
250
|
48 |
+
],
|
49 |
+
[
|
50 |
+
"CN211575647U",
|
51 |
+
summarizer.summary_options,
|
52 |
+
summarizer.model_names[3],
|
53 |
+
summarizer.model_names[0],
|
54 |
+
summarizer.model_names[2],
|
55 |
+
True,
|
56 |
+
400
|
57 |
+
],
|
58 |
+
[
|
59 |
+
"https://patents.google.com/patent/CN211575647U",
|
60 |
+
summarizer.summary_options,
|
61 |
+
summarizer.model_names[2],
|
62 |
+
summarizer.model_names[2],
|
63 |
+
summarizer.model_names[2],
|
64 |
+
True,
|
65 |
+
700
|
66 |
+
],
|
67 |
+
[
|
68 |
+
"https://patents.google.com/patent/CN211575647U/en",
|
69 |
+
summarizer.summary_options,
|
70 |
+
summarizer.model_names[1],
|
71 |
+
summarizer.model_names[1],
|
72 |
+
summarizer.model_names[1],
|
73 |
+
True,
|
74 |
+
400
|
75 |
+
],
|
76 |
+
[
|
77 |
+
"US10125002B2",
|
78 |
+
summarizer.summary_options,
|
79 |
+
summarizer.model_names[3],
|
80 |
+
summarizer.model_names[0],
|
81 |
+
summarizer.model_names[2],
|
82 |
+
True,
|
83 |
+
250
|
84 |
+
],
|
85 |
+
[
|
86 |
+
"US10125002B2",
|
87 |
+
summarizer.summary_options,
|
88 |
+
summarizer.model_names[3],
|
89 |
+
summarizer.model_names[0],
|
90 |
+
summarizer.model_names[2],
|
91 |
+
True,
|
92 |
+
400
|
93 |
+
],
|
94 |
+
[
|
95 |
+
"https://patents.google.com/patent/US10125002B2",
|
96 |
+
summarizer.summary_options,
|
97 |
+
summarizer.model_names[2],
|
98 |
+
summarizer.model_names[2],
|
99 |
+
summarizer.model_names[2],
|
100 |
+
True,
|
101 |
+
700
|
102 |
+
],
|
103 |
+
[
|
104 |
+
"https://patents.google.com/patent/US10125002B2/en",
|
105 |
+
summarizer.summary_options,
|
106 |
+
summarizer.model_names[1],
|
107 |
+
summarizer.model_names[1],
|
108 |
+
summarizer.model_names[1],
|
109 |
+
True,
|
110 |
+
400
|
111 |
+
]
|
112 |
+
]
|