Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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

);
```