text_model/data.py
def read_wembed(wembed_file):
    """
    Read word embedding from file.

    Args:
        wembed_file: file path of word embedding.

    Returns:
        Numpy array of word embeddings.
    """
    if wembed_file.find(".hdf5") != -1:
        return read_wembed_hdf5(wembed_file)
    else:
        return read_wembed_txt(wembed_file)

    Read word embedding from file.

    Args:
        wembed_file: file path of word embedding.

    Returns:
        Numpy array of word embeddings.
    
Read word embedding from file.
Read word embedding from file .
def read_wembed(wembed_file):
    if wembed_file.find(".hdf5") != -1:
        return read_wembed_hdf5(wembed_file)
    else:
        return read_wembed_txt(wembed_file)
def read_wembed ( wembed_file ) : if wembed_file . find ( ".hdf5" ) != - 1 : return read_wembed_hdf5 ( wembed_file ) else : return read_wembed_txt ( wembed_file )
Read word embedding from file.
Read word embedding from file .
"""
    Read word embedding from file.

    Args:
        wembed_file: file path of word embedding.

    Returns:
        Numpy array of word embeddings.
    """
Numpy array of word embeddings.
Numpy array of word embeddings .
wembed_file
file path of word embedding.
file path of word embedding .