我已经完成了 git init 并为我的项目创建了一个 Git 存储库。当我“cd .git”时,我进入该文件夹。但我的问题是,在 Git 存储库中,.git 文件没有上传。我尝试更改目录并执行新的 git init,但问题仍然存在。因此,当有人克隆我的存储库时,没有 .git 文件夹,因此它说不是 Git 存储库。
我有一个字典,其中我将每个单词作为键和相应的整数值,例如:
{'me': 41, 'are': 21, 'the': 0}
Run Code Online (Sandbox Code Playgroud)
我有一个数据框,其中包含一列已经标记化的单词列表,例如:
['I', 'liked', 'the', 'color', 'of', 'this', 'top']
['Just', 'grabbed', 'this', 'today', 'great', 'find']
Run Code Online (Sandbox Code Playgroud)
如何将这些单词中的每个单词编码为字典中的相应值.例如:
[56, 78, 5, 1197, 556, 991, 40]
Run Code Online (Sandbox Code Playgroud)