Skip to content

Commit

Permalink
auto punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Washington committed Jun 10, 2021
1 parent f6186bf commit 90e55e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions notatrix/src/nx/base-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class BaseToken extends NxBaseClass {
if (typeof deprel !== "string" && deprel != null)
throw new NxError("deprel must be a string, null, or undefined");

if(this.upostag == "PUNCT" && deprel == null)
deprel = "punct";

// if we're not enhanced, only can have 1 head at a time
if (!this.sent.options.enhanced)
this.heads.clear();
Expand Down

0 comments on commit 90e55e4

Please sign in to comment.