def intersection(self, synSet: SynSet, sentence: AnnotatedSentence) -> int:
     if synSet.getExample() is not None:
         words1 = (synSet.getLongDefinition() + " " +
                   synSet.getExample()).split(" ")
     else:
         words1 = synSet.getLongDefinition().split(" ")
     words2 = sentence.toString().split(" ")
     count = 0
     for word1 in words1:
         for word2 in words2:
             if word1.lower() == word2.lower():
                 count = count + 1
     return count
 def intersection(self, synSet: SynSet, leafList: list) -> int:
     if synSet.getExample() is not None:
         words1 = (synSet.getLongDefinition() + " " +
                   synSet.getExample()).split(" ")
     else:
         words1 = synSet.getLongDefinition().split(" ")
     words2 = []
     for i in range(len(leafList)):
         words2.append(leafList[i].getLayerData(ViewLayerType.TURKISH_WORD))
     count = 0
     for word1 in words1:
         for word2 in words2:
             if word1.lower() == word2.lower():
                 count = count + 1
     return count