I am attempting to use the Cadmium Shard : GitHub - cadmiumcr/cadmium: Natural Language Processing (NLP) library for Crystal
I have created a shard.yml file
name: tst version: 0.1.0 authors: - serge <email@example.com> targets: tst: main: src/tst.cr crystal: 1.2.2 license: MIT dependencies: cadmium: github: cadmiumcr/cadmium branch: master
and here it the snippet of code (from the Cadmium doc) I’m trying to compile:
require "cadmium" tokenizer = Cadmium.word_punctuation_tokenizer.new tokenizer.tokenize("my dog hasn't any fleas.")
Yet, I get the error message:
In src/tst.cr:1:1 1 | require "cadmium" ^ Error: can't find file 'cadmium'
NB: When running shards install, Cadmium seemed to install…