(tagged_dicts)
return tagged
>>> _tagged2tuples(get_tagged_from_server("who has starred in the movie die hard?"))
    [('who', 'O', 'WP'), ('has', 'O', 'VBZ'), ('starred', 'O', 'VBN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('die', 'O', 'VB'), ('hard', 'O', 'RB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the last queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('last', 'O', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the first queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('first', 'ORDINAL', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What actors star in the Big Bang Theory?"))
    [('What', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('Big', 'O', 'NNP'), ('Bang', 'O', 'NNP'), ('Theory', 'O', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what actors star in the big bang theory?", caseless=True))
    [('what', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('big', 'O', 'JJ'), ('bang', 'O', 'NN'), ('theory', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who wrote the song hotel california?", caseless=True))
    [('who', 'O', 'WP'), ('wrote', 'O', 'VBD'), ('the', 'O', 'DT'), ('song', 'O', 'NN'), ('hotel', 'O', 'NN'), ('california', 'LOCATION', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who was the president of the united states in 2012?", caseless=True))
    [('who', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('president', 'O', 'NN'), ('of', 'O', 'IN'), ('the', 'O', 'DT'), ('united', 'LOCATION', 'NNP'), ('states', 'LOCATION', 'NNPS'), ('in', 'O', 'IN'), ('2012', 'DATE', 'CD'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who plays megan in the movie taken?", caseless=True))
    [('who', 'O', 'WP'), ('plays', 'O', 'VBZ'), ('megan', 'O', 'NNP'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('taken', 'O', 'VBN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what language do canadians speak?", caseless=True))
    [('what', 'O', 'WDT'), ('language', 'O', 'NN'), ('do', 'O', 'VBP'), ('canadians', 'O', 'NNPS'), ('speak', 'O', 'VB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("Light explodes over Pep Guardiola's head in Bernabeu press room. Will Mourinho stop at nothing?! Heh heh"))
    [('Light', 'O', 'JJ'), ('explodes', 'O', 'VBZ'), ('over', 'O', 'IN'), ('Pep', 'PERSON', 'NNP'), ('Guardiola', 'PERSON', 'NNP'), ("'s", 'O', 'POS'), ('head', 'O', 'NN'), ('in', 'O', 'IN'), ('Bernabeu', 'LOCATION', 'NNP'), ('press', 'O', 'NN'), ('room', 'O', 'NN'), ('.', 'O', '.'), ('Will', 'O', 'MD'), ('Mourinho', 'PERSON', 'NNP'), ('stop', 'O', 'VB'), ('at', 'O', 'IN'), ('nothing', 'O', 'NN'), ('?!', 'NUMBER', 'CD'), ('Heh', 'O', 'NNP'), ('heh', 'O', 'RB')]
>>> _tagged2tuples(get_tagged_from_server("who has starred in the movie die hard?"))
    [('who', 'O', 'WP'), ('has', 'O', 'VBZ'), ('starred', 'O', 'VBN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('die', 'O', 'VB'), ('hard', 'O', 'RB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the last queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('last', 'O', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the first queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('first', 'ORDINAL', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What actors star in the Big Bang Theory?"))
    [('What', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('Big', 'O', 'NNP'), ('Bang', 'O', 'NNP'), ('Theory', 'O', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what actors star in the big bang theory?", caseless=True))
    [('what', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('big', 'O', 'JJ'), ('bang', 'O', 'NN'), ('theory', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who wrote the song hotel california?", caseless=True))
    [('who', 'O', 'WP'), ('wrote', 'O', 'VBD'), ('the', 'O', 'DT'), ('song', 'O', 'NN'), ('hotel', 'O', 'NN'), ('california', 'LOCATION', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who was the president of the united states in 2012?", caseless=True))
    [('who', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('president', 'O', 'NN'), ('of', 'O', 'IN'), ('the', 'O', 'DT'), ('united', 'LOCATION', 'NNP'), ('states', 'LOCATION', 'NNPS'), ('in', 'O', 'IN'), ('2012', 'DATE', 'CD'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who plays megan in the movie taken?", caseless=True))
    [('who', 'O', 'WP'), ('plays', 'O', 'VBZ'), ('megan', 'O', 'NNP'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('taken', 'O', 'VBN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what language do canadians speak?", caseless=True))
    [('what', 'O', 'WDT'), ('language', 'O', 'NN'), ('do', 'O', 'VBP'), ('canadians', 'O', 'NNPS'), ('speak', 'O', 'VB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("Light explodes over Pep Guardiola's head in Bernabeu press room. Will Mourinho stop at nothing?! Heh heh"))
    [('Light', 'O', 'JJ'), ('explodes', 'O', 'VBZ'), ('over', 'O', 'IN'), ('Pep', 'PERSON', 'NNP'), ('Guardiola', 'PERSON', 'NNP'), ("'s", 'O', 'POS'), ('head', 'O', 'NN'), ('in', 'O', 'IN'), ('Bernabeu', 'LOCATION', 'NNP'), ('press', 'O', 'NN'), ('room', 'O', 'NN'), ('.', 'O', '.'), ('Will', 'O', 'MD'), ('Mourinho', 'PERSON', 'NNP'), ('stop', 'O', 'VB'), ('at', 'O', 'IN'), ('nothing', 'O', 'NN'), ('?!', 'NUMBER', 'CD'), ('Heh', 'O', 'NNP'), ('heh', 'O', 'RB')]
>>> _tagged2tuples ( get_tagged_from_server ( who has starred in the movie die hard? )) [ ( who O WP ) ( has O VBZ ) ( starred O VBN ) ( in O IN ) ( the O DT ) ( movie O NN ) ( die O VB ) ( hard O RB ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( What was the last queen album? )) [ ( What O WP ) ( was O VBD ) ( the O DT ) ( last O JJ ) ( queen O NN ) ( album O NN ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( What was the first queen album? )) [ ( What O WP ) ( was O VBD ) ( the O DT ) ( first ORDINAL JJ ) ( queen O NN ) ( album O NN ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( What actors star in the Big Bang Theory? )) [ ( What O WDT ) ( actors O NNS ) ( star O NN ) ( in O IN ) ( the O DT ) ( Big O NNP ) ( Bang O NNP ) ( Theory O NNP ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( what actors star in the big bang theory? caseless = True )) [ ( what O WDT ) ( actors O NNS ) ( star O NN ) ( in O IN ) ( the O DT ) ( big O JJ ) ( bang O NN ) ( theory O NN ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( who wrote the song hotel california? caseless = True )) [ ( who O WP ) ( wrote O VBD ) ( the O DT ) ( song O NN ) ( hotel O NN ) ( california LOCATION NNP ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( who was the president of the united states in 2012? caseless = True )) [ ( who O WP ) ( was O VBD ) ( the O DT ) ( president O NN ) ( of O IN ) ( the O DT ) ( united LOCATION NNP ) ( states LOCATION NNPS ) ( in O IN ) ( 2012 DATE CD ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( who plays megan in the movie taken? caseless = True )) [ ( who O WP ) ( plays O VBZ ) ( megan O NNP ) ( in O IN ) ( the O DT ) ( movie O NN ) ( taken O VBN ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( what language do canadians speak? caseless = True )) [ ( what O WDT ) ( language O NN ) ( do O VBP ) ( canadians O NNPS ) ( speak O VB ) ( ? O . ) ] >>> _tagged2tuples ( get_tagged_from_server ( Light explodes over Pep Guardiola s head in Bernabeu press room . Will Mourinho stop at nothing?! Heh heh )) [ ( Light O JJ ) ( explodes O VBZ ) ( over O IN ) ( Pep PERSON NNP ) ( Guardiola PERSON NNP ) ( s O POS ) ( head O NN ) ( in O IN ) ( Bernabeu LOCATION NNP ) ( press O NN ) ( room O NN ) ( . O . ) ( Will O MD ) ( Mourinho PERSON NNP ) ( stop O VB ) ( at O IN ) ( nothing O NN ) ( ?! NUMBER CD ) ( Heh O NNP ) ( heh O RB ) ]
def _tagged2tuples(tagged_dicts):
    """
    >>> _tagged2tuples(get_tagged_from_server("who has starred in the movie die hard?"))
    [('who', 'O', 'WP'), ('has', 'O', 'VBZ'), ('starred', 'O', 'VBN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('die', 'O', 'VB'), ('hard', 'O', 'RB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the last queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('last', 'O', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What was the first queen album?"))
    [('What', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('first', 'ORDINAL', 'JJ'), ('queen', 'O', 'NN'), ('album', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("What actors star in the Big Bang Theory?"))
    [('What', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('Big', 'O', 'NNP'), ('Bang', 'O', 'NNP'), ('Theory', 'O', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what actors star in the big bang theory?", caseless=True))
    [('what', 'O', 'WDT'), ('actors', 'O', 'NNS'), ('star', 'O', 'NN'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('big', 'O', 'JJ'), ('bang', 'O', 'NN'), ('theory', 'O', 'NN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who wrote the song hotel california?", caseless=True))
    [('who', 'O', 'WP'), ('wrote', 'O', 'VBD'), ('the', 'O', 'DT'), ('song', 'O', 'NN'), ('hotel', 'O', 'NN'), ('california', 'LOCATION', 'NNP'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who was the president of the united states in 2012?", caseless=True))
    [('who', 'O', 'WP'), ('was', 'O', 'VBD'), ('the', 'O', 'DT'), ('president', 'O', 'NN'), ('of', 'O', 'IN'), ('the', 'O', 'DT'), ('united', 'LOCATION', 'NNP'), ('states', 'LOCATION', 'NNPS'), ('in', 'O', 'IN'), ('2012', 'DATE', 'CD'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("who plays megan in the movie taken?", caseless=True))
    [('who', 'O', 'WP'), ('plays', 'O', 'VBZ'), ('megan', 'O', 'NNP'), ('in', 'O', 'IN'), ('the', 'O', 'DT'), ('movie', 'O', 'NN'), ('taken', 'O', 'VBN'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("what language do canadians speak?", caseless=True))
    [('what', 'O', 'WDT'), ('language', 'O', 'NN'), ('do', 'O', 'VBP'), ('canadians', 'O', 'NNPS'), ('speak', 'O', 'VB'), ('?', 'O', '.')]
    >>> _tagged2tuples(get_tagged_from_server("Light explodes over Pep Guardiola's head in Bernabeu press room. Will Mourinho stop at nothing?! Heh heh"))
    [('Light', 'O', 'JJ'), ('explodes', 'O', 'VBZ'), ('over', 'O', 'IN'), ('Pep', 'PERSON', 'NNP'), ('Guardiola', 'PERSON', 'NNP'), ("'s", 'O', 'POS'), ('head', 'O', 'NN'), ('in', 'O', 'IN'), ('Bernabeu', 'LOCATION', 'NNP'), ('press', 'O', 'NN'), ('room', 'O', 'NN'), ('.', 'O', '.'), ('Will', 'O', 'MD'), ('Mourinho', 'PERSON', 'NNP'), ('stop', 'O', 'VB'), ('at', 'O', 'IN'), ('nothing', 'O', 'NN'), ('?!', 'NUMBER', 'CD'), ('Heh', 'O', 'NNP'), ('heh', 'O', 'RB')]
    """
    tagged = [(t['originalText'], t['ner'], t['pos']) for t in tagged_dicts]
    return tagged
def _tagged2tuples ( tagged_dicts ) : tagged = [ ( t [ 'originalText' ] , t [ 'ner' ] , t [ 'pos' ] ) for t in tagged_dicts ] return tagged