Three authors have filed a class-action lawsuit against AI company Anthropic, accusing it of using pirated books to train its chatbot, Claude.