implemented getcoocurrences in SelectivePatternModel
implemented computekeywords for SelectivePatternModel