dev-python/nltk - 3.10.1 (slonko)

Search

Install

Install this version:

emerge -a =dev-python/nltk-3.10.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/nltk-3.10.1

Or alternatively:

emerge --autounmask-write -a =dev-python/nltk-3.10.1

Package Information

Description:
Natural Language Toolkit
Homepage:
https://www.nltk.org/ https://github.com/nltk/nltk/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
3.10.1 8 ~amd64 ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
PYTHON_REQ_USE="sqlite,tk?,xml(+)"

inherit distutils-r1 pypi

DESCRIPTION="Natural Language Toolkit"
HOMEPAGE="https://www.nltk.org/ https://github.com/nltk/nltk/"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
IUSE="tk"
REQUIRED_USE="test? ( tk )"

RDEPEND="
	dev-python/click[${PYTHON_USEDEP}]
	dev-python/defusedxml[${PYTHON_USEDEP}]
	dev-python/joblib[${PYTHON_USEDEP}]
	dev-python/regex[${PYTHON_USEDEP}]
	dev-python/tqdm[${PYTHON_USEDEP}]"
BDEPEND="
	test? (
		dev-python/matplotlib[${PYTHON_USEDEP}]
		>=dev-python/nltk-data-20260801
		dev-python/numpy[${PYTHON_USEDEP}]
		dev-python/pyparsing[${PYTHON_USEDEP}]
		dev-python/scikit-learn[${PYTHON_USEDEP}]
		dev-python/scipy[${PYTHON_USEDEP}]
		dev-python/twython[${PYTHON_USEDEP}]
	)
"
PDEPEND=">=dev-python/nltk-data-20260801"

EPYTEST_PLUGINS=( pytest-mock )
EPYTEST_IGNORE=(
	# Network required
	nltk/test/unit/test_downloader.py
)

distutils_enable_tests pytest

USE Flags

Manage flags for this package: euse -i <flag> -p dev-python/nltk | euse -E <flag> -p dev-python/nltk | euse -D <flag> -p dev-python/nltk

Global/Standard Flags

tk

Inherited Eclasses

Dependencies

RDEPEND

	dev-python/click[]
	dev-python/defusedxml[]
	dev-python/joblib[]
	dev-python/regex[]
	dev-python/tqdm[]

BDEPEND

	test? (
		dev-python/matplotlib[]
		>=dev-python/nltk-data-20260801
		dev-python/numpy[]
		dev-python/pyparsing[]
		dev-python/scikit-learn[]
		dev-python/scipy[]
		dev-python/twython[]
	)