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 |
Older methods
Best-in-class
Note: Google appears to be sunsetting this, but many older algorithms are based on it. They are shifting toward PyTorch and JAX
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 |
Relations are retained as vectors between points (distance + direction)
{rword2vec}
packageInfer 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
Demo: rmc.link/colab_w2v
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
Look for the comment
# Add your own messages here
. You can add custom messages to customize the figure and learn what USE understands
Understanding how markets react to sentiment-language laden discussion in annual reports
Result: Yes – positive discussion is not always positive, and negative discussion is not always negative
A GPT model is a type of Large Language Model (LLM)
What does GPT mean? Generative Pre-trained Transformers
What can they do
What can they not do
Context length – the amount of text it can handle at once
To build it, go to: rmc.link/colab_gpt2
How to interpret the network
The arrows show transition from a set of 3 characters (0 or 1) to the next. In this process, the left-most character is dropped, the remaining two characters shift left, and a new character is added to the right side.
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