An anthology film is a collection of shorter films that are intended to be screened together and are usually connected by a common theme. They may be the work of one director, as in 怪談 [El Más Allá] (1964), or the work of several - New York Stories (1989).
A film is not an anthology film simply by virtue of having several storylines. Movies like Crash [Alto impacto] (2004) and Magnolia (1999) are not anthology films, because they lack clearly defined segments and the individual narratives overlap.