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
Exactly. Just a "one time import" type of thing.
But idk if I like that idea
Rémy Marronnier
@rmarronnier
We need to have one big repo to generate api docs for the website, and I don't see how we can do that with separate shards
Chris Watson
@watzon
True, but at the same time the documentation generator isn't capable of generating docs for dependencies yet
I'm actually thinking of setting up a workflow to generate all the docs
Rémy Marronnier
@rmarronnier
that what I feared
that'd be awesome
Chris Watson
@watzon
All we need is a docker container that clones everything, cds into each folder, runs crystal docs, clones the website, and moves all of the generated docs into a subfolder
Then pushes the updated site
Rémy Marronnier
@rmarronnier
hmm maybe move all the folders into a unique cadmium one, else we'll have conflicting index files
Chris Watson
@watzon
Yeah I'm thinking for now they'll all be in individual folders
Eventually I want to be able to group them all together though
Rémy Marronnier
@rmarronnier
ok I see
Chris Watson
@watzon
The documentation generator has a long way to go
Rémy Marronnier
@rmarronnier
Can't we change the color to green ?
:-)
Chris Watson
@watzon
For? The website or the docs?
Rémy Marronnier
@rmarronnier
the docs
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