protected BaseCorpus(string name) { CorpusName = name; Py.ExecuteScript($"from nltk.corpus import {name}"); CorpusObj = Py.GetVariable(name); }
public ConditionalFreqDist(string pythonExpresion) { if (pythonExpresion != null) { dynamic expr = Py.ExecuteScript(pythonExpresion); PyObject = CreateNltkObject(nameof(ConditionalFreqDist), expr); } }
static Tag() { Py.ImportModule("nltk.tag"); Py.ExecuteScript($"from nltk.tag import str2tuple"); }