import xml.etree.ElementTree as ET

def lerXml(file):

	with open(file, 'r') as xml_file:
	    tree = ET.parse(xml_file)
	    root = tree.getroot()
		
	lista = []
	dicionario = {}
	for t in root.iter('t'):
		lista.append(t.attrib)
	for palavras in lista:
		dicionario[palavras['word']] = palavras['pos']

	return dicionario;

84ec4d61b538c9b230cf48e32369bba43374f15e
<mask token>

<mask token>


def lerXml(file):
    with open(file, 'r') as xml_file:
        tree = ET.parse(xml_file)
        root = tree.getroot()
    lista = []
    dicionario = {}
    for t in root.iter('t'):
        lista.append(t.attrib)
    for palavras in lista:
        dicionario[palavras['word']] = palavras['pos']
    return dicionario

import xml.etree.ElementTree as ET


def lerXml(file):
    with open(file, 'r') as xml_file:
        tree = ET.parse(xml_file)
        root = tree.getroot()
    lista = []
    dicionario = {}
    for t in root.iter('t'):
        lista.append(t.attrib)
    for palavras in lista:
        dicionario[palavras['word']] = palavras['pos']
    return dicionario

import xml.etree.ElementTree as ET

def lerXml(file):

	with open(file, 'r') as xml_file:
	    tree = ET.parse(xml_file)
	    root = tree.getroot()
		
	lista = []
	dicionario = {}
	for t in root.iter('t'):
		lista.append(t.attrib)
	for palavras in lista:
		dicionario[palavras['word']] = palavras['pos']

	return dicionario;
