Skip to content

Attribute error after running "doc._.has_grammar_error" #4

@SRIKARHI

Description

@SRIKARHI

AttributeError: [E046] Can't retrieve unregistered extension attribute 'has_grammar_error'. Did you forget to call the set_extension method?

I have cloned this repo and ran this script:
import spacy
from spacy_grammar.grammar import Grammar

nlp = spacy.load('en')
grammar = Grammar(nlp)
nlp.add_pipe(grammar)
doc = nlp('I can haz cheeseburger.')
doc._.has_grammar_error

I am getting this error.Kindly help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions