Skip to content

AttributeError: 'spacy.morphology.Morphology' object has no attribute 'tag_map' #10889

Description

@pradeepdev-1995

How to reproduce the behaviour

When I am trying the below code

import en_core_web_sm
nlp = en_core_web_sm.load()
doc = nlp("my sentence")
for token in doc:
         morph = nlp.vocab.morphology.tag_map[token.tag_]

I am getting the following spacy error

AttributeError: 'spacy.morphology.Morphology' object has no attribute 'tag_map'

Your Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions