Registry / ai-ml / nlup
library0.8pypypi✓ verified 83d ago

NLUP (Natural Language Understanding and Processing) is a Python library providing core utilities for natural language processing tasks, including tokenization, tagging, and feature extraction. Version 0.8 is the latest release, maintained by the CSLU NLP group at OHSU. Releases are infrequent, with no recent updates.

pip install nlup
INSTALL
IMPORT
SIG · NLUP
N
nlup
ai-mlpythonv0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nlup
import nlup
Tokenizer
from nlup.tokenizer import Tokenizer
from nlup import Tokenizer
Tokenizer is in a submodule; direct import may fail.
Tagger
from nlup.tagger import Tagger
from nlup import Tagger
Tagger is in a submodule; direct import may fail.
FeatureExtractor
from nlup.features import FeatureExtractor
from nlup import FeatureExtractor
FeatureExtractor is in a submodule.

Basic tokenization example using nlup.

import nlup text = "Hello world" tokens = nlup.tokenizer.tokenize(text) print(tokens)
Debug
Known issues
breakingAPI changes between versions: e.g., tokenizer function renamed from tokenize_text to tokenize in v0.8.
fix
Use tokenize instead of tokenize_text.
affects: <0.8
gotchaMany submodules must be imported explicitly; top-level module exposes limited functionality.
fix
Import submodules directly (e.g., from nlup.tokenizer import tokenize).
affects: all
deprecatedUse of Python 2 is no longer supported; some old examples may not work in Python 3.
fix
Ensure Python 3 environment.
affects: all
Errors
Common errors & fixes
ImportError: cannot import name 'Tokenizer'
Tokenizers are in a submodule, not top-level.
fix
Use: from nlup.tokenizer import Tokenizer
AttributeError: module 'nlup' has no attribute 'tokenize'
Tokenize function is in nlup.tokenizer submodule.
fix
Use: from nlup.tokenizer import tokenize
ModuleNotFoundError: No module named 'nlup'
nlup is not installed.
fix
Run: pip install nlup
Upgrade
Version history
0.8latest on PyPI · released Dec 27, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
nlup — pip install nlup · libregistry