from tika import parser
import os

def simpifierCV(textCV):
    textCV = textCV['content'].split("\n\n")
    chaine = []
    for i in textCV:
        len = sum(j.isalpha() for j in i )
        if 1 < len and len < 50 and i[0].isupper():
            chaine += i
    return chaine

for element in os.listdir(r'C:\Users/augus/PycharmProjects/hackathon/CVs'):
    parsed = parser.from_file(r'C:\Users/augus/PycharmProjects/hackathon/CVs/' + element)
    print(simpifierCV(parsed))












14d50a591802395bbfbe01a8d9f25abff8a9e3ca
<mask token>

<mask token>


def simpifierCV(textCV):
    textCV = textCV['content'].split('\n\n')
    chaine = []
    for i in textCV:
        len = sum(j.isalpha() for j in i)
        if 1 < len and len < 50 and i[0].isupper():
            chaine += i
    return chaine


<mask token>

<mask token>


def simpifierCV(textCV):
    textCV = textCV['content'].split('\n\n')
    chaine = []
    for i in textCV:
        len = sum(j.isalpha() for j in i)
        if 1 < len and len < 50 and i[0].isupper():
            chaine += i
    return chaine


for element in os.listdir('C:\\Users/augus/PycharmProjects/hackathon/CVs'):
    parsed = parser.from_file(
        'C:\\Users/augus/PycharmProjects/hackathon/CVs/' + element)
    print(simpifierCV(parsed))

from tika import parser
import os


def simpifierCV(textCV):
    textCV = textCV['content'].split('\n\n')
    chaine = []
    for i in textCV:
        len = sum(j.isalpha() for j in i)
        if 1 < len and len < 50 and i[0].isupper():
            chaine += i
    return chaine


for element in os.listdir('C:\\Users/augus/PycharmProjects/hackathon/CVs'):
    parsed = parser.from_file(
        'C:\\Users/augus/PycharmProjects/hackathon/CVs/' + element)
    print(simpifierCV(parsed))

from tika import parser
import os

def simpifierCV(textCV):
    textCV = textCV['content'].split("\n\n")
    chaine = []
    for i in textCV:
        len = sum(j.isalpha() for j in i )
        if 1 < len and len < 50 and i[0].isupper():
            chaine += i
    return chaine

for element in os.listdir(r'C:\Users/augus/PycharmProjects/hackathon/CVs'):
    parsed = parser.from_file(r'C:\Users/augus/PycharmProjects/hackathon/CVs/' + element)
    print(simpifierCV(parsed))











