
import os
import re
import math
from digoie.conf.storage import __elastic_search_dir__, __reverb_input_dir__, REVERB_INPUT_EXT

from digoie.core.files.names import load_names
from digoie.conf.global_settings import TARGET_PERSON_NAME, TARGET_PHONE_NUMBER




def extract(raw, target=TARGET_PERSON_NAME):
    print 'extract features...'
    featured = []
    
    for line in raw:
        line = preprocess_line(line)

        # load basic info for reverb output line
        confidence = load_confidence_symbol(line[11])