react-text-annotate-ev
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

react-text-annotate

A React component for interactively highlighting parts of text.

Usage

React 16.8.0 or higher is required as a peer dependency of this package.

npm install --save react-text-annotate

Docs

Examples

A simple controlled annotation.

import {TokenAnnotator, TextAnnotator} from 'react-text-annotate'

<TokenAnnotator
  tokens={['My', 'text', 'needs', 'annotating', 'for', 'NLP', 'training']}
  value={[{start: 5, end: 6, tag: 'TOPIC', color: '#EEE'}]}
/>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.24latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.24
0.2.10

Package Sidebar

Install

npm i react-text-annotate-ev

Weekly Downloads

4

Version

0.2.2

License

none

Unpacked Size

39.3 kB

Total Files

31

Last publish

Collaborators

  • corupta