查看这些列举出来的技能,您会发现通过字典或单词列表可以很好地完成提取概念的任务。
Looking at these enumerated skills, you can see that this task of extracting concepts can be handled best with dictionaries or lists of words.
为了实现这个目标,首先创建一个包含您希望从招聘文本中提取的技能列表的字典。
To achieve this goal, first create a dictionary that contains a list of skills that you want to extract from the text of the job offering.
注意,列表或字典中的值不一定必须是相同的类型;可以混合使用字符串、数字,甚至是嵌套的列表或字典,如果需要的话。
Note that the values in a list or dictionary don't have to be all of the same type; you can mix strings, Numbers, and even nested lists and dictionaries if you wish.
在接下来两篇文章中,我们将探讨更强大、更方便的数据结构的应用:有序列表和随机访问字典。
In the next two articles, we'll explore the use of much more powerful and convenient data structures: ordered lists and random-access dictionaries.
ARTSXML字典是一张名称列表,这些名称最初来源于 ARTS 数据模型的逻辑视图的实体和属性名称。
The ARTS XML Dictionary is a list of names initially derived from entity and attribute names of the logical view of the ARTS Data Model.
您需要显式地将对列表或字典的更改告诉ZODB,因为ZODB无法了解所做的更改。
You need to explicitly tell ZODB about changes to lists or dictionaries because the ZODB cannot see the change being made.
该字典按照与糖尿病及其并发病有关的字母顺序提供术语列表。
It offers an list of terms by alphabetic order that are related to diabetes and its complications.
字典是一个简单的汉字字符串的有组织的列表,每个字符串没有附加额外的信息。
The lexicon was simple a organized list of character strings. There were no additional information associated with each string.
您可以通过检验 Sphinx-4 “demo”目录中的某些其他程序,或者通过把现有示例修改为使用大型字典文件和扩展语法列表,亲自测试这一点。
You can test this yourself by checking some of the other programs in the Sphinx-4 "demo" directory or by modifying the existing examples to use large dictionary files and expanded grammar lists.
因为Python的类型是动态的,且具有简洁的数据结构语法,比如列表和字典,所以neo发现它通常可以减少代码行。
Since Python is dynamic typed and has concise syntax for data structures such as list and dictionary, Neo found it usually results in fewer lines of code.
Dictionarylookup操作符根据包含单词列表的字典提取概念,包括文本数据库列中提到的名称、产品甚至技能。
The Dictionary Lookup operator is based on dictionaries that contain lists of words to extract concepts, including names, products, or even skills mentioned from textual database columns.
除了filter以外,字典可以使用其它和列表相同的内置函数和方法。
In addition to filter , dictionaries can use several other of the same built-in functions and procedures as lists.
PHP的数组类型可同时支持简单列表和字典或散列,但Python却将这两者分开。
PHP has an array type that doubles as as a simple list and a dictionary or hash; Python separates the two.
几乎在所有的情况(最显著的例外是string)下,一个应用到字典的列表函数的行为就像该函数收到了该字典的一个值列表。
In almost every case (the notable exception being string ), a list function applied to a dictionary behaves as if the function had been passed a list of the values of the dictionary.
表示中没有使用专门的python类——只使用了元组、字典、列表和字符串(以及保留位置上的None)。
No specialized Python classes are used in the representation — just tuples, dicts, lists, and strings (and None in the reserved position).
您可以通过在键/值对列表上加花括号来创建一个字典。
You create a dictionary in Vimscript by using curly braces around a list of key/value pairs.
根据这个列表,在路由字典或是在URI查询字符串中,试着为每个参数名找到一个匹配。
From this list, try to find a match for each parameter name, either in the route dictionary or in the URI query string.
所以你可以在全局的列表或者字典里面添加、删除或者替换元素,但如果你要重新给这个全局变量赋值,就必须要声明了。
So you can add, remove and replace elements of a global list or dictionary, but if you want to reassign the variable, you have to declare it.
如何将下面的列表转换成一个字典吗?
本章我们要说的是另外一种内置类型,元组,以及列表、字典和元组如何协同工作。
This chapter presents one more built-in type, the tuple, and then shows how lists, dictionaries, and tuples work together.
当然,很少有Python程序员希望使用上面的诸如列表、元组和字典等日益复杂的数据结构。
Of course, few Python programmers want to work with increasingly complex forests of data structures like the lists, tuples, and dictionaries above.
如果可行,他就可以在几小时之内,用Python整洁的列表和字典等数据结构,以及列表理解(list comprehension)等整洁的函数编程功能来编写这个代码。
If it was possible he could write it within a few hours with Python's neat data structures such as list and dictionary, neat functional programming features such as list comprehension.
在字典中赋值就和在Vimscript列表中一样。
Assignments in dictionaries work exactly as they do for Vimscript lists.
我之前说过,字典是用哈希表(散列表)来实现的,这就意味着所有键都必须是散列的。
I mentioned earlier that a dictionary is implemented using a hashtable and that means that the keys have to be hashtable.
提示:你也许可以建立一个字典,映射一个特定的字母组合到一个单词列表,单词列表中的单词可以用这些字母来拼写出来。
Hint: you might want to build a dictionary that maps from a collection of letters to a list of words that can be spelled with those letters.
在这里我们要对一个字典初始化为不同成员,每个成员都是一个列表。
Here we have to initialize mutable dictionary values. Each dictionary value will be a list.
之前我们看到过字符串、列表、字典以及元组的一些方法。
We have seen methods for strings, lists, dictionaries and tuples.
这使得当默认值是可变对象时会有所不同,比如列表、字典或者大多数类的实例。
This makes a difference when the default is a mutable object such as a list, dictionary, or instances of most classes.
词典是一个引用类型,所以会检查字典是否包含在列表通过与否的参考。
Dictionaries are a reference type, so the list will check whether a Dictionary is contained in it or not by the reference passed.
如图所示,用字典中的键值组成列表,而不能用键。
Lists can be values in a dictionary, as this example shows, but they cannot be keys.
应用推荐