Attribute Error: 'RegexMatcher' object has no attribute 'setRules' #13286
-
When I try to set the rules for this annotator internally as opposed to using an external file, I encounter the following error: Attribute Error: 'RegexMatcher' object has no attribute 'setRules' Is this because I'm using an outdated version of this annotator or Spark NLP in general? I believe the Spark version I'm using is 3.4.4 and this rules object might come from version 4.2.3, I'm not sure. Example below is copied straight from: regexMatcher = RegexMatcher() If I just need to update the version, what's the easiest way to do that? Do I need to reinstall Spark-NLP or can I just update the package with "sudo pip install [sparknlp] --upgrade" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I was able to update the Spark-NLP package version and that seemed to resolve this issue. |
Beta Was this translation helpful? Give feedback.
I was able to update the Spark-NLP package version and that seemed to resolve this issue.