https://github.com/superthinking/basicstringprocessingprogram
https://github.com/superthinking/basicstringprocessingprogram
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/superthinking/basicstringprocessingprogram
- Owner: SuperThinking
- Created: 2018-03-27T06:45:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T06:49:43.000Z (over 8 years ago)
- Last Synced: 2025-01-03T12:44:03.051Z (over 1 year ago)
- Language: C++
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BasicStringProcessingProgram
dictionary encoding:
"hello world hello everyone"
would map to
[0 1 0 2]
where 0 = "hello", 1 = "world", and 2 = "everyone" if we were encoding words.
one-hot dictionary encoding:
"hello world hello everyone"
would map to
[[1 0 1 0]
[0 1 0 0]
[0 0 0 1]]