TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A Natural Language Query Engine Without Machine Learning

115 点作者 youngprogrammer超过 8 年前

13 条评论

charlieegan3超过 8 年前
I think you might get better results in the first stage using the dependency parse from CoreNLP - rather than the phrasal parse. Online demo at <a href="http:&#x2F;&#x2F;corenlp.run" rel="nofollow">http:&#x2F;&#x2F;corenlp.run</a><p>If you&#x27;re willing to drop CoreNLP there&#x27;s also <a href="https:&#x2F;&#x2F;demos.explosion.ai&#x2F;displacy&#x2F;" rel="nofollow">https:&#x2F;&#x2F;demos.explosion.ai&#x2F;displacy&#x2F;</a> that&#x27;s worth checking out.
评论 #12668845 未加载
steinsgate超过 8 年前
Nice work! You said that you avoided machine learning because labeled data is hard to find. What about unsupervised approaches?<p>Frankly speaking, I am a bit skeptical about pattern matching algorithms for answering questions. It would help if you showed some kind of stats about your algorithm&#x27;s performance on a diverse question set. For example, you can scrape simple quiz questions (and answers) from quiz sites [1] and report back on the performance.<p>[1] <a href="http:&#x2F;&#x2F;www.quiz-zone.co.uk&#x2F;questionsbydifficulty&#x2F;1&#x2F;0&#x2F;answers.html" rel="nofollow">http:&#x2F;&#x2F;www.quiz-zone.co.uk&#x2F;questionsbydifficulty&#x2F;1&#x2F;0&#x2F;answers...</a>
drdeca超过 8 年前
In addition to the questions it does answer well, it also has these answers:<p>Q: &quot;What is purpose&quot; A: &quot;Justin Bieber album&quot; Q: &quot;What is a car?&quot; A: &quot;country in Africa&quot; Q: &quot;What is a male?&quot; A: &quot;capital of Maldives&quot; Q: &quot;What is a female?&quot; A: &quot;human who is female (use with Property:P21 sex or gender). For groups of females use with &#x27;&#x27;subclass of (P279)&#x27;&#x27;&quot;<p>my point in this comment is just to say that when it does give an odd answer, it can be funny, not to say that it sometimes gives odd answers.
mrob超过 8 年前
This seems almost completely useless. I tried ten questions, and only one was answered, incorrectly (Moby Dick question misunderstood, answered as &quot;novel by Herman Melville&quot;). I think even Ask Jeeves back in the 90s had better performance than this. Questions tried:<p>how many lines of resolution are there in an ntsc television signal?<p>what is the melting point of tin&#x2F;lead eutetic solder?<p>what species of whale was moby dick?<p>what grain is most often used to make beer?<p>what is the boiling point of water?<p>how many chromosomes does a normal human have?<p>what animal is known as &quot;man&#x27;s best friend&quot;?<p>what fps did id software release in 1993?<p>what is the largest known prime number?<p>what is the clock rate of the arduino uno?<p>As a comparison, Google gives 8 correct answers directly (either as an special info box, or as highlighted part of a web page), 1 correct answer as the 2nd search result (Doom), and 1 incorrect answer (largest known prime).
评论 #12669590 未加载
评论 #12668913 未加载
imh超过 8 年前
These things are always so interesting in their totally inhuman failure cases. It can tell me George Washington was born in 1732, but doesn&#x27;t know which planet America is on (much less which planet George Washington was born on).<p>Also, it seems to have issues formatting dates before 1900 (for the bday one, the answer it returns is more of an error message than an answer: &quot;year=1732 is before 1900; the datetime strftime() methods require year &gt;= 1900&quot;)
ecesena超过 8 年前
Partially related - has anyone worked on natural language queries with time expressions in it? Imagine analytics queries, where you want to count the number of events&#x2F;unique users, given certain conditions, and in a certain time window. i&#x27;m particularly interested in the time aspect of it.
fspeech超过 8 年前
Have you studied Prolog? Its matching (logical unification) capability may give you some more ideas.
greglindahl超过 8 年前
Very interesting! Nice to see how little code it is. I wonder how much work it would be to get it to answer questions like &quot;What is the biggest planet?&quot; or fix that &quot;Who was Prime Minister of Canada in 1945&quot; drops &quot;of Canada&quot;?
atoko超过 8 年前
This is cool! I like how you&#x27;ve iterated on a central concept (NLP) with different codebases.<p>Tip: The link to the source is pointing to github pages, which hasn&#x27;t been set up.
评论 #12667738 未加载
mrcabada超过 8 年前
This is nice! Would it be possible to run the code with other language models? (Spanish, German, and any other CoreNLP language model)
评论 #12668141 未加载
youngprogrammer超过 8 年前
Demo should be working now. The stanford parser getting dying from running out of memory so I moved it to a another box
billconan超过 8 年前
This Is cool! Is it easy to convert a mediawiki to the graph store your system reads?
评论 #12672137 未加载
评论 #12667576 未加载
alexcaps超过 8 年前
Couldn&#x27;t tell me who the CEO of Apple is... :(