Git Product home page Git Product logo

clean-discord's People

Contributors

codemicro avatar jef1056 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

malamasn

clean-discord's Issues

Train is empty?

Thanks for your great work. It's really very educational for me.

I have a problem with the split.py script though.

I did use DiscordChatExporter and retrieved about ~400k messages.
Then I used clean.py, here is the output :

(regex): Writing data to clean
Regex cleaning...: 100%|| 3/3 [00:18<00:00,  6.01s/it]
(detox): Writing data to clean-detox
Detoxifying...: 100%|| 3/3 [00:17<00:00,  5.69s/it]
DONE

{"messages_total": 415473, "conversations_total": 23072, "removed_total": 87036, "num_files": 3, "num_channels": 1 [...]

Then I used the split.py on my "cleaned" folder but I got an empty train file :

Train size: 0 files	Val size: 3 files
Files will be compressed.
Writing train...: 0it [00:00, ?it/s]
Writing val...: 100%|| 3/3 [00:02<00:00,  1.35it/s]
Merging files...: 100%|| 3/3 [00:04<00:00,  1.40s/it]

What am I missing ?

AttributeError: 'list' object has no attribute 'strip'

changing line 74 of workers.py from
if msg!=[]: temp["conversations"].append(msg.strip().replace("\t", " ")); msg=[]
to
if msg!=[]: temp["conversations"].append(str(msg).strip().replace("\t", " ")); msg=[]
fixed this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.