You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.5 KiB

  1. Category_CSV = """
  2. text,label
  3. "Terrible customer service.","negative"
  4. "Really great transaction.","positive"
  5. "Great price.","positive"
  6. """
  7. Category_fastText = """
  8. __label__negative Terrible customer service.
  9. __label__positive Really great transaction.
  10. __label__positive Great price.
  11. """
  12. Category_JSON = """
  13. [
  14. {
  15. "text": "Terrible customer service.",
  16. "label": ["negative"]
  17. }
  18. ]
  19. """
  20. Category_JSONL = """
  21. {"text": "Terrible customer service.", "label": ["negative"]}
  22. {"text": "Really great transaction.", "label": ["positive"]}
  23. {"text": "Great price.", "label": ["positive"]}
  24. """
  25. Text_CSV = """
  26. text,label
  27. "Hello!","こんにちは!"
  28. "Good morning.","おはようございます。"
  29. "See you.","さようなら。"
  30. """
  31. Text_JSON = """
  32. [
  33. {
  34. "text": "Hello!",
  35. "label": ["こんにちは!"]
  36. }
  37. ]
  38. """
  39. Text_JSONL = """
  40. {"text": "Hello!", "label": ["こんにちは!"]}
  41. {"text": "Good morning.", "label": ["おはようございます。"]}
  42. {"text": "See you.", "label": ["さようなら。"]}
  43. """
  44. Offset_JSONL = """
  45. {"text": "EU rejects German call to boycott British lamb.", "label": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]}
  46. {"text": "Peter Blackburn", "label": [ [0, 15, "PERSON"] ]}
  47. {"text": "President Obama", "label": [ [10, 15, "PERSON"] ]}
  48. """
  49. CategoryImageClassification = """
  50. [
  51. {
  52. "filename": "20210514.png",
  53. "label": ["cat"]
  54. }
  55. ]
  56. """
  57. Speech2Text = """
  58. [
  59. {
  60. "filename": "20210514.mp3",
  61. "label": ["Lorem ipsum dolor sit amet"]
  62. }
  63. ]
  64. """