Machine Learning 16

3D Tensor(Typical Natural Language Processing)

Step 1. Devide the sentences into words. 2. Vectorize each words. 3. Set up the batch size. Let's say here is data. [[나는 사과를 좋아해], [나는 바나나를 좋아해], [나는 사과를 싫어해], [나는 바나나를 싫어해]] 1. Devide the sentences into words. [['나는', '사과를', '좋아해'], ['나는', '바나나를', '좋아해'], ['나는', '사과를', '싫어해'], ['나는', '바나나를', '싫어해']] 2. Vectorize each words. '나는' = [0.1, 0.2, 0.9] '사과를' = [0.3, 0.5, 0.1] '바나나를' = [0.3, 0.5, 0.2]..

Machine Learning 2022.08.02