Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordcloud returns an error when files exceed 15MB #760

Open
FabienBounoir opened this issue Feb 9, 2024 · 3 comments
Open

Wordcloud returns an error when files exceed 15MB #760

FabienBounoir opened this issue Feb 9, 2024 · 3 comments

Comments

@FabienBounoir
Copy link

Description

Wordcloud returns an error when files exceed 15MB.

Steps/Code to Reproduce

To reproduce the error, simply provide a text file larger than 15MB; the library will return a 'killed' error.

Expected Results

Ensure that the library does not terminate the program and that it accepts files larger than 15MB.

Actual Results

The librar terminate the program when files exced 15MB.

Versions

Linux-5.4.0-126-generic-x86_64-with-glibc2.29
Python 3.8.10 (default, Nov 14 2022, 12:59:47)
[GCC 9.4.0]
NumPy 1.24.1
matplotlib 3.6.3
wordcoud 1.8.2.2

@amueller
Copy link
Owner

Did you use the CLI? What arguments did you provide?

@FabienBounoir
Copy link
Author

Hello
I use this in my python script:

wc = WordCloud(
        max_words=10000,
        mask=logo_mask,
        max_font_size=20,
        random_state=42,
        relative_scaling=0,
    )

    # generate word cloud
    wc.generate(text)
    plt.imshow(wc)

    # create coloring from image
    image_colors = ImageColorGenerator(logo_color)
    wc.recolor(color_func=image_colors)
    plt.figure(figsize=(10, 10))
    plt.imshow(wc, interpolation="bilinear")
    plt.axis("off")
    wc.to_file("./../image/" + channel_name +
               "_" + dateFormated + ".png")

@FabienBounoir
Copy link
Author

FabienBounoir commented Apr 16, 2024

@amueller idea ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants