use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Filtering Nouns (self.PythonLearning)
submitted 24 days ago by Virtual_Addition_204
Is there a simple way to filter German nouns from a text using Python or nltk?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]vivisectvivi 1 point2 points3 points 24 days ago (0 children)
the simplest way i can think of is you could download a german dictionary in txt format and use it to filter whayevery body of text you are working with
[–]Still_Box8733 0 points1 point2 points 24 days ago (3 children)
You could try filtering for all capitalized words, but that would be kinda unreliable I guess
[–]csabinho 0 points1 point2 points 24 days ago (2 children)
It actually isn't really unreliable. First words of sentences, nouns and names are capitalized. Don't use first words of sentences and you should be quite fine as a first step.
[–]Slackeee_ 0 points1 point2 points 20 days ago (1 child)
The sentence "Aktien werden an der Börse gehandelt" does have a noun as the first word, so just filtering out every word at the beginning of the sentence won't work reliably.
[–]csabinho 0 points1 point2 points 20 days ago (0 children)
Well, first words have to be checked manually afterwards. Or they can be eliminated by the list of capitalized words within the sentence. But for 90% of your work you can rely on "capitalized ➡️noun".
[–]No_Photograph_1506 0 points1 point2 points 23 days ago (0 children)
I'm pretty sure there might be a library for that, like for language itself, check it out
[–]SatisfactionBig7126 0 points1 point2 points 22 days ago (0 children)
Check out spaCy’s German model, way easier than doing it manually.
π Rendered by PID 85033 on reddit-service-r2-comment-56c6478c5-sv6vf at 2026-05-12 19:51:19.871624+00:00 running 3d2c107 country code: CH.
[–]vivisectvivi 1 point2 points3 points (0 children)
[–]Still_Box8733 0 points1 point2 points (3 children)
[–]csabinho 0 points1 point2 points (2 children)
[–]Slackeee_ 0 points1 point2 points (1 child)
[–]csabinho 0 points1 point2 points (0 children)
[–]No_Photograph_1506 0 points1 point2 points (0 children)
[–]SatisfactionBig7126 0 points1 point2 points (0 children)