Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 21 16:20
    serge-hulne closed #36
  • Nov 21 15:34
    serge-hulne edited #36
  • Nov 21 15:29
    serge-hulne opened #36
  • Mar 29 2020 08:41

    watzon on master

    Update FUNDING.yml (compare)

  • Jan 29 2020 04:24
    watzon closed #35
  • Jan 29 2020 04:24
    watzon commented #35
  • Jan 21 2020 22:37
    Calamari commented #35
  • Jan 21 2020 20:09
    watzon commented #35
  • Jan 21 2020 18:28
    Calamari edited #35
  • Jan 21 2020 18:27
    Calamari opened #35
  • Nov 11 2019 19:58
    watzon commented #30
  • Nov 11 2019 19:20
    rmarronnier commented #30
  • Nov 07 2019 23:07
    watzon unlabeled #34
  • Nov 07 2019 23:07
    watzon unlabeled #33
  • Nov 07 2019 23:07
    watzon labeled #33
  • Nov 07 2019 23:07
    watzon unlabeled #33
  • Nov 07 2019 23:06
    watzon labeled #34
  • Nov 07 2019 23:06
    watzon labeled #34
  • Nov 07 2019 23:06
    watzon labeled #33
  • Nov 07 2019 23:06
    watzon labeled #33
Chris Watson
@watzon
Hey there
Rémy Marronnier
@rmarronnier
Hi !
Chris Watson
@watzon
So yes, you will need to import it with require "cadmium_classifier"
I'll work on updating the README
Yvоnnе Мillеr
@frojnd_twitter
Yeah I did that.
But I get: Error: undefined constant Cadmium::BayesClassifier when adding: classifier = Cadmium::BayesClassifier.new
Chris Watson
@watzon
Ahh it's already been updated
Cadmium::Classifier::Bayes
That's what you need
Rémy Marronnier
@rmarronnier
Oh the method generator wasn't updated, my bad
Chris Watson
@watzon
No worries, I want to do away with those anyway
Rémy Marronnier
@rmarronnier
ok :-)
Chris Watson
@watzon
I'm gonna update the readme
Yvоnnе Мillеr
@frojnd_twitter
So how can I train it? classifier.train("crystal is an awesome programming language", "programming") train - undefined method
Chris Watson
@watzon
Try running this
classifier = Cadmium::Classifier::Bayes.new

classifier.train("crystal is an awesome programming language", "programming")
classifier.train("ruby is nice, but not as fast as crystal", "programming")

classifier.train("my wife and I went to the beach", "off-topic")
classifier.train("my dog likes to go outside and play", "off-topic")

classifier.classify("Crystal is my favorite!")
Chris Watson
@watzon
Whoops, the #categorize method got updated recently too
Yvоnnе Мillеr
@frojnd_twitter
To classify I see
Chris Watson
@watzon
It's #classify now
Yvоnnе Мillеr
@frojnd_twitter
Yeah also comments in source should be updated :) Maybe I can do a pull request now
Chris Watson
@watzon
That would be much appreciated
Yvоnnе Мillеr
@frojnd_twitter
Gladly. I have spare time and you guys rock with crystal and shards :)
Chris Watson
@watzon
We updated a lot recently while refactoring things into their own repos. Until a few weeks ago cadmium was one shard.
Now it's split into several
Yvоnnе Мillеr
@frojnd_twitter
Yvоnnе Мillеr
@frojnd_twitter
@watzon where should I put my training data in lucky framework :)
Yvоnnе Мillеr
@frojnd_twitter
My logs contain following structure: 09-20 15:26:00.063 1335 1335 D com.test.keymapping.KeyEventAggregatorMain: {"Info" : "onKeyDown: 22"}
So I have date, then I have PID, then I have "D" which indicates debug after it I have "package name" followed by info I'm interested currently in: "onKeyDown 22" which means volume-down
So a lot of noise but at the same time I am interested about time when volume-down was initiated
Yvоnnе Мillеr
@frojnd_twitter
So in my case when I change volume only timestamp is different
Chris Watson
@watzon
@frojnd_twitter idk it depends on how you're structuring things
Rémy Marronnier
@rmarronnier
@watzon Hey, how's everything ?
I've pushed the pos_tagger, but I'm still working on it. I'm planning next week on working on different cadmium parts to make the whole more integrated.
Have you decided what you'd like to do with the main cadmium repo ? (I'm voting for it to be the mother of all cadmium shards)
I'll have a Crystal talk this month (October) at my local ruby group... so I'd be more than happy to show Cadmium in an up-to-date state.
I can help you with the website, if you don't have time :-)
Chris Watson
@watzon
That's awesome that you're giving a talk, I am too actually! I haven't had a ton of time recently, but hopefully I'll have some time to work on things this week. My talk is going to be on Cadmium specifically, so I may need to do some work in preparation for it.
Not sure what to do with the main repo, but I'm leaning towards a super repo type thing
Rémy Marronnier
@rmarronnier
That's great !
Lairan
@alex-lairan
Maybe you can add hacktoberfest tags for issues :)
Chris Watson
@watzon
Not a bad idea
Rémy Marronnier
@rmarronnier
@watzon : How was your Cadmium talk ? I'm giving my Crystal talk next wednesday.
It'd be great if the cadmiumcr/cadmium repo was up to date, so one could just add it as a shard and all (except languages maybe) cadmiumcr shards would be fetched and installed in /lib.
I can take care of the grunt work (update the readme.md file and see if I can generate full docs to have a docs website).
I'll fix whatever issues that might come up as a result (I have some free time lately).
WDYT ?
Chris Watson
@watzon
Sounds great to me. I wish I had more time to work on it right now, but work has been keeping me busy. Just PR the fuck out of it and I'll merge them as quickly as I can.
Rémy Marronnier
@rmarronnier
Perfect ! Let's roll !