public class ContextRule extends Object
| Constructor and Description |
|---|
ContextRule(Regex regex,
Proximity proximity,
ConfidenceAdjustment confidenceAdjustment)
Create a new Context Rule.
|
| Modifier and Type | Method and Description |
|---|---|
ConfidenceAdjustment |
getConfidenceAdjustment()
Return the confidence adjustment.
|
Proximity |
getProximity()
Return the proximity.
|
Regex |
getRegex()
Return the regular expression.
|
public ContextRule(Regex regex, Proximity proximity, ConfidenceAdjustment confidenceAdjustment)
regex - the regular expression configurationproximity - the proximity in which to evaluate the regular expressionconfidenceAdjustment - describes how to adjust the confidence of a finding if the regular expression matchespublic Regex getRegex()
public Proximity getProximity()
public ConfidenceAdjustment getConfidenceAdjustment()
Copyright © 2022. All rights reserved.