Skip to content

A React components collection for interactively highlighting parts of text for the IA² project.

License

Notifications You must be signed in to change notification settings

instituciones-abiertas/react-text-annotate

 
 

Repository files navigation

react-text-annotate

NPM

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'}]}
/>

About

A React components collection for interactively highlighting parts of text for the IA² project.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 92.3%
  • JavaScript 6.7%
  • HTML 1.0%