Hallo cofi,
vielen Dank, dass du mich so nett willkommen geheißen hast und mir geholfen hast. Ich habe den Code, so wie du ihn beschrieben hast in meinen Code eingebaut aber leider ist das set immernoch ungeordnet.
Ich nehme mal an, ich mache etwas falsch und stehe einfach nur auch dem Schlauch ...
Die Suche ergab 2 Treffer
- Sonntag 29. Mai 2011, 20:28
- Forum: Allgemeine Fragen
- Thema: Anwendung von Sets bringt Reihenfolge durcheinander
- Antworten: 6
- Zugriffe: 1397
- Samstag 28. Mai 2011, 17:39
- Forum: Allgemeine Fragen
- Thema: Anwendung von Sets bringt Reihenfolge durcheinander
- Antworten: 6
- Zugriffe: 1397
Anwendung von Sets bringt Reihenfolge durcheinander
Hallo zusammen,
Ich habe folgenden Programmcode geschrieben:
import nltk
nltk.download()
from nltk.corpus import stopwords
stopwords = stopwords.words('english')
newstopwords = set(stopwords)
porter = nltk.PorterStemmer()
eingabe = 'all the books are lying on the tables each and every single day ...
Ich habe folgenden Programmcode geschrieben:
import nltk
nltk.download()
from nltk.corpus import stopwords
stopwords = stopwords.words('english')
newstopwords = set(stopwords)
porter = nltk.PorterStemmer()
eingabe = 'all the books are lying on the tables each and every single day ...
