ner-url.js 747 B

12345678910111213141516171819202122232425262728293031323334
  1. const config = `
  2. <View>
  3. <Labels name="ner" toName="text">
  4. <Label value="Person"></Label>
  5. <Label value="Words"></Label>
  6. </Labels>
  7. <Text name="text" valueType="url" value="$url" />
  8. </View>
  9. `;
  10. const data = { url: "https://htx-pub.s3.amazonaws.com/example.txt" };
  11. const result = [
  12. {
  13. id: "Hnyt9sO_RX",
  14. from_name: "ner",
  15. to_name: "text",
  16. type: "labels",
  17. origin: "manual",
  18. value: { start: 0, end: 17, labels: ["Person"] },
  19. },
  20. {
  21. id: "tQHRBpvGo0",
  22. from_name: "ner",
  23. to_name: "text",
  24. type: "labels",
  25. origin: "manual",
  26. value: { start: 453, end: 474, labels: ["Words"] },
  27. },
  28. ];
  29. const title = "NER in text loaded by url";
  30. module.exports = { config, data, result, title };