class_docstr: Give a sentiment intensity score to sentences.
class_docstr_tok: ["Give","a","sentiment","intensity","score","to","sentences","."]
code: def _but_check(words_and_emoticons, sentiments):
      # check for modification in sentiment due to contrastive conjunction 'but'
      words_and_emoticons_lower = [
          str(w).lower() for w in words_and_emoticons
      ]
      if "but" in words_and_emoticons_lower:
          bi = words_and_emoticons_lower.index("but")
          for sentiment in sentiments:
              si = sentiments.index(sentiment)
              if si < bi:
                  sentiments.pop(si)
                  sentiments.insert(si, sentiment * 0.5)
              elif si > bi:
                  sentiments.pop(si)
                  sentiments.insert(si, sentiment * 1.5)
      return sentiments
  
imports: import os
  import re
  import math
  import string
  import codecs
  import json
  from itertools import product
  from inspect import getsourcefile
  from io import open
label_desc: Use image node_id 7 for calling the SentimentIntensityAnalyzer obj's underlying member method code with example usage: obj._but_check(words_and_emoticons, sentiments) and returns: sentiments