What are the segment embeddings and position embeddings in BERT?
These embeddings are nothing more than token embeddings.

You just randomly initialize them, then use gradient descent to train them, just like what you do with token embeddings.