source/dataparsing/text_tagging.py
def tag_text_of_type(tag_type, data):
    """Only output already tokenised words of specific type that was requested"""
    text_of_tag = []
    index = 0
    for word in data:
        if tag_type in word[1]:
            text_of_tag.append(tuple((word[0], index)))
        index+=1
    return text_of_tag
Only output already tokenised words of specific type that was requested
Only output already tokenised words of specific type that was requested
Only output already tokenised words of specific type that was requested
def tag_text_of_type(tag_type, data):
    text_of_tag = []
    index = 0
    for word in data:
        if tag_type in word[1]:
            text_of_tag.append(tuple((word[0], index)))
        index+=1
    return text_of_tag
def tag_text_of_type ( tag_type , data ) : text_of_tag = [ ] index = 0 for word in data : if tag_type in word [ 1 ] : text_of_tag . append ( tuple ( ( word [ 0 ] , index ) ) ) index += 1 return text_of_tag
Only output already tokenised words of specific type that was requested
Only output already tokenised words of specific type that was requested
"""Only output already tokenised words of specific type that was requested"""
tag_type
data