def most_common_words_without_stopwords(text, top=50):
    """
    Returns the frequency of the documents top n words in the text
    :type text: Text
    :param text: The text to be analysed
    :type text: Text
    :param top: int
    :type top: Top n n-grams to evaluate
    :returns Returns list of frequencies
    """
    top_max = min([text.document.words_without_stopwords_frequency.N(), top])
    doc_n_grams = text.document.words_without_stopwords_frequency.most_common(
        top_max)
    n_freq = text.words_without_stopwords_frequency
    feature_vector = []
    for n_gram, freq in doc_n_grams:
        feature_vector.append(0.0 if n_freq.N() == 0 else n_freq[n_gram] /
            n_freq.N())
    if len(feature_vector) != top:
        feature_vector += [0.0] * (top - len(feature_vector))
    return feature_vector
