Skip to content

German stopwords #364

Closed
Closed

Description

@bobbyrenwick

Hey, it would be great if you could add spacy.de.STOPWORDS to match spacy.en.STOPWORDS.

Activity

  1. honnibal commented on May 5, 2016

    @honnibal
    Member

    Good point! Forgot about these.

    In the meantime you can set your own as follows:

    import spacy
    
    de_nlp = spacy.load('de')
    for stopword in my_stop_words:
        lexeme = nlp.vocab[stopword]
        lexeme.is_stop = True
    

    The attribute will be inherited by all tokens, because all tokens of a given type receive a reference to that type. So when you write to the lexical type via the vocab, all tokens will see the updated attribute.

  2. bobbyrenwick commented on May 6, 2016

    @bobbyrenwick
    Author

    Thanks for the workaround!

  3. ines commented on Nov 24, 2016

    @ines
    Member
  4. lock commented on May 9, 2018

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked as resolved and limited conversation to collaborators on May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests and improvements

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions