src/fast_text.py
def write_tweets_with_fasttext_labels(tweets):
    """
    DESCRIPTION: 
            writes tweets with fasttext labels to a file
    INPUT: 
            tweets: Dataframe of train tweets
    """
    f = open(FASTTEXT_TRAIN_FILE,'w')
    for t,s in zip(tweets['tweet'], tweets['sentiment']):
        f.write((t.rstrip()+ ' '+s+'\n'))
    f.close()

    DESCRIPTION: 
            writes tweets with fasttext labels to a file
    INPUT: 
            tweets: Dataframe of train tweets
    
writes tweets with fasttext labels to a file
INPUT:
tweets: Dataframe of train tweets
writes tweets with fasttext labels to a file INPUT : tweets : Dataframe of train tweets
def write_tweets_with_fasttext_labels(tweets):
    f = open(FASTTEXT_TRAIN_FILE,'w')
    for t,s in zip(tweets['tweet'], tweets['sentiment']):
        f.write((t.rstrip()+ ' '+s+'\n'))
    f.close()
def write_tweets_with_fasttext_labels ( tweets ) : f = open ( FASTTEXT_TRAIN_FILE , 'w' ) for t , s in zip ( tweets [ 'tweet' ] , tweets [ 'sentiment' ] ) : f . write ( ( t . rstrip ( ) + ' ' + s + '\n' ) ) f . close ( )
DESCRIPTION:
writes tweets with fasttext labels to a file
INPUT:
tweets: Dataframe of train tweets
DESCRIPTION : writes tweets with fasttext labels to a file INPUT : tweets : Dataframe of train tweets
"""
    DESCRIPTION: 
            writes tweets with fasttext labels to a file
    INPUT: 
            tweets: Dataframe of train tweets
    """
tweets