KnowledgeCaptureAndDiscovery / somef

SOftware Metadata Extraction Framework: A tool for automatically extracting relevant software information from readme files
MIT License
44 stars 22 forks source link

Error when extracting confidence in JSON #485

Closed dgarijo closed 2 years ago

dgarijo commented 2 years ago

For some reason, the confidence sometimes is found not as a list, but as a double list:

"description": [
        {
            "excerpt": "Tool to transform ontology conceptualizations made with diagrams.net into OWL code.\r\n\r\nThe conceptualizations should follow the <a href=\"https://chowlk.linkeddata.es/notation.html\">Chowlk visual notation</a>. Please visit the specification for more details.\r\n\r \n",
            "confidence": [
                [
                    0.9370490666739703
                ]
            ],
            "technique": "Supervised classification",
            "originalHeader": "Chowlk Converter"
        },

This is problematic for some parsers. It should be a single list.

dgarijo commented 2 years ago

Did not add a test for this one, as it's a change in the output format