TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to run NER in batch with ChatGPT?

1 pointsby bguberfainabout 2 years ago
Named entity recognition (NER) is usually the basis of transforming unstructured data (text) into structured data (say, in JSON format). The current best approach for NER in ChatGPT is few-shot-learning, where we give a few examples and asks for it to solve ONE instance of the task. The problem with this approach is the cost. We need to use a lot of tokens from examples in order to predict a single instance. I&#x27;m trying to overcome this issue by giving more than one instance for prediction. Something like this:<p>``` &lt;instruction&gt; &lt;1 - example&gt; &lt;2 - example&gt; &lt;3 - new instance&gt; &lt;4 - new instance&gt;<p>&lt;answer for 1&gt; &lt;answer for 2&gt; ```<p>Wishing the generator to predict answers for instances 3 and 4.<p>From my experience, results are worst than predicting a single instance.<p>Does anyone have better results in this task?<p>Thanks!

no comments

no comments