Ejemplo n.º 1
0
 /// <summary>
 ///  Annotation with SUTime
 /// </summary>
 public ScenarioAnnotator(IEmbeddingNetwork net)
 {
     //词向量模型
     _net = net;
     //annotate properites
     _props = new java.util.Properties();
     //refrenece https://stanfordnlp.github.io/CoreNLP/annotators.html
     _props.setProperty("annotators",
                        //tokenize https://stanfordnlp.github.io/CoreNLP/tokenize.html
                        "tokenize, " +
                        //https://stanfordnlp.github.io/CoreNLP/cleanxml.html
                        //"cleanxml, " +
                        //ssplit https://stanfordnlp.github.io/CoreNLP/ssplit.html
                        "ssplit, " +
                        //part of speech https://stanfordnlp.github.io/CoreNLP/pos.html
                        "pos, " +
                        //lemma https://stanfordnlp.github.io/CoreNLP/lemma.html
                        "lemma, " +
                        //named entity recongnition https://stanfordnlp.github.io/CoreNLP/ner.html
                        "ner, " +
                        //depparse https://stanfordnlp.github.io/CoreNLP/parse.html
                        "depparse, " +
                        //Open Information Extraction https://stanfordnlp.github.io/CoreNLP/openie.html
                        "openie");
 }
Ejemplo n.º 2
0
 public Scenario(IEmbeddingNetwork net, string id = null)
 {
     Name = id;
     _net = net;
     //
     _factors.Add(EShip);
     _factors.Add(HOlislick);
     _factors.Add(HCrudeOil);
 }