The way I used to think of it was that fruits had seeds and Veggies don't. Of course after thinking about it for a while I realised that doesn't work so I usually just call the plant by its name.
According to biolology it is a fruit but since it is not as characteristically sweet as regular fruit and people general use it as a veggy within cooking I consider it a veggy.