Package nl2sql.matcher

Examples of nl2sql.matcher.Attach


    // Hàm lấy tên cột tương ứng
    public GetAttribute(String parser, Database db, String value, ArrayList<String> Left, ArrayList<String> Right) throws Exception{
        this.v = value;
       
        int Index = Right.indexOf(value);
        Attach At = new Attach(parser);
        int eIndex = At.getAttach(Left, Index);
        //System.out.println(Right.get(eIndex));

        // Phải trừ ra những từ mà chắc chắn câu đã nhận ra
        String[] forbit = {"số báo danh", "mssv", "thí sinh", "giới tính", "ngành"};
        List<String> forbiden =  Arrays.asList(forbit);
View Full Code Here


            System.out.println("question: " + inputQuestion);
            System.out.println("parser tree: " + parser);
            String parsing = parser;
            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);
View Full Code Here

TOP

Related Classes of nl2sql.matcher.Attach

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.