SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
41–50 of 67 posts
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#42At the risk of asking a naive question ... why would anyone still do traditional NLP today?
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#43Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#44SpaCy is criminally underrated. I expect to see it experience a new wave of growth as folks new to AI start to realize all of the language tooling they need to build more reliable "traditional" ML pipelines. API surface is designed well and it's still actively maintained almost 10 years after it initially went public.
Is there any use case for "traditional" NLP in the age of LLMs?
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#45A friend, who also has a background in NLP, was asking me the other day "Is there still even a need for traditional NLP in the age of LLMs?" This is one of the under-discussed areas of LLMs imho. For anything that would have have required either word2vec embeddings of a tf-idf representation (classification tasks, sentiment analysis, etc) there are rare exceptions where it wouldn't just be better to start with a sema…
How about expense? LLMs do dramatically more computations doing simple tasks, and only run on relatively exotic, expensive hardware. You have to trust an LLM provider, and keep paying them. If a traditional NLP solution can run under your control, and tackle the task at hand, it can be plainly much cheaper at scale.
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#46Earlier quoted context omitted.
I have been working on text classification tasks at work, and I have found that for my particular use-case, LLMs are not performing well at all. I have spent a few thousand dollars trying, and I have tried everything from few-shot to asking simple binary yes/no questions, and I have had mixed success. I have stopped trying to use LLMs for this project and switched to discriminative models (Logistic Regression with TF…
It depends on a lot of things but to add to your possible setups you can potentially improve results by using simpler systems for first answers and falling back afterwards. For example: If contains cafe and not internet/cyber/etc -> restaurant No -> (tfidf) -> yes, no, unsure unsure -> embeddings -> yes, no, unsure unsure -> llm -> yes, no, unsure unsure -> human queue ->...
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#47Earlier quoted context omitted.
I have been working on text classification tasks at work, and I have found that for my particular use-case, LLMs are not performing well at all. I have spent a few thousand dollars trying, and I have tried everything from few-shot to asking simple binary yes/no questions, and I have had mixed success. I have stopped trying to use LLMs for this project and switched to discriminative models (Logistic Regression with TF…
At my work, we still prefer to use distilbert for text classification. It almost always does well with a little bit of fine tuning. In very rare cases, we use LLMs/Agentic setup when the task involves refering both images and text and the same time.
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#48Earlier quoted context omitted.
I have been working on text classification tasks at work, and I have found that for my particular use-case, LLMs are not performing well at all. I have spent a few thousand dollars trying, and I have tried everything from few-shot to asking simple binary yes/no questions, and I have had mixed success. I have stopped trying to use LLMs for this project and switched to discriminative models (Logistic Regression with TF…
Are your categories fixed? If so you could constrain the output using enums in structured outputs. re: inconsistencies in output, OpenAI provide a seed and system_fingerprint options to (mostly) produce deterministic output.
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#49Earlier quoted context omitted.
Is there any use case for "traditional" NLP in the age of LLMs?
Most definitely! LLMs are amazing tools for generating synthetic datasets that can be used alongside traditional NLP to train things like decision trees with libraries like cat/xgboost. I have a search background so learning to rank is always top of mind for me, but there other places like sentiment analysis, intent detection, and topic classification where it's great too.
Re: SpaCy: Industrial-Strength Natural Language Processing (NLP) in Python
#50Earlier quoted context omitted.
At my work, we still prefer to use distilbert for text classification. It almost always does well with a little bit of fine tuning. In very rare cases, we use LLMs/Agentic setup when the task involves refering both images and text and the same time.
I can confirm that Distillbert has worked well when I have used it for classification, especially on shortish sequences. I'm really interested in trying out ModernBert, or a smaller variant due to the larger context window (8192 tokens).