Older methods
words | f_animal | f_people | f_location |
---|---|---|---|
dog | 0.5 | 0.3 | -0.3 |
cat | 0.5 | 0.1 | -0.3 |
Bill | 0.1 | 0.9 | -0.4 |
turkey | 0.5 | -0.2 | -0.3 |
Turkey | -0.5 | 0.1 | 0.7 |
Singapore | -0.5 | 0.1 | 0.8 |
Infer a word’s meaning from the words around it
Refered to as CBOW (continuous bag of words)
Infer a word’s meaning by generating words around it
Refered to as the Skip-gram model
Source article (colah.github.io)
Samsung Electronics Co., suffering a handset sales slide, revealed a foldable-screen smartphone that folds like a book and opens up to tablet size. Ah, horror? I play Thee to her alone;
And when we have withdrom him, good all.
Come, go with no less through.
Enter Don Pedres. A flourish and my money. I will tarry. Well, you do!
LADY CAPULET.
Farewell; and you are
Understanding why stock markets respond strongly to CEOs and CFOs tweets:
Use USE to determine if there is new content
\[ \begin{array}{l c c} \hline \text{Variable} & \left|MMR_t\right| & t\text{-value} \\ \hline \text{Exec fin tweets}_{overnight} & -0.027^{***} & (-3.47) \\ \text{Similarity} \times \text{Exec fin tweets}_{overnight} & 0.059^{***} & (3.49) \\ \text{Firm tweet controls & interactions} & \text{Yes} \\ \text{Matching controls & interactions} & \text{Yes} \\ \text{Controls} & \text{Yes} & \\ \text{Firm FE} & \text{Yes} & \\ \text{Exec FE} & \text{Yes} & \\ \text{Year FE} & \text{Yes} & \\ \text{Month FE} & \text{Yes} & \\ \hline \end{array} \]
Result is consistent with Trust driving investor reaction to executive financial tweets.
What creative uses for the techniques discussed today do you expect to see become reality in accounting in the next 3-5 years?
Today, we:
seed_txt = 'Looks it not like the king? Verily, we must go! ' # Original code
seed_txt = 'SCENE I. Elsinore. A platform before the Castle.\n\n Enter Francisco and Barnardo, two sentinels.\n\nBARNARDO.\nWho’s there?\n\nFRANCISCO.\nNay, answer me. Stand and unfold yourself.\n\nBARNARDO.\nLong live the King!\n\n' # Hamlet
seed_txt = 'Samsung Electronics Co., suffering a handset sales slide, revealed a foldable-screen smartphone that folds like a book and opens up to tablet size.' # WSJ article
# From: https://www.wsj.com/articles/samsung-unveils-foldable-screen-smartphone-1541632221