# NLP chapter 3 question

**URL:** <https://discuss.huggingface.co/t/nlp-chapter-3-question/148420>\
**Category:** Beginners\
**Created:** [April 1, 2025, 2:28pm UTC](https://discuss.huggingface.co/t/nlp-chapter-3-question/148420 "2025-04-01T14:28:15Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 5, 2025, 11:11am UTC](https://discuss.huggingface.co/t/nlp-chapter-3-question/148420/5 "2025-04-05T11:11:13Z")

</div>

It seems that there are different errors for each version…

> [@Pretrain model not accepting optimizer](https://discuss.huggingface.co/t/pretrain-model-not-accepting-optimizer/76209/19?page=2):
>
> I have the same problem and still getting same error. I tried everything, but it doesn’t work. I am working on a project and I am short on time. Please help.

> <https://github.com/amaiya/ktrain/issues/523>
>
> I followed Tutorial A3: \[Text Classification with Hugging Face Transformers\]. I …tried to implement the 'bert-base-multilingual-uncased' model from HuggingFace. When using the code, model = t\_mod.get\_classifier(), it generates an error message. This code was working perfectly some days ago. However, now it produces the following error:
> 
> \*\*Error\*\*
> \---------------------------------------------------------------------------
> 
> ValueError Traceback (most recent call last)
> 
> \[\<ipython-input-21-9ce4d9ec2ad7\>\](https://localhost:8080/#) in \<cell line: 1\>()
> \----\> 1 model = t\_mod.get\_classifier()
> 
> 3 frames
> 
> \[/usr/local/lib/python3.10/dist-packages/tf\_keras/src/optimizers/\_\_init\_\_.py\](https://localhost:8080/#) in get(identifier, \*\*kwargs)
> 332 )
> 333 else:
> \--\> 334 raise ValueError(
> 335 f"Could not interpret optimizer identifier: {identifier}"
> 336 )
> 
> ValueError: Could not interpret optimizer identifier: \<keras.src.optimizers.legacy.adam.Adam object at 0x7b2c22cb13c0\>

---

_[View the full topic](https://discuss.huggingface.co/t/nlp-chapter-3-question/148420)._
