handson-ml3
handson-ml3 copied to clipboard
add get_vocabulary() to see the learned vocabulary
Added a cell in "Chapter13/Text Processing".
This would explain the output of text_vec_layer(["Be good!", "Question: be or be?"])
. I suggest adding it to the PDF version as well.
>>> text_vec_layer.get_vocabulary()
['', '[UNK]', 'be', 'to', 'the', 'thats', 'question']
The issue with previous the PR was with line endings for images on Windows, which was messing up diffs.