关于变形金刚(Transformers )介绍的英语作文

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于变形金刚(Transformers )介绍的英语作文相关的知识,希望对你有一定的参考价值。

以及作文翻译!!!

 

Transformers and Transformers II were both American sci-fi films. They talked about some kind of living mechanical organisms called Autobot and could transform into any thing, which live far away in another planet Cybertron but came to Earth to recover an important object called Allspark, a mystical talisman,which they had lost tens of years ago when one of their space ships had crash into Earth. The object's location map happened to be  engraved on a pair of glasses, which has a great power to whoever possesses it.

 

Of course there were two kinds of Autobots in the films, one group were good guys and others were bad guys. The good guys were teamed up with an Earth high school nerd Sam Witwicky, the grandson of the glasses's owner, Captain Witwicky, when he bought an old sport car, later knew that it has a name, Bumblebee. From there on, in order not to let the bad Autobots to possess and control of the Allspark, he and the Autobots lead by Optimus Prime with another school girl, Mikaela Banes who Sam fancies a lot had gone through a very exciting adventure.

 

All in all the two films were so good, so exciting from the beginning to the end. It was most enjoyable watching them.

 

变形金刚和变形金刚续集两套都是美国拍摄的科幻电影,故事背景是说一种来自一个名叫Cybertron遥远行星能够变形的机械生物Autobots。它们是来寻找几十年前在地球坠毁了的一架太空船失掉了的一样重要物件,那物件叫做Allspark, 是一个神秘的护身符。它的所在地图却被刻在一双眼镜上,若任何一个拥有这件护身符的都会有无比的威力。

故事中当然是有两种Autobots了,一种是好的,另一种则是坏蛋。好的一批与地球的一名怪诞学生Sam合作,在Autobots 的领袖Optimus Prime 的带领和另一位Sam 喜爱的女学生一起,经历了场紧张刺激的遭遇。

总而言之,两套电影从头至尾都十分紧张,非常好看!

 

楼上两位说的好像电子游戏,但我的是电影介绍,可以吗?

参考技术A TRANSFORMERS, and its associated characters are trademarks of Hasbro and are used with permission. © 2012 Hasbro. All rights reserved.
Game © 2012 Activision Publishing, Inc. All rights reserved. Activision is a registered trademark of Activision Publishing, Inc. KINECT, Xbox, Xbox 360, Xbox LIVE, and the Xbox logos are trademarks of the Microsoft group of companies and are used under license from Microsoft. “PlayStation”, the “PS” Family logo and “PS3” are registered trademarks and the PlayStation Network logo is a trademark of Sony Computer Entertainment Inc. The ESRB rating icon is a registered trademark of the Entertainment Software Association. All other trademarks and trade names are the properties of their respective owners. Activision makes no guarantees regarding the availability of online play or features, and may modify or discontinue online service in its discretion without notice, including for example, ceasing online service for economic reasons due to a limited number of players continuing to make use of the service over time. Online interactions not rated by the ESRB追问

请问能把翻译一块儿出示吗?谢谢

追答

答:你好好看看行不行

参考技术B http://zh.wikipedia.org/wiki/%E5%8F%98%E5%BD%A2%E9%87%91%E5%88%9A

中文的
http://en.wikipedia.org/wiki/Transformers

英文的
参考技术C 你写点东西,再找百度在线翻译不就O了

Hugging-Face Transformers:从路径错误中加载模型

【中文标题】Hugging-Face Transformers:从路径错误中加载模型【英文标题】:Hugging-Face Transformers: Loading model from path error 【发布时间】:2020-10-19 20:14:25 【问题描述】:

我对 Hugging-Face 变形金刚很陌生。当我尝试从给定路径加载 xlm-roberta-base 模型时遇到以下问题:

>> tokenizer = AutoTokenizer.from_pretrained(model_path)
>> Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/anaconda3/lib/python3.7/site-packages/transformers/tokenization_auto.py", line 182, in from_pretrained
    return tokenizer_class.from_pretrained(pretrained_model_name_or_path, *inputs, **kwargs)
  File "/home/user/anaconda3/lib/python3.7/site-packages/transformers/tokenization_utils.py", line 309, in from_pretrained
    return cls._from_pretrained(*inputs, **kwargs)
  File "/home/user/anaconda3/lib/python3.7/site-packages/transformers/tokenization_utils.py", line 458, in _from_pretrained
    tokenizer = cls(*init_inputs, **init_kwargs)
  File "/home/user/anaconda3/lib/python3.7/site-packages/transformers/tokenization_roberta.py", line 98, in __init__
    **kwargs,
  File "/home/user/anaconda3/lib/python3.7/site-packages/transformers/tokenization_gpt2.py", line 133, in __init__
    with open(vocab_file, encoding="utf-8") as vocab_handle:
TypeError: expected str, bytes or os.PathLike object, not NoneType

但是,如果我按其名称加载它,则没有问题:

>> tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-base')

我将不胜感激。

【问题讨论】:

你使用哪个版本的转换器? model_path 的值是多少? 我正在使用transformers==2.4.1model_path=./roberta/model-number 【参考方案1】:

我假设您已经按照documentation 中的描述创建了该目录:

tokenizer.save_pretrained('YOURPATH')

目前有一个 issue 正在调查中,它只影响 AutoTokenizer,但不影响底层的分词器,如 (XLMRobertaTokenizer)。例如以下应该工作:

from transformers import XLMRobertaTokenizer

tokenizer = XLMRobertaTokenizer.from_pretrained('YOURPATH')

要使用 AutoTokenizer,您还需要保存配置以离线加载:

from transformers import AutoTokenizer, AutoConfig

tokenizer = AutoTokenizer.from_pretrained('xlm-roberta-base')
config = AutoConfig.from_pretrained('xlm-roberta-base')

tokenizer.save_pretrained('YOURPATH')
config.save_pretrained('YOURPATH')

tokenizer = AutoTokenizer.from_pretrained('YOURPATH')

我建议或者为标记器和模型使用不同的路径来保留模型的 config.json,因为您应用到模型的一些修改会存储在model.save_pretrained() 期间创建的 config.json 中,并且在您保存模型后如上所述的标记器时将被覆盖(即您将无法使用标记器 config.json 加载修改后的模型)。

【讨论】:

【参考方案2】:

我遇到了同样的错误信息,要修复它,您可以在参数中添加use_fast=True

generator = AutoTokenizer.from_pretrained(generator_path, config=config.generator, use_fast=True) 

【讨论】:

【参考方案3】:

我遇到了同样的问题。使用本地机器上的模型。

os.environ['TRANSFORMERS_OFFLINE']='1'

这告诉库只使用本地文件。你可以在Hugging Face Installation - Offline Mode阅读更多关于它的信息

from transformers import RobertaTokenizer
tokenizer = RobertaTokenizer.from_pretrained('Model_Path')

路径应该是模型文件夹从当前文件目录的位置路径。例如,如果模型文件位于 xlm-roberta-base 文件夹下的模型文件夹中,则路径应为 'models/xlm-roberta-base/'

【讨论】:

以上是关于关于变形金刚(Transformers )介绍的英语作文的主要内容,如果未能解决你的问题,请参考以下文章

MovieReview—Transformers.The.Last.Knight.(变形金刚5:最后的骑士.)

变形金刚介绍 变形金刚简介

了解拥抱脸变形金刚

使用 Simple Transformers 微调预训练的语言模型

Hugging-Face Transformers:从路径错误中加载模型

变形金刚玩具介绍 关于玩具变形金刚的简介