Skip to main content

Wrapper library for text cleansing, preprocessing in NLP

Project description

Maleo

Wrapper library for text cleansing, preprocessing in NLP

Overview of features

- Scanner : get insight about your text dataset (ex: number of chars, words, emojis, etc)
- Remove hyperlink, punctuation, stopword, emoticon, etc
- Extract hashtags, price from text
- Convert email, phone number, date to <TAG>
- Convert Indonesian slang to formal word
- Convert emoji to word or <TAG>
- Convert word to number
- Predict Part-of-Speech (POS) tags

Installation

pip install maleo

Getting Started

from maleo.wizard import Wizard

wiz = Wizard()

wiz.scanner(df, 'text')
wiz.emoji_to_word(df.text)
wiz.slang_to_formal(df.text)

wiz.load_pos()
wiz.predict_pos('saya mau pergi beli makan siang dulu', output_pair=False)

Instance Attribute

['scanner',
 'rm_multiple_space',
 'rm_link',
 'rm_punc',
 'rm_char',
 'rm_html',
 'rm_non_ascii',
 'rm_stopword',
 'rm_emoticon',
 'word_to_number',
 'get_hashtag',
 'get_price',
 'email_to_tag',
 'date_to_tag',
 'phone_num_to_tag',
 'slang_to_formal',
 'emoji_to_word',
 'emoji_to_tag',
 'custom_regex',
 'predict_pos']

Universal POS tags

https://universaldependencies.org/u/pos/index.html

Contributor:

  • Ruben Stefanus

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maleo-0.0.6.2.tar.gz (73.5 kB view details)

Uploaded Source

File details

Details for the file maleo-0.0.6.2.tar.gz.

File metadata

  • Download URL: maleo-0.0.6.2.tar.gz
  • Upload date:
  • Size: 73.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for maleo-0.0.6.2.tar.gz
Algorithm Hash digest
SHA256 b5464a5d7ed74c6bd0afcea28b60100aacf205d1a10a00b686a5421728f0ef2f
MD5 5a1596b8eae82eee47e0e55867ac8ab0
BLAKE2b-256 ba6b529c76da39e972ffc4128518532729456e1b1c4f4af97ea3299da1eee59b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page