Q.1 Why does spaCy store strings in hashed form?
A. To save space
B. For less complexity
C. For easier programming
D. For consistency
Ans : To save space
Q.2 Name the sub-module of spaCy that must be imported to use visualizers of spaCy.
A. visualspacy
B. displacy
C. dspacy
D. splacy
Ans : displacy
Q.3 Which function is used to load a model in spaCy?
A. load
B. get_model
C. model
D. load_model
Ans : load
Q.4 spaCy consists of ____ .
A. entity recognizer
B. parser
C. tagger
D. All of the options
Ans : All of the options
Q.5 spaCy is cross-platform. State if the statement is true or false?
A. True
B. False
Ans : True
Q.6 SpacSpacy’s pre-trained models for NER can be customized. Is the statement true or false?
A. True
B. False
Ans : True
Q.7 displaCy is used to visualize syntactic dependencies. Is the statement true or false?
A. True
B. False
Ans : True
Q.8 Token does not have contextual information. Is the statement true or false?
A. True
B. False
Ans : False
Q.9 Which parameter of serve method in displaCy determines the nature of visualization?
A. type
B. style
C. cust
D. val
Ans : style
Q.10 Which one of the following options are used to normalize the input data?
A. Lemmatisation
B. POS tagging
C. Tokenisation
D. NER
Ans : Lemmatisation
Q.11 What is the expansion of POS?
A. Post Office Speech
B. Parted Office Speech
C. Part Of Speech
D. Paint Of Speech
Ans : Part Of Speech
Q.12 Name the method that can be used to find the expansion of abbreviations in spaCy.
A. means
B. meaning
C. explain
D. what
Ans : explain
Q.13 Lexeme has no contextual information. Is the statement true or false?
A. True
B. False
Ans : True
Q.14 Strings are handled internally in their unhashed forms.Is the statement true or false?
A. True
B. False
Ans : False
Q.15 Spacy cannot do proper NER without the help of models. Is the statement true or false?
A. True
B. False
Ans : False
Q.16 Doc object does not have any metadata with it. Is the statement true or false?
A. True
B. False
Ans : False
Q.17 ______ is the displaCy method used to get the HTML representation of the visualization.
A. serve_code
B. rend
C. html
D. render
Ans : render
Q.18 Name the function used to find similarity score in spaCy?
A. similar
B. simil
C. sim
D. similarity
Ans : similarity
Q.19 Name the attribute of Token which will give the name of its POS tag in string form.
A. pos_
B. pos
C. pos_string
D. pos_str
Ans : pos_
Q.20 Slices of a Doc object forms an object of ________ class.
A. Span
B. Token
C. Doc
D. Doc cannot be sliced
Ans : Span
Q.21 To obtain raw HTML for a visualization in displaCy, which parameter must be set to True?
A. raw
B. page
C. raw_html
D. html
Ans : page
Q.22 Vocab provides lookup tables. Is the statement true or false?
A. True
B. False
Ans : True
Q.23 The maximum similarity score is 0. Is the statement true or false?
A. True
B. False
Ans : False
Q.24 Token is not a view into a Doc object. Is the statement true or false?
A. True
B. False
Ans : False
Q.25 What is the lemma of Jane?
A. Janes
B. Jane
C. Janing
D. Janer
Ans : Jane
Q.26 What is the name of the displacy ent visualisation in style parameter?
A. det
B. dnt
C. ent
D. dpt
Ans : ent
Q.27 Name the method that can be used to whip up a server for visualization in spaCy quickly?
A. dep.serve
B. dep.server
C. displacy.server
D. displacy.serve
Ans : displacy.serve
Q.28 What size of Hashes are used for strings in spaCy?
A. 64
B. 32
C. 62
D. 30
Ans : 64
Q.29 What is the lemma of ran?
A. run
B. runner
C. runs
D. running
Ans : run
Q.30 What is the main advantage of using a centralized string store?
A. String store is not centralized
B. Consistency
C. Less space
D. Improved performance
Ans : Consistency
Q.31 A Doc object is a collection of what objects?
A. Token
B. Ents
C. Entity
D. Ent
Ans : Token
Q.32 Indexing in a Span object is character-wise. Is the statement true or false?
A. True
B. False
Ans : True
Q.33 displaCy can be used in Jupyter Notebooks. Is the statement true or false?
A. True
B. False
Ans : True
Q.34 Spacy offers the fastest syntactic parser in the world. Is the statement true or false?
A. True
B. False
Ans : True
Q.35 What is the name of the displaCy visualizer?
A. dep
B. dis
C. ent
D. disp
Ans : dep
Q.36 What is the output of: doc = nlp(“The quick brown fox jumps over the lazy dog”) print(doc[2:4])?
A. quick brown
B. brown fox
C. fox over
D. lazy dog
Ans : fox over
Q.37 What is the POS tag for unknown?
A. UNK
B. unknown
C. ?
D. X
Ans : unknown