Was it built to have an AI, or did some technological mishap cause it to gain sentience? IIRC, it just "had" a personality. How it got there was never addressed (I haven't seen this movie since I was like, 9)
Therefore I think it's more of a fantasy. Fantasy doesn't have to mean it's elves and wizards and dragons.