Skip to main content

No project description provided

Project description

A text processing python package

How to install

pip install lyser

A class to perform text analysis on a given corpus.

    Attributes:
        corpus (str): The corpus to analyze.
        
    Methods:
        pipeline(): A function to perform text analysis on a given corpus.
        Returns a list of tokens.
        e.g. ['the', 'cat', 'sat', 'on', 'the', 'mat']
        
        pos_tagging(): A function to perform POS tagging on a given corpus.
        Returns a list of tuples containing the word and its POS tag.
        e.g. [('the', 'DT'), ('cat', 'NN'), ('sat', 'VB'), ('on', 'IN'), ('the', 'DT'), ('mat', 'NN')]
        
        visualize_word_cloud(): A function to visualize the word cloud of a given corpus.
        
    Example:
        analyzer = TextAnalyzer(corpus=sample_text)
        analyzer.pipeline()
        analyzer.pos_tagging()
        analyzer.visualize_word_cloud()

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

lyser-1.2.tar.gz (2.4 kB view hashes)

Uploaded Source

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