Filosoft / vabamorf

Eesti keele morfanalüsaator
Other
24 stars 14 forks source link

etana produces JSON that crashes etdisamb #18

Closed Kaljurand closed 9 years ago

Kaljurand commented 9 years ago

"etdisamb" crashes with error:

JSON error: Missing ',' in map

on this commandline:

cat test.json | ./etana analyze -lex ~/myapps/vabamorf/dct/binary/et.dct   | ./etdisamb -lex et3.dct

where the content of test.json is:

{
  "paragraphs": [
    {
      "sentences": [
        {
          "words": [
            {
              "text": "\""
            }
          ]
        }
      ]
    }
  ]
}

it seems that etana overescapes:

"text": "\\""
PRR24 commented 9 years ago

Fixed.