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
Rémy Marronnier
@rmarronnier
or we're stuck wwith purple
Chris Watson
@watzon
Not currently. There's no customization available. There is a way to export the docs as json though, which can then be used by another generator
There just aren't any other generators yet
Rémy Marronnier
@rmarronnier
Ok
Chris Watson
@watzon
I would really like one though
Really we just need a command line utility that allows you to define a template and transforms that json into docs based on the template
Rémy Marronnier
@rmarronnier
Can't it just output common markdown. W could plug it into a jekyll theme
?
Chris Watson
@watzon
If only lol
We'd need to make a converter
Rémy Marronnier
@rmarronnier
We'll see that later :-) I really want to finish the POS tagger before october and clean up / comment my code, do some refactoring / grunt work so we have something solid
Chris Watson
@watzon
Sounds great. I'll probably work on the docs angle here in a bit
Lots of meta stuff to do. Docs, benchmarks, finish up the website
Rémy Marronnier
@rmarronnier
Yeah so much work but so much fun :-)
Yvоnnе Мillеr
@frojnd_twitter
Hello
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 !