Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Computer freezes when trying to call s2v_most_similar()

Aperta
#129 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Inizia esaminando la chiamata a s2v_most_similar(), l’inizializzazione dei vettori scaricati e la funzione per i sinonimi di una singola parola mostrata nelle immagini dell’issue. Riproduci il blocco usando l’esempio e l’input forniti, quindi individua la causa e conferma che la ricerca dei sinonimi venga completata senza bloccare il computer.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I am trying to use sense2vec with my text processing project to automatically generate rules for matching, and I am having problems with attempts to find synonyms of words specified in a text file. For some reason, the entire computer freezes whenever I try to find synonyms. I tried to write the example code, and it works fine, though it did slightly stutter on model load. I tried to make the code as close to the example as possible, but for some reason it still doesn't prevent freezing.

This is the code initializing the vectors downloaded:
image

This is the code where the function is called:
image

This is my synonym function, also a modified version of one of the examples( I don't need any token but the first since the string that gets passed only consists of one word anyway):
image

I also tried to double check the exact values that get passed to the function, but that didn't yield any results either. As the image shows, the word that gets passed into the function is not some unusual string either, and the documentation doesn't mention any freezing issues, which is why I thought I would seek help here.

Lingua principale
Python
Stelle
1.7k
Fork
236
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di explosion/sense2vec

Tutte le issue di explosion/sense2vec

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.