{"id":23226783,"url":"https://github.com/botsquad/sentence-annotator","last_synced_at":"2025-04-05T17:41:14.851Z","repository":{"id":44980991,"uuid":"231349001","full_name":"botsquad/sentence-annotator","owner":"botsquad","description":"Typescript React component to annotate (label) sentences","archived":false,"fork":false,"pushed_at":"2022-01-15T03:14:14.000Z","size":1632,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T06:13:49.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sentence-annotator-example.apps.botsqd.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botsquad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-02T09:27:36.000Z","updated_at":"2020-11-02T19:12:53.000Z","dependencies_parsed_at":"2022-09-22T15:03:07.827Z","dependency_job_id":null,"html_url":"https://github.com/botsquad/sentence-annotator","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsquad%2Fsentence-annotator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsquad%2Fsentence-annotator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsquad%2Fsentence-annotator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botsquad%2Fsentence-annotator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botsquad","download_url":"https://codeload.github.com/botsquad/sentence-annotator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378084,"owners_count":20929291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-19T00:19:27.545Z","updated_at":"2025-04-05T17:41:14.824Z","avatar_url":"https://github.com/botsquad.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentence Annotator component\n\n[![Build Status](https://travis-ci.com/botsquad/sentence-annotator.svg?branch=master)](https://travis-ci.com/botsquad/sentence-annotator)\n[![npm (scoped)](https://img.shields.io/npm/v/@botsquad/sentence-annotator)](https://www.npmjs.com/package/@botsquad/sentence-annotator)\n\nThis is a React component for creating a text input box which understands Dialogflow's _user\nutterance_ JSON format, and allows one to use an interface similar to Dialogflow's utterance editor\nas a React component.\n\n## Example code\n\n```javascript\nimport React, { useState } from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport { SentenceAnnotator } from '@botsquad/sentence-annotator';\n\nconst initial = {\n  data: [\n    {\n      text: 'whatever you do, please please do remember that my ',\n    },\n    {\n      text: 'nickname',\n      name: 'type',\n      entity: '@name-type',\n    },\n    {\n      text: ' is ',\n    },\n    {\n      text: 'pete',\n      name: 'nick-name',\n      entity: '@nick-name',\n    }\n  ],\n};\n\nconst Example = () =\u003e {\n  const [sentence, setSentence] = useState\u003cSentence\u003e(initial)\n\n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003eSentenceEditor component\u003c/h1\u003e\n      \u003cSentenceAnnotator value={sentence} onChange={setSentence} autoFocus /\u003e\n    \u003c/div\u003e\n  )\n}\n\nReactDOM.render(\u003cExample /\u003e,  document.getElementById(\"root\"))\n);\n```\n\nThere is also a `StringSentenceAnnotator` component which works similarly, but converts the result\nto a string; which contains the annotations in markdown syntax.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsquad%2Fsentence-annotator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotsquad%2Fsentence-annotator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotsquad%2Fsentence-annotator/lists"}