def create_vector_dictionary(vector_file, multiword=False):
    """ This function creates a dictionary with vector values from affixoids

        Args:
            vector_file (file): File with vector values from FastText
            multiword (bool): Set to True if the word in vector file has multiple parts

        Returns:
            Dictionary with vector values as list

        Example:
            >>> create_vector_dictionary('doctests/vectors.txt')
            {'Bilderbuchabsturz': [-0.25007, -0.16484, -0.34915, 0.44351, 0.17918, 0.17356, 0.32336, 0.19306, 0.40586, 0.58886, -0.55027, 0.15365, -0.28948, -0.096226, 0.91019, 0.24468, -0.20271, 0.5475, 0.36233, 0.20612, -0.17727, 0.054958, 0.16082, -0.1237, -0.057176, 0.18833, 0.11853, 0.19447, -0.13197, -0.18862, -0.17965, -0.13153, 0.27431, -0.68191, -0.35592, -0.13321, 0.16669, -0.42519, 0.11905, 0.15686, 0.26408, -0.35616, -0.26065, -0.0021858, 0.34352, -0.39887, 0.59549, -0.35665, -0.60043, -0.16136, -0.19603, -0.57132, 0.11918, -0.22356, 0.1499, -0.22458, -0.081269, 0.0058904, 0.16639, 0.36866, -0.3294, -0.21821, 0.87304, -0.042374, -0.42687, -0.41224, -0.73979, 0.37495, 0.34696, 0.6927, -0.24696, 0.23713, 0.0004817, -0.67652, 0.36679, 0.52095, -0.059838, 0.3779, -0.15106, -0.31892, -0.084559, -0.067978, 0.45779, 0.45037, -0.19661, -0.14229, 0.097991, 0.26219, 0.41556, 0.43363, 0.060991, 0.15759, 0.055367, -0.10719, -0.38255, -0.3, -0.032207, -0.50483, 0.18746, -0.6391]}

    """

    dictionary = {}

    with open(vector_file, 'r', encoding='utf-8') as f:
        for line in f:
            if multiword:
                word = line.rstrip().split('\t')
            else:
                word = line.strip().split()
            dict_key = word[0]
            dict_value = list(word[1:])
            dict_value_float = [float(x) for x in dict_value]
            dictionary.update({dict_key: dict_value_float})

    return dictionary