texthero/representation.py
def nmf(s, n_components=2):
    """
    Perform non-negative matrix factorization.
    """
    nmf = NMF(n_components=n_components, init='random', random_state=0)
    return pd.Series(nmf.fit_transform(list(s)).tolist(), index=s.index)

    Perform non-negative matrix factorization.
    
Perform non-negative matrix factorization.
Perform non - negative matrix factorization .
def nmf(s, n_components=2):
    nmf = NMF(n_components=n_components, init='random', random_state=0)
    return pd.Series(nmf.fit_transform(list(s)).tolist(), index=s.index)
def nmf ( s , n_components = 2 ) : nmf = NMF ( n_components = n_components , init = 'random' , random_state = 0 ) return pd . Series ( nmf . fit_transform ( list ( s ) ) . tolist ( ) , index = s . index )
Perform non-negative matrix factorization.
Perform non - negative matrix factorization .
"""
    Perform non-negative matrix factorization.
    """
s
n_components