text-paragraphs.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. const config = `
  2. <View>
  3. <ParagraphLabels name="ner" toName="text">
  4. <Label value="Important Stuff"></Label>
  5. <Label value="Random talk"></Label>
  6. </ParagraphLabels>
  7. <Paragraphs audioUrl="$audio" name="text" value="$dialogue" layout="dialogue" savetextresult="no" />
  8. </View>
  9. `;
  10. const data = {
  11. audio: "/public/files/barradeen-emotional.mp3",
  12. dialogue: [
  13. {
  14. start: 3.1,
  15. end: 5.6,
  16. author: "Mia Wallace",
  17. text: "Dont you hate that?",
  18. },
  19. {
  20. start: 4.2,
  21. duration: 3.1,
  22. author: "Vincent Vega:",
  23. text: "Hate what?",
  24. },
  25. {
  26. author: "Mia Wallace:",
  27. text: "Uncomfortable silences. Why do we feel its necessary to yak about nonsense in order to be comfortable?",
  28. },
  29. {
  30. start: 90,
  31. author: "Vincent Vega:",
  32. text: "I dont know. Thats a good question.",
  33. },
  34. {
  35. author: "Mia Wallace:",
  36. text: "Thats when you know you found somebody really special. When you can just shut the door closed a minute, and comfortably share silence.",
  37. },
  38. ],
  39. };
  40. const result = [
  41. {
  42. id: "ryzr4QdL93",
  43. from_name: "ner",
  44. to_name: "text",
  45. type: "paragraphlabels",
  46. origin: "manual",
  47. value: {
  48. start: "2",
  49. end: "4",
  50. startOffset: 0,
  51. endOffset: 134,
  52. paragraphlabels: ["Important Stuff"],
  53. },
  54. },
  55. ];
  56. const title = "Paragraphs";
  57. module.exports = { config, data, result, title };