VirtoolsTranslation/NlpProc/NlpDirectCmp.py

13 lines
273 B
Python
Raw Normal View History

2023-07-09 22:32:23 +08:00
import NlpUtils
import jsondiff
import sys
2023-07-10 21:42:52 +08:00
json1 = NlpUtils.LoadJson(sys.argv[1])
json2 = NlpUtils.LoadJson(sys.argv[2])
2023-07-09 22:32:23 +08:00
2023-07-10 21:42:52 +08:00
(_, value1, ) = NlpUtils.NlpJson2PlainJson(json1)
(_, value2, ) = NlpUtils.NlpJson2PlainJson(json2)
2023-07-09 22:32:23 +08:00
diff = jsondiff.diff(value1, value2)
print(diff)