Ask HN: NLP Using Chat UI
1 malshe 2 8/14/2025, 4:53:29 PM
I use OpenAI API for doing NER tasks and also aspect-based sentiment analysis. It works pretty well. Recently, someone asked me whether ChatGPT can do the same analysis by uploading the text in the chat UI. I tried it and found the results pretty weak compared to what I get from the API. The reason for this is that ChatGPT just writes Python code and uses off the shelf NLP modules to conduct this task.
Any ideas for getting around this issue? I want ChatGPT to generate the text not the Python code and execute that code.
"NER task: extract all named entities from this text. Don't use python. JSON format"
I tried Gemini too, and it works without needing to tell it to not use Python.
The API is still better, of course, because you can constrain output to a JSON schema of your choosing... but all models now seem quite good at outputting valid JSON when asked and can follow 1-shot schema examples