add random-scripts
This commit is contained in:
parent
5e3a91e2e4
commit
a8190f419f
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
mt-summit-corpora
|
||||
.idea
|
||||
kompendium_lem.tsv
|
||||
kompendium_lem.*
|
@ -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()
|
Loading…
Reference in New Issue
Block a user