Skip to content

Commit

Permalink
Add doc.is_nered
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Mar 22, 2019
1 parent 6924c37 commit 4119708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def doc2json(doc: spacy.tokens.Doc, model: str):
"cats": doc.cats,
"is_tagged": doc.is_tagged,
"is_parsed": doc.is_parsed,
"is_nered": doc.is_nered,
"is_sentenced": doc.is_sentenced,
}
ents = [
Expand Down
1 change: 1 addition & 0 deletions src/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class Doc {
this.cats = this._doc.cats
this.isTagged = this._doc.is_tagged
this.isParsed = this._doc.is_parsed
this.isNered = this._doc.is_nered
this.isSentenced = this._doc.is_sentenced
}

Expand Down

0 comments on commit 4119708

Please sign in to comment.