Skip to main content
The 2025 Annual Developer Survey is live — take the Survey today!

NLP Collective

A collective focused on NLP (natural language processing), the transformation or extraction of useful information from natural language data.
38.6k Questions
+5
10.2k Members
+67
Contact

Pinned content

View all 2 collections

NLP admins have deemed these posts noteworthy.

Pinned
9 votes
2k views
Collection

Natural Language Processing FAQ

Frequently asked questions relating to NLP. Many of these may be questions that are often asked over and over, duplicates would likely be closed in favor of these. Add the best answer (using the ...
Berthold's user avatar
  • 101

Can you answer these questions?

View all unanswered questions

These questions still don't have an answer

0 votes
0 answers
9 views

Sentence similarity pipeline with @huggingface/transformers

Wanted to use the pipeline api from @huggingface/transformers js for sentence-similarity - but I do not see a specific pipeline for it. The closest thing is text classification and feature extractions ...
0 votes
0 answers
22 views

Will normalising after the weighting have a negative impact on the final vector space

Build the vectorizer with no normalization tfidf = TfidfVectorizer( token_pattern=r"\b[A-Za-z0-9]+\b", ngram_range=(1, 2), stop_words=UK_ADDRESS_STOP_WORDS, use_idf=True, ...
1 vote
0 answers
27 views

Mismatched number of tokens and features: LLaVA

model_id = "llava-hf/llava-1.5-7b-hf" pipe = pipeline("image-to-text", model=model_id, model_kwargs={}) def test_single_image(): """ Test the ...
0 votes
0 answers
23 views

OpenRouter Inference: Issue with Combined Contexts

I'm using the OpenRouter API for inference, and I’ve noticed that it doesn’t natively support batch inference. To work around this, I’ve been manually batching by combining multiple examples into a ...
0 votes
0 answers
12 views

Webpack error: "Module parse failed: Unexpected character '�' (1:0)" when using @xenova/transformers

I'm trying to run a sentiment analysis function using the @xenova/transformers package in a NextJS project with Webpack, but I'm encountering the following error: Module parse failed: Unexpected ...