Topological phases in the TaSe3 compound