Comments (3)
Hi,
I guess you may want to fetch top-n responses from m candidates, where m >> n.
If yes, you can try a min-heap with size n and iterate all candidates, this would be much faster than sorting all elements.
Xiangyang
from dialogue.
Hi, Xiangyang,
Thanks for the tips. We were actually using the same technique to get top-k, with a much smaller complexity than sorting (which is nlogn). Beyond that, we were also trying to group response candidates to different clusters, to reduce the number of requests sending to the tf serving backend.
p.s. Nice presentation on the ACL18. I was there, but did not have a chance to talk to you.
Cheers
from dialogue.
from dialogue.
Related Issues (20)
- Pickle Error
- Why use 3d CNN not 2d CNN in your paper? HOT 1
- In predicting time, do we need to compute all the sentence in the dataset? HOT 4
- 需要自己写数据预处理的代码? HOT 2
- 貌似build_batches方法会漏掉最后一批不足一batch的数据 HOT 1
- 有没尝试用过BERT的tokenizer方式? HOT 7
- 请问下多轮和单轮的兼容问题有什么好的策略吗? HOT 2
- Output response HOT 5
- evaluate question HOT 1
- Douban model save condition HOT 1
- tf.einsum('biks,bjks->bijs', t_a_r, r_a_t) HOT 3
- I would like to ask when <Multi-View Response Selection for Human-Computer Conversation>'s code will be released?~ HOT 1
- Where is CUDA_VISIBLE_DEVICES=0 ../attention_SMN/python/bin/python main.py? HOT 2
- The format of the input_example about "udc" task. HOT 1
- data.zip 无法下载 HOT 3
- 预处理的pkl文件 HOT 1
- 报错UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above. HOT 1
- 论文下载问题
- The hardware requirement to run the model
- ValueError: (InvalidArgument) Broadcast dimension mismatch.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dialogue.