We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6ed0c commit a11257eCopy full SHA for a11257e
notatrix/src/nx/base-token.js
@@ -58,6 +58,9 @@ class BaseToken extends NxBaseClass {
58
if (typeof deprel !== "string" && deprel != null)
59
throw new NxError("deprel must be a string, null, or undefined");
60
61
+ if(this.upostag == "PUNCT" && deprel == null)
62
+ deprel = "punct";
63
+
64
// if we're not enhanced, only can have 1 head at a time
65
if (!this.sent.options.enhanced)
66
this.heads.clear();
0 commit comments