question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting error in dictionary

See original GitHub issue

I have used the suggested commands below for dealing with the OOV issue:

$ ./sort.py eng.dict OOV.txt > tmp; 
$ mv tmp eng.dict

However, I am getting the error below: Formatting error in dictionary '/Users/bowang/Tools/Prosodylab-Aligner/eng.dict' (ln. 1).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kylebgormancommented, Aug 13, 2018

You need to ensure that the line you add has the same formatting as other lines. I’m not sure what else to tell you. I do this simply by typing in my preferred text editor, correcting any errors manually. Is the expected format clear?

If your text editor makes this hard to do, try another one.

On Sun, Aug 12, 2018, 4:51 PM bluemonk482 notifications@github.com wrote:

@kylebgorman https://github.com/kylebgorman Thanks! I have tokenized, upper-cased, and removed punctuations (except apostrophe). Now I have only one OOV token which is a 5 digits number. I have followed the steps provided again to add this number into the lang.dict.

It is giving the same formatting error for the lang.dict. The issue is the provided way of editing the lang.dict file somehow changes its format?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/prosodylab/Prosodylab-Aligner/issues/72#issuecomment-412380208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJuOWAKJKDn0H9MHwMp86zSdtlAoSLIks5uQL9vgaJpZM4Vw2jY .

0reactions
kylebgormancommented, Jan 16, 2020

Closing for inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting a key error while formatting a stringified dictionary in ...
I just want to insert variables user_name and password inside the stringified dict above in the places u and p resp. Error: data...
Read more >
format error definition | English dictionary for learners | Reverso
1 n-count The format of something is the way or order in which it is arranged and presented. I had met with him...
Read more >
Not using dict keys when formatting strings - QuantifiedCode
When formatting a string with values from a dictionary, you can use the dictionary keys instead of explicity defining all of the format...
Read more >
logging.config — Logging configuration — Python 3.11.1 ...
Takes the logging configuration from a dictionary. ... If an error is encountered during configuration, this function will raise a ValueError , TypeError ......
Read more >
Invalid PASW Statistics dictionary format - Forums - IBM Support
I get the following error:<br>. Error: PASW Statistics error: The error code is '1002' With message 'Invalid PASW Statistics dictionary format.'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found