def get_semantic_descriptor(keyword, sentence):
    """ (str, list) -> dict
    
    The function takes as input a string representing a single word
    and a list representing all the words in a sentence.
    It returns a dictionary representing the semantic descriptor vector
    of the word computed from the sentence.
    
    >>> s1 = ['hello', 'to', 'anyone', 'reading', 'this', 'short', 'example']
    >>> desc1 = get_semantic_descriptor('reading', s1)
    >>> desc1['hello']
    1
    >>> len(desc1)
    6
    >>> 'everyone' in desc1
    False
    
    >>> s2 = ['no', 'animal', 'must', 'ever', 'kill', 'any', 'other', 'animal']
    >>> desc2 = get_semantic_descriptor('animal', s2)
    >>> desc2 == {'no': 1, 'must': 1, 'ever': 1, 'kill': 1, 'any': 1, 'other': 1}
    True
    >>> get_semantic_descriptor('animal', s1)
    {}
    
    >>> s3 = ['jingle', 'bells', 'jingle', 'bells', 'jingle', 'all', 'the', 'way']
    >>> desc3 = get_semantic_descriptor('way', s3)
    >>> len(desc3) == 4
    True
    >>> desc3 == {'jingle' : 3, 'bells' : 2, 'all' : 1, 'the' : 1}
    True
    >>> 'bell' in desc3
    False
    """
    # initialize an empty dictionary
    semantic_descriptor = {}
    
    # in case the keyword is not part of the sentence
    if keyword not in sentence:
        return semantic_descriptor
    
    # in case the keyword is part of the sentence
    else:
        # count the occurence of each word in sentence
        for word in sentence:
            if word == keyword:
                continue
            elif word in semantic_descriptor:
                semantic_descriptor[word] += 1
            else:
                semantic_descriptor[word] = 1 
    
    # return the word's semantic descriptor vector
    return semantic_descriptor