Class WikipediaClient
java.lang.Object
org.episteme.social.linguistics.loaders.WikipediaClient
Modern client for interfacing with online linguistic resources like Wikipedia.
Useful for fetching large-scale corpora for analysis.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringfetchArticleText(String title) Fetches the plain text content of a Wikipedia article by title.
-
Method Details
-
fetchArticleText
Fetches the plain text content of a Wikipedia article by title.- Parameters:
title- The title of the article.- Returns:
- The plain text content or an empty string if not found.
- Throws:
IOException- If a network error occurs.
-