renvins

Untitled

Jul 21st, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "C:\Users\vince\miniconda3\Lib\site-packages\pyparsing\core.py", line 5690, in parseImpl
  3. prev_loc, prev_result = memo[loc, self, do_actions]
  4. ~~~~^^^^^^^^^^^^^^^^^^^^^^^
  5. KeyError: (34, Forward: {{{{{{Suppress:([" | ']) W:(A-Z_a-z, '0-9A-Z_a-z) Suppress:([" | '])} | W:(A-Z_a-z, '0-9A-Z_a-z)} | '*top*' | '*bottom*'} | {Suppress:('(') <= | >= | = {{Suppress:([" | ']) W:(A-Z_a-z, '0-9A-Z_a-z) Suppress:([" | '])} | W:(A-Z_a-z, '0-9A-Z_a-z)} {{{Suppress:([" | ']) W:(A-Z_a-z, '0-9A-Z_a-z) Suppress:([" | '])} | W:(A-Z_a-z, '0-9A-Z_a-z)} | Forward: None | Forward: {{{{Suppress:([" | ']) W:(A-Z_a-z, '0-9A-Z_a-z) Suppress:([" | '])} | W:(A-Z_a-z, '0-9A-Z_a-z)} | {Suppress:('(') {{Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]}) Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]}) Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]})} | Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]}) [, Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]})]...} Suppress:(')')} | Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]})} | {Suppress:('(') f\+ | f\* {Forward: {{{{{Suppress:([" | ']) W:(A-Z_a-z, '0-9A-Z_a-z) Suppress:([" | '])} | W:(A-Z_a-z, '0-9A-Z_a-z)} | {Suppress:('(') {{Combine:({[\+ | \-] W:(0-9) ['.' W:(0-9)]}) Combine:({[\+ | \-] W:(, True)
  6.  
  7. During handling of the above exception, another exception occurred:
  8.  
  9. Traceback (most recent call last):
  10. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\parser\dl_parser.py", line 2287, in get_kb
  11. _ = DLParser.parse_string_opt(args[0])
  12. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  13. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\util\utils.py", line 65, in wrapper
  14. result = func(*args, **kwargs)
  15. ^^^^^^^^^^^^^^^^^^^^^
  16. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\parser\dl_parser.py", line 2261, in parse_string_opt
  17. return DLParser.get_grammatics().parse_string(instring)
  18. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  19. File "C:\Users\vince\miniconda3\Lib\site-packages\pyparsing\core.py", line 1219, in parse_string
  20. raise exc.with_traceback(None)
  21. pyparsing.exceptions.ParseException: Expected '(', found '[' (at char 41), (line:1, col:42)
  22.  
  23. During handling of the above exception, another exception occurred:
  24.  
  25. Traceback (most recent call last):
  26. File "C:\Users\vince\OneDrive\Documenti\GitHub\fuzzy_dl_owl2_testing\converter.py", line 15, in <module>
  27. translate_fdl_to_owl2("./results/weighted_sum_test.fdl", "weighted_sum_test_final.owl")
  28. File "C:\Users\vince\OneDrive\Documenti\GitHub\fuzzy_dl_owl2_testing\converter.py", line 9, in translate_fdl_to_owl2
  29. fdl = FuzzydlToOwl2(fdl_file, owl_file)
  30. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  31. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\fuzzydl_to_owl2.py", line 150, in __init__
  32. self.kb, _ = DLParser.get_kb(input_file)
  33. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\parser\dl_parser.py", line 2294, in get_kb
  35. Util.error(e)
  36. File "C:\Users\vince\miniconda3\Lib\site-packages\fuzzy_dl_owl2\fuzzydl\util\util.py", line 52, in error
  37. raise FuzzyOntologyException(message)
  38. fuzzy_dl_owl2.fuzzydl.exception.fuzzy_ontology_exception.FuzzyOntologyException: Expected '(', found '[' (at char 41), (line:1, col:42)
Advertisement
Add Comment
Please, Sign In to add comment