Пример #1
0
from agreement_acceptor import FullGramSentence
import filenames

pvn = FullGramSentence(filenames.deps,
                       prop_train=0.1,
                       output_filename='output_log.txt',
                       len_after_verb=10)
pvn.pipeline(train=False,
             load=True,
             model="gru_fullGram.pkl",
             load_data=True,
             epochs=10,
             model_prefix='gru_fullGram',
             test_size=0,
             data_name='fullGram')
Пример #2
0
from agreement_acceptor import FullGramSentence
import filenames

pvn = FullGramSentence(filenames.deps,
                       prop_train=0.8,
                       output_filename='output_log.txt',
                       len_after_verb=10,
                       embedding_size=50,
                       hidden_dim=50)
pvn.pipeline(train=False,
             load=True,
             model="lstm_fullGram_100_50_emb.pkl",
             load_data=False,
             epochs=10,
             model_prefix='lstm_fullGram',
             test_size=7000,
             data_name='fullGram',
             test_external=True,
             load_external=True,
             external_file=filenames.external_file)
Пример #3
0
from agreement_acceptor import FullGramSentence
import filenames

pvn = FullGramSentence(filenames.deps,
                       prop_train=0.1,
                       output_filename='output_log.txt',
                       len_after_verb=10,
                       embedding_size=50,
                       hidden_dim=50)
pvn.pipeline(train=True,
             load_data=True,
             epochs=10,
             model_prefix='lstm_fullGram',
             test_size=7000,
             data_name='fullGram')
Пример #4
0
from agreement_acceptor import FullGramSentence
import filenames

pvn = FullGramSentence(filenames.deps, prop_train=0.8,hidden_dim=100,embedding_size=100, output_filename='output_log.txt', len_after_verb=10,embedding_size=50, hidden_dim = 50)
pvn.pipeline(train=True,load=False,model="lstm_fullGram_100.pkl", load_data=True, epochs=10, model_prefix='lstm_fullGram_100',test_size=7000, data_name='fullGram')