albcunha / slate-entity-labeler

React component which wraps Slate.js editor with plugins to label entities in text

Home Page:https://mattmazzola.github.io/slate-entity-labeler/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slate Entity Labeler

What is it?

React component to help labeling entities within a given string of text. Built on: https://www.slatejs.org

Getting Started

Install

npm i slate-entity-labeler

Import

import { SlateEntityLabeler } from 'slate-entity-labeler'

Declare

<SateEntityLabeler
  text={this.state.text}
  entities={this.state.entities}
  labeledEntities={this.state.labeledEntities}
  onChange={this.onChangeLabeledEntities}
/>

Demo

https://mattmazzola.github.io/slate-entity-labeler/

Source

https://github.com/mattmazzola/slate-entity-labeler

About

React component which wraps Slate.js editor with plugins to label entities in text

https://mattmazzola.github.io/slate-entity-labeler/


Languages

Language:TypeScript 84.4%Language:CSS 12.4%Language:HTML 3.1%