Files
MoFin/venv/lib/python3.12/site-packages/nltk/test/japanese.doctest
T
知微 fa45d8aa5f fix: 小果地址统一node122(兼容LAN+EasyTier)
- health_checklist.json: 192.168.1.122→node122
- ocr_client.py: docstring IP→node122
- docs/market-data-requirements.md: IP→node122
- 所有API调用通过ProxyHandler({})绕过系统代理
  Privoxy对node122:18003返回500,直连正常
2026-06-30 02:56:35 +08:00

49 lines
1.0 KiB
Plaintext

.. Copyright (C) 2001-2026 NLTK Project
.. For license information, see LICENSE.TXT
============================
Japanese Language Processing
============================
>>> from nltk import *
-------------
Corpus Access
-------------
KNB Corpus
----------
>>> from nltk.corpus import knbc
Access the words: this should produce a list of strings:
>>> type(knbc.words()[0]) is not bytes
True
Access the sentences: this should produce a list of lists of strings:
>>> type(knbc.sents()[0][0]) is not bytes
True
Access the tagged words: this should produce a list of word, tag pairs:
>>> type(knbc.tagged_words()[0])
<... 'tuple'>
Access the tagged sentences: this should produce a list of lists of word, tag pairs:
>>> type(knbc.tagged_sents()[0][0])
<... 'tuple'>
JEITA Corpus
------------
>>> from nltk.corpus import jeita
Access the tagged words: this should produce a list of word, tag pairs, where a tag is a string:
>>> type(jeita.tagged_words()[0][1]) is not bytes
True