LAV-DF
LAV-DF copied to clipboard
Metadata
I hope this message finds you well. I am currently working on a project and encountered an issue with the Metadata class in the lavdf.py file. When trying to initialize the Metadata class from a JSON file using the lambda function in the read_json method, I received the following error:
TypeError: Metadata.init() got an unexpected keyword argument 'transcript' Here is the relevant code snippet: self.metadata: List[Metadata] = read_json(os.path.join(self.root, "metadata.min.json"), lambda x: Metadata(**x))
It seems that the transcript field is not being recognized in the Metadata class, even though I've added it as an attribute. I would greatly appreciate your guidance on resolving this issue.
Thank you very much for your assistance.