All Projects → owainlewis → Named Entity Finder

owainlewis / Named Entity Finder

Licence: epl-1.0
A small Clojure library for named entity extraction with a simple API

Programming Languages

clojure
4091 projects

named-entity

A Clojure library for named entity extraction.

IN PROGRESS


(clarity-extract "Call John Doe from London on Wednesday 6pm")

{:entities [
  {:token "date", :value "Wednesday"}
  {:token "location", :value "London"}],
 :action "Call John Doe from London on Wednesday 6pm",
 :when "2015-03-18T18:00:00.000Z"}

Usage

(ns my-ns
  (:require [named-entity.core :refer [extract-entities ?e]]))

;; Extract entities of a given type (person, location, date or time)

(extract-entities :person "I spoke to Jack Dorsey at the weekend")
;; [{:token "person", :value "Jack Dorsey"}]

;; Extract all entities (slower)

(extract-entities "Working with David in London Tomorrow afternoon at 6pm")

;; {:token "person", :value "David"}
;; {:token "date", :value "Tomorrow"}
;; {:token "time", :value "afternoon"}
;; {:token "location", :value "London"})

License

Copyright © 2014 Owain Lewis

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].