class_docstr: Parse BCP-47 composite language tags
  
  Supports all the main subtags, and the 'u-sd' extension:
  
  >>> from nltk.corpus import bcp47
  >>> bcp47.name('oc-gascon-u-sd-fr64')
  'Occitan (post 1500): Gascon: Pyrénées-Atlantiques'
  
  Can load a conversion table to Wikidata Q-codes:
  >>> bcp47.load_wiki_q()
  >>> bcp47.wiki_q['en-GI-spanglis']
  'Q79388'
docstr: Convert Wikidata list of Q-codes to a BCP-47 dictionary
docstr_tok: ["Convert","Wikidata","list","of","Q-codes","to","a","BCP-47","dictionary"]
code: def wiki_dict(self, lines):
      """Convert Wikidata list of Q-codes to a BCP-47 dictionary"""
      return {
          pair[1]: pair[0].split("/")[-1]
          for pair in [line.strip().split("\t") for line in lines]
      }
  
file_path: nltk/nltk/corpus/reader/bcp47.py
imports: import re
  from warnings import warn
  from xml.etree import ElementTree
  from nltk.corpus.reader import CorpusReader
label_desc: Use image node_id 3 for calling the BCP47CorpusReader obj's underlying member method code with example usage: obj.wiki_dict(lines) and returns: unknown