core icon indicating copy to clipboard operation
core copied to clipboard

dependency-graph breaks on some sentences

Open WorldsEndless opened this issue 7 years ago • 2 comments

(-> "Bills on ports and immigration were submitted by Senator Brownback, Republican of Kansas" nlp/dependency-graph);; => IllegalArgumentException No implementation of method: :src of protocol: #'loom.graph/Edge found for class: java.lang.Long clojure.core/-cache-protocol-fn (core_deftype.clj:583)

WorldsEndless avatar Feb 07 '18 19:02 WorldsEndless

also (nlp/dependency-graph "The men were arrested yesterday afternoon following a search at a house in Bornacurra, Ballygar, Co Galway, during which Garda discovered a quantity of cannabis plants and cannabis growing paraphernalia with an estimated street value of 200,000") ;; => IllegalArgumentException No implementation of method: :src of protocol: #'loom.graph/Edge found for class: java.lang.Long clojure.core/-cache-protocol-fn (core_deftype.clj:583)

WorldsEndless avatar Feb 07 '18 20:02 WorldsEndless

It fails on punctuation. If you remove all "," from the text, it will work, but result will be wrong of course :) Seems there is no maintainers. It is sad...

galatyn avatar Mar 21 '19 08:03 galatyn