Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mcamac/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

React components for interactively highlighting parts of text.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

AltStyle によって変換されたページ (->オリジナル) /