Package nl2sql.lexicon

Examples of nl2sql.lexicon.Database


   

   
   
    public static void main(String[] args) throws Exception {
        Database db = new Database("đại học công nghệ");
        //System.out.println(attach("19", "điểm", db));
        //System.out.println(TokenVn_ann);
    }
View Full Code Here


   
    public QuestionWordAction(String _question, LinguisticComponent _chunk, ArrayList<String> NewLeft, ArrayList<String> NewRight){
        questionType qT = new questionType(_question, _chunk);
        int qType = qT.identifyType();
       
        Database db;
        try {
            db = new Database("đại học công nghệ");
            for (int i = 0; i < NewRight.size(); i++) {
                if (db.attribute.contains(NewRight.get(i))) {
                    ColLeft.add(NewLeft.get(i));
                    ColRight.add(NewRight.get(i));
                }
View Full Code Here

            try {
                if(db == null){
                    At = new Attach(parsing);
                    st = new Stopword();
                    hs = st.getStopWord();
                    db = new Database("đại học công nghệ");
                }
                String ambiguity = MarkCorrection.IdentifyColumn(amb);
                outputString = Process(parsing, inputQuestion, chunk, ambiguity);
                if(outputString != null && db!= null){
                    outputResult = db.ExecuteQuery(outputString);
View Full Code Here

TOP

Related Classes of nl2sql.lexicon.Database

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.