improved context parser defaults
@@ -5,10 +5,15 @@ class ContextParser:
def get_default_model():
return ContextualParserApproach() \
.setInputCols(["sentence", "token"]) \
- .setOutputCol("context_entity")
-
+ .setOutputCol("context_entity")\
+ .setCaseSensitive(False) \
+ .setContextMatch(False) \
+ .setPrefixAndSuffixMatch(False)
@staticmethod
def get_default_trainable_model():
return ContextualParserApproach() \
.setInputCols(["sentence", "token"]) \
- .setOutputCol("context_entity")
+ .setOutputCol("context_entity") \
+ .setCaseSensitive(False) \
+ .setContextMatch(False) \
+ .setPrefixAndSuffixMatch(False)
