Skip to content

Commit

Permalink
Merge pull request #30 from KOSASIH/deepsource-transform-87bd26bd
Browse files Browse the repository at this point in the history
style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf
  • Loading branch information
KOSASIH committed May 11, 2024
2 parents b08a571 + 0d10754 commit 8b48f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions natural_language_processing/word_embedding.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import tensorflow as tf
from tensorflow.keras.layers import Embedding


def generate_word_embeddings(vocab_size, embedding_dim):
# Generate word embeddings using a pre-trained embedding layer
embeddings = Embedding(vocab_size, embedding_dim, input_length=1)
Expand Down

0 comments on commit 8b48f08

Please sign in to comment.