topl0305

Results 7 comments of topl0305

Addendum. For crying out loud, why someone needs to use Temp dirs in OSes? Modified stanza/utils/conll.py method write_doc2conll() this code ``` with open(filename, mode, encoding=encoding) as outfile: outfile.write("{:C}\n\n".format(doc)) ``` into...

There is allways a sense but not profit. Important part of your suggestion: You can now install everything you need to run WSL with a single command. Open PowerShell or...

Maybe the last update. The culprit was stanza/utils/training/run_tokenizer.py Modified these variables to: ``` train_pred = f"{tokenize_dir}/{short_name}.train.pred.conllu" dev_pred = f"{tokenize_dir}/{short_name}.dev.pred.conllu" test_pred = f"{tokenize_dir}/{short_name}.test.pred.conllu" ``` And voila ``` 2025-01-21 09:51:57 INFO: lt_alksnis:...

Good to know. But I think, I also found simple solution if you want to use temporary files. - In stanza-train directory we need to create new "temp" directory. -...

Finally found culprit. Check this piece of code: ``` import tempfile with tempfile.NamedTemporaryFile() as tmp: print(f'File - {tmp.name}') f = open(tmp.name, 'w') f.write('test') f.close() File - C:\Users\T2EEC~1.PLA\AppData\Local\Temp\tmp4u1kwsht Traceback (most recent...

> It is the point of tmp files to be deleted. > > Wysłano z programu Outlook dla systemu Android > […](#) Did you read [documentation](https://docs.python.org/3/library/tempfile.html#tempfile.NamedTemporaryFile) how it works on...

Very interesting. Used online tool to test delete parameter. The code is below. If delete parameter is set to False, then after with statement the file is still available, but...