| |
- change_dpos(dpos)
- A function that replace possessive determinant
Arguments:
dpos {string} -- dpos that we need to modify
Returns:
[string] -- Returns new dpos
- change_ppers(ppers)
- A function that replace personal pronoun
Arguments:
ppers {string} -- ppers that we need to modify
Returns:
[string] -- Returns new ppers
- change_ppos(ppos)
- A function that replace possessive pronoun
Arguments:
ppos {string} -- ppos that we need to modify
Returns:
[string] -- Returns new ppos
- find_new_form(form)
- A function that search in database the form of a verb
Arguments:
form {string} -- form that we need to modify
Returns:
[string] -- Returns new form
- new_ppers(idx, partie, new_phrase)
- Returns a new personal pronoun according to the context.
- new_sub(idx, new_phrase)
- Returns a new subject according to the context.
- replace_sujet_verbe(phrases, file)
- A function that replace subject, verb and possessive group in text
Arguments:
phrases {list} -- sentences where replace elements
file {file} -- the report file
Returns:
[list] -- Returns modified tagged sentence
- split(string, num)
- A function that split a string in a list of n characters string
Arguments:
string {string} -- the text we want to cut
num {integer} -- the length of the string at the output
Returns:
[list] -- Returns a list of string
- tricky_apostrophes(phrase, idx, new_phrase, partie)
- Adds and remove ' where it is needed.
- write_file(sentence, file)
- Writes the sentence in the file, 2096 char by 2096 char
to avoid too long lines in the file.
|