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.

82 lines
1.8 KiB

3 years ago
3 years ago
  1. Generic_TextFile = """
  2. 202104210943.txt
  3. 202104210944.txt
  4. 202104210945.txt
  5. """
  6. Generic_TextLine = """
  7. Terrible customer service.
  8. Really great transaction.
  9. Great price.
  10. """
  11. Category_CSV = """
  12. column_data,column_label
  13. "Terrible customer service.","negative"
  14. "Really great transaction.","positive"
  15. "Great price.","positive"
  16. """
  17. Category_fastText = """
  18. __label__negative Terrible customer service.
  19. __label__positive Really great transaction.
  20. __label__positive Great price.
  21. """
  22. Category_JSON = """
  23. [
  24. {
  25. "column_data": "Terrible customer service.",
  26. "column_label": ["negative"]
  27. }
  28. ]
  29. """
  30. Category_JSONL = """
  31. {"column_data": "Terrible customer service.", "column_label": ["negative"]}
  32. {"column_data": "Really great transaction.", "column_label": ["positive"]}
  33. {"column_data": "Great price.", "column_label": ["positive"]}
  34. """
  35. Text_CSV = """
  36. column_data,column_label
  37. "Hello!","こんにちは!"
  38. "Good morning.","おはようございます。"
  39. "See you.","さようなら。"
  40. """
  41. Text_JSON = """
  42. [
  43. {
  44. "text": "Hello!",
  45. "labels": ["こんにちは!"]
  46. }
  47. ]
  48. """
  49. Text_JSONL = """
  50. {"column_data": "Hello!", "column_label": ["こんにちは!"]}
  51. {"column_data": "Good morning.", "column_label": ["おはようございます。"]}
  52. {"column_data": "See you.", "column_label": ["さようなら。"]}
  53. """
  54. Offset_JSONL = """
  55. {"column_data": "EU rejects German call to boycott British lamb.", "column_label": [ [0, 2, "ORG"], [11, 17, "MISC"], ... ]}
  56. {"column_data": "Peter Blackburn", "column_label": [ [0, 15, "PERSON"] ]}
  57. {"column_data": "President Obama", "column_label": [ [10, 15, "PERSON"] ]}
  58. """
  59. Offset_CoNLL = """
  60. EU B-ORG
  61. rejects O
  62. German B-MISC
  63. call O
  64. to O
  65. boycott O
  66. British B-MISC
  67. lamb O
  68. . O
  69. Peter B-PER
  70. Blackburn I-PER
  71. """