wenzhuoliu commited on
Commit
c2f3000
·
verified ·
1 Parent(s): 97ef42b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -1
README.md CHANGED
@@ -104,6 +104,20 @@ res = await asyncio.gather(*tasks)
104
 
105
 
106
  # Test on reranker/disambiguation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
-
109
 
 
104
 
105
 
106
  # Test on reranker/disambiguation
107
+ tasks = []
108
+ num_rerank = 10
109
+
110
+ for i in range(0, len(texts[:100]), num_rerank+1):
111
+ if len(texts[i+1: i+1+num_rerank]) == 0:
112
+ break
113
+ tasks.append(
114
+ asyncio.create_task(
115
+ async_disambig(
116
+ texts[i],
117
+ texts[i+1: i+1+num_rerank]
118
+ )
119
+ )
120
+ )
121
 
122
+ res = await asyncio.gather(*tasks)
123