'This function will interface the `GenericCoreNLPParser.api_call` to
retreive the JSON output and return the annotations required.'

def raw_tag_sents(self, sentences):

    default_properties = {'ssplit.isOneSentence': 'true', 'annotators': 'tokenize,ssplit,'}
    assert (self.tagtype in ['pos', 'ner'])
    default_properties['annotators'] += self.tagtype
    for sentence in sentences:
        tagged_data = self.api_call(sentence, properties=default_properties)
        assert (len(tagged_data['sentences']) == 1)
        (yield [(token['word'], token[self.tagtype]) for token in tagged_data['sentences'][0]['tokens']])
