Train to be an elf? You mean put on fake ears, tights, and go around acting all pretentious?
But yeah, the only ways are:
*be a race that has it
* take the weapon master feat (that's the purpose of that feat to begin with)
* ask your DM and if they're OK with it, you're good.
* multiclass into a class that has it.