public class PatternMatch extends Object
Constructor and Description |
---|
PatternMatch(String expr,
String in) |
PatternMatch(String expr,
String in,
List<String> kw) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDistantBetween(int begin,
int end)
Return true if exist other than "and" "or" "," (ignoring DRUG and PSE)
in input.substring(begin, end)
|
boolean |
isDrugBetween(int begin,
int end)
Return true if finds "DRUG" in input.substring(begin, end)
|
boolean |
isDrugBetween(int begin,
int end,
int[] span)
Return true if finds "DRUG" in input.substring(begin, end)
and assign offsets of DRUG to span
|
boolean |
isPseBetween(int begin,
int end)
Return true if finds "PSE" in input.substring(begin, end)
|
boolean |
isPseBetween(int begin,
int end,
int[] span)
Return true if finds "PSE" in input.substring(begin, end)
and assign offsets of PSE to span
|
public boolean isDrugBetween(int begin, int end)
begin
- end
- public boolean isDrugBetween(int begin, int end, int[] span)
begin
- end
- span
- offset of the first DRUG in "input"public boolean isPseBetween(int begin, int end)
begin
- end
- public boolean isPseBetween(int begin, int end, int[] span)
begin
- end
- span
- offset of the first PSE in "input"public boolean isDistantBetween(int begin, int end)
begin
- end
- Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.