add random-scripts

This commit is contained in:
jakubknczny 2022-01-18 10:32:24 +01:00
parent 5e3a91e2e4
commit a8190f419f
4 changed files with 2 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
mt-summit-corpora
.idea
kompendium_lem.tsv
kompendium_lem.*

View File

@ -90,7 +90,7 @@ def inject(sentence, sequence):
+ glossary.loc[lambda df: df['source_lem'] == sequence]['result'].astype(str).values.flatten() \
+ ' ' + ' '.join(sen[maxxi + window_size:])
glossary = pd.read_csv('kompendium_lem_cleaned.tsv', sep='\t', header=0, index_col=0)
glossary = pd.read_csv('../kompendium_lem_cleaned.tsv', sep='\t', header=0, index_col=0)
glossary['source_lem'] = [default_process(x) for x in glossary['source_lem']]
start_time = time.time_ns()