Articles from a URL

Fetch a public news page, keep only the article text, then tag it.

Python
from neam import Neam
from neam.articles import extract_article_text

text, status = extract_article_text("https://example.com/news/some-article")
print(status)          # Loaded 1,582 characters from the article.

result = Neam.from_pretrained("MoriartyPuth/neam").predict(text)

extract_article_text(url, max_chars=20000) returns the article text and a short status message. The web app's Import an online article box uses the same function.

What it keeps

Safety checks

Respect the publisher. News articles belong to their publishers. Tag them for your own analysis, but don't republish their text; Neam's own datasets store only positions, never article text.