Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/universaldatatool/react-nlp-annotate
Interface for making NLP annotations.
https://github.com/universaldatatool/react-nlp-annotate
classification entity entity-relation-labeling hacktoberfest nlp nlp-library nlp-machine-learning text text-classification text-entities text-entity-analysis text-mining
Last synced: 1 day ago
JSON representation
Interface for making NLP annotations.
- Host: GitHub
- URL: https://github.com/universaldatatool/react-nlp-annotate
- Owner: UniversalDataTool
- Created: 2019-06-10T04:31:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T19:16:23.000Z (over 1 year ago)
- Last Synced: 2024-10-29T18:54:26.341Z (20 days ago)
- Topics: classification, entity, entity-relation-labeling, hacktoberfest, nlp, nlp-library, nlp-machine-learning, text, text-classification, text-entities, text-entity-analysis, text-mining
- Language: JavaScript
- Homepage:
- Size: 11.8 MB
- Stars: 46
- Watchers: 5
- Forks: 19
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React NLP Annotate
> If you just want to edit NLP data, it's easier to just use the [Universal Data Tool (MIT)](https://github.com/UniversalDataTool/universal-data-tool). This library is a module of the Universal Data Tool for use in custom react applications.Interface for doing various NLP tasks. [Here's a code playground](https://codesandbox.io/s/react-nlp-annotate-example-0jwms?file=/src/App.js). Please help this repository by adding documentation and issues!
- Audio transcription
- Text Labeling (Entity, Classification)
- Entity Relation Labeling![screenshot 1](https://user-images.githubusercontent.com/1910070/91113515-c5987b00-e653-11ea-92b8-08fa60cf7619.png)
![screenshot 2](https://user-images.githubusercontent.com/1910070/76181462-8d7da880-6197-11ea-908f-96d988a7efc8.png)
![screenshot 3](https://user-images.githubusercontent.com/1910070/76181412-560efc00-6197-11ea-8eba-1f48768f5183.png)
## Installation
`npm install react-nlp-annotate`
## Usage
### Document Classification
```javascript
import NLPAnnotator from "react-nlp-annotate"const MyComponent = () => (
{
console.log("Harry is a " + classification)
}}
/>
)
```### Entity Relation Labeling
```javascript
import React from "react";
import NLPAnnotator from "react-nlp-annotate";const labels = [
{
id: "gryffindor",
displayName: "Gryffindor",
description: "Daring, strong nerve and chivalry."
},
{
id: "slytherin",
displayName: "Slytherin",
description: "Cunning and ambitious. Possibly dark wizard."
}
];export default () => (
{
console.log("Output is...", output);
}}
// this is just for label-relationships
entityLabels={labels}
relationshipLabels={labels}
/>
);
```