This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import execnet | |
def token_converter(text): | |
gw = execnet.makegateway("popen//python=python2.7") | |
channel = gw.remote_exec( | |
"""import morfeusz2 as morf | |
import gc | |
def converter(text): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool Saper::validCommand(const std::string& command) | |
{ | |
//Sprawdź czy input ma maksymalnie 3 znaki (worst case: A7^) | |
if (command.size() > 3) | |
{ | |
std::cout << "Wrong format of field\n"; | |
return false; | |
} |