Changeset 99

Show
Ignore:
Timestamp:
02/18/07 13:18:42 (2 years ago)
Author:
chris
Message:

Upgrade Emdros from 1.2.0pre80 to 1.2.0pre231 and WIVU database to latest version

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lex/trunk/.project

    r26 r99  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<projectDescription> 
    3         <name>lex</name> 
     3        <name>lex-new-emdros</name> 
    44        <comment></comment> 
    55        <projects> 
  • lex/trunk/.tomcatplugin

    r26 r99  
    88    <warLocation>/tmp/lex.war</warLocation> 
    99    <extraInfo></extraInfo> 
    10     <webPath>/lex</webPath> 
     10    <webPath>/lex-new</webPath> 
    1111</tomcatProjectProperties> 
  • lex/trunk/jsp/clause.jsp

    r89 r99  
    8181 
    8282        Map phrase_functions = emdros.getEnumerationConstants 
    83                 ("phrase_function_t",false); 
     83                ("phrase_function_e",false); 
    8484 
    8585        Map phrase_types = emdros.getEnumerationConstants 
    86                 ("phrase_type_t",false); 
     86                ("phrase_type_e",false); 
    8787                 
    8888        Map parts_of_speech = emdros.getEnumerationConstants 
    89                 ("psp_t",false); 
    90  
    91         Map verbal_stems = emdros.getEnumerationConstants 
    92                 ("verbal_stem_t",false); 
     89                ("part_of_speech_e",false); 
    9390 
    9491        if (request.getParameter("savearg") != null) 
     
    122119                " WHERE [clause self = "+selClauseId+ 
    123120                "       GET logical_struct_id, logical_structure "+ 
    124                 "        [phrase GET phrase_type, function, argument_name, "+ 
     121                "        [phrase GET phrase_type, phrase_function, argument_name, "+ 
    125122                "                    type_id, macrorole_number "+ 
    126                 "          [word GET lexeme, pdpsp, verbal_stem, verbal_tense, " + 
    127                 "                    wordnet_gloss, wordnet_synset, " + 
     123                "          [word GET lexeme, phrase_dependent_part_of_speech, " + 
     124                "                    tense, wordnet_gloss, wordnet_synset, " + 
    128125                "                    graphical_preformative, " + 
    129126                "                    graphical_locative, " + 
     
    189186         
    190187                                        String function_name = (String)( phrase_functions.get( 
    191                                                 phrase.getEMdFValue("function").toString()) 
     188                                                phrase.getEMdFValue("phrase_function").toString()) 
    192189                                        ); 
    193190         
     
    198195         
    199196                                                String psp = (String)( parts_of_speech.get( 
    200                                                         word.getEMdFValue("pdpsp").toString())  
     197                                                        word.getEMdFValue("phrase_dependent_part_of_speech").toString())  
    201198                                                ); 
    202199                                                 
     
    426423         
    427424                                String function_name = (String)( phrase_functions.get( 
    428                                         phrase.getEMdFValue("function").toString()) 
     425                                        phrase.getEMdFValue("phrase_function").toString()) 
    429426                                ); 
    430427 
     
    443440                                                String lexeme =  
    444441                                                        word.getEMdFValue("lexeme").getString(); 
    445                                                 String verbal_stem =  
    446                                                         word.getEMdFValue("verbal_stem").toString(); 
    447442                                                String part_of_speech = (String) 
    448                                                         parts_of_speech.get(word.getEMdFValue("pdpsp") 
     443                                                        parts_of_speech.get(word.getEMdFValue("phrase_dependent_part_of_speech") 
    449444                                                                .toString()); 
    450445                                                         
     
    728723                                                        } 
    729724                                                } 
    730                                                  
    731                                                 { 
    732                                                         Cell stemCell = new Cell(); 
    733                                                         cell.subcells.add(stemCell); 
    734                                                          
    735                                                         stemCell.html =  
    736                                                                 (String)( verbal_stems.get(verbal_stem) ); 
    737                                                         if (stemCell.html.equals("NA")) 
    738                                                                 stemCell.html = ""; 
    739                                                 } 
    740725                                        } 
    741726                                } 
     
    744729                                { 
    745730                                        Cell pCell    = new Cell(); 
    746                                         pCell.label   = phrase.getEMdFValue("function").toString(); 
     731                                        pCell.label   = phrase.getEMdFValue("phrase_function").toString(); 
    747732                                        pCell.columns = column - first_col; 
    748733                                        struct_row.addElement(pCell); 
     
    13041289%> 
    13051290 
    1306 <h2>Notes</h2
     1291<h3>Notes</h3
    13071292 
    13081293<% 
     
    14441429 
    14451430<hr> 
    1446 Book    <%= session.getAttribute("bookNum") %> 
    1447 Chapter <%= session.getAttribute("chapterNum") %> 
    1448 Verse   <%= session.getAttribute("verseNum") %> 
     1431        <%= session.getAttribute("book") %>, 
     1432Chapter <%= session.getAttribute("chapterNum") %>, 
     1433Verse   <%= session.getAttribute("verseNum") %>, 
    14491434Clause  <%= session.getAttribute("clauseId") %> 
    14501435</form> 
  • lex/trunk/jsp/dump.jsp

    r31 r99  
     1<% 
     2        response.setContentType("text/html; charset=UTF-8"); 
     3%> 
    14<%@ page import="java.util.Enumeration" %> 
    25<%@ page import="java.util.Hashtable" %> 
  • lex/trunk/jsp/navclause.jsp

    r69 r99  
    1414<% 
    1515 
    16         int selBookNum = 1; 
    17          
    18         { 
    19                 Integer sessionBookNum = (Integer)( session.getAttribute("bookNum") ); 
    20                 if (sessionBookNum != null)  
    21                 { 
    22                         selBookNum = sessionBookNum.intValue(); 
    23                 } 
    24         } 
    25          
    26         try  
     16        String selBook = "Genesis"; 
     17         
     18        { 
     19                String selBook2 = (String)( session.getAttribute("book") ); 
     20                if (selBook2 != null)  
     21                { 
     22                        selBook = selBook2; 
     23                } 
     24        } 
     25         
    2726        {  
    28                 int newBookNum = Integer.parseInt(request.getParameter("book")); 
    29                 selBookNum = newBookNum; 
     27                String selBook2 = request.getParameter("book"); 
     28                if (selBook2 != null)  
     29                { 
     30                        selBook = selBook2; 
     31                } 
    3032        }  
    31         catch (Exception e) { /* ignore it and use default book */ } 
    3233         
    3334        { 
     
    5556                Table featureTable = emdros.getTable 
    5657                ( 
    57                         "GET FEATURES book, book_number FROM OBJECTS WITH ID_DS = " +  
     58                        "GET FEATURES book FROM OBJECTS WITH ID_DS = " +  
    5859                        id_dList.toString() + " [book]" 
    5960                ); 
     
    6364        { 
    6465                TableRow row = rows.next(); 
    65                         int thisBookNum = Integer.parseInt(row.getColumn(3));  
    66                          
    67                         if (thisBookNum == selBookNum
     66                        String thisBook = row.getColumn(2); 
     67                         
     68                        if (thisBook.equals(selBook)
    6869                        { 
    6970                                foundBook = true; 
     
    8283                        %> 
    8384                        <option <%= 
    84                                 thisBookNum == selBookNum ? "SELECTED" : "" 
     85                                thisBook.equals(selBook) ? "SELECTED" : "" 
    8586                        %> value="<%=  
    86                                 row.getColumn(3)  
     87                                row.getColumn(2)  
    8788                        %>"><%=  
    8889                                row.getColumn(2) 
     
    9293                if (foundBook) 
    9394                { 
    94                         session.setAttribute("bookNum", new Integer(selBookNum)); 
     95                        session.setAttribute("book", selBook); 
    9596                } 
    9697        } 
     
    211212                        emdros.getMonadSet(userTextAccess, min_m, max_m) + 
    212213                        " WHERE [verse "+ 
    213                         "        book_number = "+selBookNum+" AND "+ 
    214                         "        chapter     = "+selChapNum+ 
     214                        "        book    = "+selBook+" AND "+ 
     215                        "        chapter = "+selChapNum+ 
    215216                        "        GET verse, verse_label]" 
    216217                ); 
     
    276277                        emdros.getMonadSet(userTextAccess, min_m, max_m) + 
    277278                        " WHERE [verse "+ 
    278                         "       book_number = "+selBookNum+" AND "+ 
    279                         "       chapter     = "+selChapNum+" AND "+ 
    280                         "       verse       = "+selVerseNum+ 
     279                        "       book    = "+selBook+" AND "+ 
     280                        "       chapter = "+selChapNum+" AND "+ 
     281                        "       verse   = "+selVerseNum+ 
    281282                        "       GET bart_gloss "+ 
    282283                        "       [clause "+ 
  • lex/trunk/jsp/parse.jsp

    r97 r99  
    248248<% 
    249249 
    250         Map phrase_functions = emdros.getEnumerationConstants 
    251                 ("phrase_function_t",false); 
    252  
    253250        Map phrase_types = emdros.getEnumerationConstants 
    254                 ("phrase_type_t",false); 
    255                  
    256         Map verbal_stems = emdros.getEnumerationConstants 
    257                 ("verbal_stem_t",false); 
    258  
     251                ("phrase_type_e",false); 
     252         
    259253        OntologyDb ontology = Lex.getOntologyDb(); 
    260254 
     
    277271                " WHERE [clause self = "+selClauseId+ 
    278272                "       GET logical_struct_id, logical_structure "+ 
    279                 "        [phrase GET phrase_type, function, argument_name, "+ 
     273                "        [phrase GET phrase_type, argument_name, "+ 
    280274                "                    type_id, macrorole_number "+ 
    281                 "          [word GET lexeme, pdpsp, verbal_stem, verbal_tense, "
    282                 "                    wordnet_gloss, wordnet_synset, " + 
     275                "          [word GET lexeme, phrase_dependent_part_of_speech, "
     276                "                    tense, wordnet_gloss, wordnet_synset, " + 
    283277                "                    graphical_preformative, " + 
    284278                "                    graphical_locative, " + 
     
    330324                                        MatchedObject phrase = 
    331325                                                phrases.next().const_iterator().next(); 
    332          
    333                                         String function_name = (String)( phrase_functions.get( 
    334                                                 phrase.getEMdFValue("function").toString()) 
    335                                         ); 
    336326         
    337327                                        SheafConstIterator words = phrase.getSheaf().const_iterator(); 
  • lex/trunk/src/com/qwirx/lex/emdros/EmdrosChange.java

    r26 r99  
    1919 
    2020import jemdros.Table; 
     21import jemdros.TableException; 
    2122import jemdros.TableIterator; 
    2223import jemdros.TableRow; 
     
    186187 
    187188        private void captureValues(boolean createRowChangeLogs, boolean storeAsNewValue)  
    188         throws SQLException, DatabaseException  
     189        throws SQLException, DatabaseException, TableException 
    189190    { 
    190191                /* 
     
    327328         
    328329        private void captureOldValues()  
    329         throws DatabaseException, SQLException  
     330        throws DatabaseException, SQLException, TableException 
    330331    { 
    331332                if (changeType != UPDATE && changeType != DELETE) 
     
    337338         
    338339        private void captureNewValues()  
    339         throws SQLException, DatabaseException  
     340        throws SQLException, DatabaseException, TableException 
    340341        { 
    341342                if (changeType != CREATE && changeType != UPDATE) 
     
    516517                        throw new DatabaseException(e, sb.toString()); 
    517518                } 
    518          
     519        catch (TableException e)  
     520        { 
     521            m_log.error(sb.toString(), e); 
     522            throw new DatabaseException(e, sb.toString()); 
     523        }         
    519524        } 
    520525         
  • lex/trunk/src/com/qwirx/lex/emdros/EmdrosDatabase.java

    r26 r99  
    1414import java.util.Map; 
    1515 
     16import jemdros.BadMonadsException; 
     17import jemdros.EMdFDBDBError; 
    1618import jemdros.EmdrosEnv; 
     19import jemdros.EmdrosException; 
    1720import jemdros.MatchedObject; 
    1821import jemdros.MonadSetElement; 
     
    2023import jemdros.Sheaf; 
    2124import jemdros.Table; 
     25import jemdros.TableException; 
    2226import jemdros.TableIterator; 
    2327import jemdros.TableRow; 
     
    5963                boolean[] bCompilerResult = new boolean[1]; 
    6064 
    61                 boolean bDBResult = env.executeString(query, bCompilerResult, false, false); 
     65        boolean bDBResult = false; 
     66         
     67        try 
     68        { 
     69            bDBResult = env.executeString(query, bCompilerResult, false, false); 
     70        } 
     71        catch (TableException e) 
     72        { 
     73            throw new DatabaseException(e, query); 
     74        } 
     75        catch (BadMonadsException e) 
     76        { 
     77            throw new DatabaseException(e, query); 
     78        } 
     79        catch (EMdFDBDBError e) 
     80        { 
     81            throw new DatabaseException(e, query); 
     82        } 
     83        catch (EmdrosException e) 
     84        { 
     85            throw new DatabaseException(e, query); 
     86        } 
    6287         
    6388                if (!bDBResult) { 
     
    104129    { 
    105130                Table min_m_table = getTable("SELECT MIN_M"); 
    106                 return Integer.parseInt( 
    107                         min_m_table.iterator().next().iterator().next() 
     131        try 
     132        { 
     133            return Integer.parseInt 
     134            ( 
     135                min_m_table.iterator().next().iterator().next() 
    108136                        ); 
     137        } 
     138        catch (TableException e) 
     139        { 
     140            throw new DatabaseException(e, "SELECT MIN_M"); 
     141        } 
    109142        } 
    110143 
     
    112145    { 
    113146                Table max_m_table = getTable("SELECT MAX_M"); 
    114                 return Integer.parseInt( 
    115                         max_m_table.iterator().next().iterator().next() 
     147         
     148        try 
     149        { 
     150            return Integer.parseInt 
     151            ( 
     152                max_m_table.iterator().next().iterator().next() 
    116153                        ); 
     154        } 
     155        catch (TableException e) 
     156        { 
     157            throw new DatabaseException(e, "SELECT MAX_M"); 
     158        } 
    117159        } 
    118160         
     
    125167                 
    126168                TableIterator rows = table.iterator(); 
    127                 while (rows.hasNext()) { 
    128                         TableRow row = rows.next(); 
    129                          
    130                         String name   = row.getColumn(1); 
    131                         String number = row.getColumn(2); 
    132                          
    133                         if (byName) 
    134                                 result.put(name, number); 
    135                         else 
    136                                 result.put(number, name); 
    137                 } 
    138                  
     169         
     170        try  
     171        { 
     172                while (rows.hasNext())  
     173            { 
     174                        TableRow row = rows.next(); 
     175                         
     176                        String name   = row.getColumn(1); 
     177                        String number = row.getColumn(2); 
     178                         
     179                        if (byName) 
     180                                result.put(name, number); 
     181                        else 
     182                                result.put(number, name); 
     183                } 
     184        } 
     185        catch (TableException e) 
     186        { 
     187            throw new DatabaseException(e,  
     188                "SELECT ENUMERATION CONSTANTS FROM "+type); 
     189        } 
     190         
    139191                return result; 
    140192        } 
     
    148200        Table table = getTable("MONAD SET CALCULATION "+query); 
    149201        TableIterator rows = table.iterator(); 
    150          
    151         while (rows.hasNext())  
    152         { 
    153             TableRow row = rows.next(); 
    154              
    155             String min = row.getColumn(1); 
    156             String max = row.getColumn(2); 
    157              
    158             result.append(min+"-"+max); 
    159             if (rows.hasNext()) 
    160             { 
    161                 result.append(","); 
    162             } 
     202 
     203        try 
     204        { 
     205            while (rows.hasNext())  
     206            { 
     207                TableRow row = rows.next(); 
     208                 
     209                String min = row.getColumn(1); 
     210                String max = row.getColumn(2); 
     211                 
     212                result.append(min+"-"+max); 
     213                if (rows.hasNext()) 
     214                { 
     215                    result.append(","); 
     216                } 
     217            } 
     218        } 
     219        catch (TableException e) 
     220        { 
     221            throw new DatabaseException(e, "MONAD SET CALCULATION "+query); 
    163222        } 
    164223         
     
    188247            } 
    189248        } 
    190         catch (SQLException e) 
     249        catch (DatabaseException e) 
    191250        { 
    192251            throw new DatabaseException("Failed to determine object access", 
     
    205264                TableIterator features = 
    206265                        getTable("SELECT FEATURES FROM ["+objectType+"]").iterator(); 
    207                          
    208                 while (features.hasNext())  
    209         { 
    210                         TableRow tr = features.next(); 
    211                         String name = tr.getColumn(1); 
    212                         if (name.equals(feature)) 
    213             { 
    214                             return; 
    215             } 
    216                 } 
    217                  
     266 
     267        try 
     268        { 
     269                while (features.hasNext())  
     270            { 
     271                        TableRow tr = features.next(); 
     272                        String name = tr.getColumn(1); 
     273                        if (name.equals(feature)) 
     274                { 
     275                            return; 
     276                } 
     277                } 
     278        } 
     279        catch (TableException e) 
     280        { 
     281            throw new DatabaseException(e, "SELECT FEATURES FROM ["+objectType+"]"); 
     282        } 
     283 
    218284                executeDirect("UPDATE OBJECT TYPE "+ 
    219285                        "["+objectType+" ADD "+feature+" : "+featureType+";]"); 
     
    227293        TableIterator features = 
    228294            getTable("SELECT OBJECT TYPES").iterator(); 
    229              
    230         while (features.hasNext())  
    231         { 
    232             TableRow tr = features.next(); 
    233             String name = tr.getColumn(1); 
    234             if (name.equals(objectType)) 
    235             { 
    236                 haveType = true; 
    237                 break; 
    238             } 
     295         
     296        try 
     297        { 
     298            while (features.hasNext())  
     299            { 
     300                TableRow tr = features.next(); 
     301                String name = tr.getColumn(1); 
     302                if (name.equals(objectType)) 
     303                { 
     304                    haveType = true; 
     305                    break; 
     306                } 
     307            } 
     308        } 
     309        catch (TableException e) 
     310        { 
     311            throw new DatabaseException(e, "SELECT OBJECT TYPES"); 
    239312        } 
    240313         
     
    288361 
    289362    public boolean canWriteTo(MatchedObject object) 
    290     throws SQLException 
     363    throws DatabaseException 
    291364    { 
    292365        SetOfMonads monads = new SetOfMonads(); 
     
    296369 
    297370    public boolean canWriteTo(String objectType, int objectId) 
    298     throws DatabaseException, SQLException 
     371    throws DatabaseException 
    299372    { 
    300373        return canWriteTo(objectType, new int[]{objectId}); 
     
    302375     
    303376    public boolean canWriteTo(String objectType, int[] objectIds) 
    304     throws DatabaseException, SQLException 
     377    throws DatabaseException 
    305378    { 
    306379        String query = "GET MONADS FROM OBJECTS WITH ID_DS = "; 
     
    320393        SetOfMonads monads = new SetOfMonads(); 
    321394         
    322         while (rows.hasNext())  
    323         { 
    324             TableRow row = rows.next(); 
    325             int first = Integer.parseInt(row.getColumn(2));  
    326             int last  = Integer.parseInt(row.getColumn(3)); 
    327             monads.add(first, last); 
     395        try 
     396        { 
     397            while (rows.hasNext())  
     398            { 
     399                TableRow row = rows.next(); 
     400                int first = Integer.parseInt(row.getColumn(2));  
     401                int last  = Integer.parseInt(row.getColumn(3)); 
     402                monads.add(first, last); 
     403            } 
     404        } 
     405        catch (TableException e) 
     406        { 
     407            throw new DatabaseException(e, query); 
    328408        } 
    329409         
     
    332412 
    333413    private boolean canWriteTo(SetOfMonads monads) 
    334     throws SQLException 
    335     { 
    336         PreparedStatement stmt = conn.prepareStatement 
    337         ( 
    338             "SELECT Monad_First, Monad_Last " + 
    339             "FROM   user_text_access " + 
    340             "WHERE  (User_Name = ? OR User_Name = 'anonymous') " + 
    341             "AND    Write_Access = '1'" 
    342         ); 
    343         stmt.setString(1, username); 
    344          
    345         ResultSet rs = stmt.executeQuery(); 
    346          
    347         while (rs.next())  
    348         { 
    349             int first = rs.getInt(1); 
    350             int last  = rs.getInt(2); 
    351             MonadSetElement mse = new MonadSetElement(first, last); 
    352             monads.removeMSE(mse); 
    353         } 
    354          
    355         stmt.close(); 
    356         rs.close(); 
    357  
     414    throws DatabaseException 
     415    { 
     416        PreparedStatement stmt = null; 
     417        ResultSet rs = null; 
     418         
     419        String query = "SELECT Monad_First, Monad_Last " + 
     420        "FROM   user_text_access " + 
     421        "WHERE  (User_Name = ? OR User_Name = 'anonymous') " + 
     422        "AND    Write_Access = '1'"; 
     423         
     424        try 
     425        { 
     426            stmt = conn.prepareStatement(query); 
     427            stmt.setString(1, username); 
     428            rs = stmt.executeQuery(); 
     429        } 
     430        catch (SQLException e) 
     431        { 
     432            throw new DatabaseException(e, query); 
     433        } 
     434         
     435        int first = 0; 
     436        int last  = 0; 
     437 
     438        try 
     439        { 
     440            while (rs.next())  
     441            { 
     442                first = rs.getInt(1); 
     443                last  = rs.getInt(2); 
     444                MonadSetElement mse = new MonadSetElement(first, last); 
     445                monads.removeMSE(mse); 
     446            } 
     447 
     448            stmt.close(); 
     449            rs.close(); 
     450        } 
     451        catch (SQLException e) 
     452        { 
     453            throw new DatabaseException(e, "constructing monad set "+ 
     454                first+"-"+last); 
     455        } 
     456        catch (BadMonadsException e) 
     457        { 
     458            throw new DatabaseException(e, "constructing monad set "+ 
     459                first+"-"+last); 
     460        } 
     461         
    358462        return monads.isEmpty(); 
    359463    } 
  • lex/trunk/src/com/qwirx/lex/Lex.java

    r90 r99  
    6363                EmdrosEnv env = new EmdrosEnv(eOutputKind.kOKConsole,  
    6464                        eCharsets.kCSISO_8859_1, "localhost", "emdf", "changeme",  
    65                         "wihebrew1202"); 
     65                        "wihebrew"); 
    6666 
    6767                if (!env.connectionOk())  
  • lex/trunk/src/com/qwirx/lex/morph/HebrewMorphemeGenerator.java

    r91 r99  
    1717    private MorphemeHandler m_Handler; 
    1818    private static Map m_Persons, m_Genders, m_Numbers, m_States,  
    19         m_PartsOfSpeech, m_Tenses, m_Stems
     19        m_PartsOfSpeech, m_Tenses
    2020    private OntologyDb m_Ontology; 
    2121     
     
    2828        if (m_Persons == null) 
    2929        { 
    30             m_Persons = emdros.getEnumerationConstants("person_t", false); 
     30            m_Persons = emdros.getEnumerationConstants("person_e", false); 
    3131        } 
    3232         
    3333        if (m_Genders == null) 
    3434        { 
    35             m_Genders = emdros.getEnumerationConstants("gender_t", false); 
     35            m_Genders = emdros.getEnumerationConstants("gender_e", false); 
    3636        } 
    3737         
    3838        if (m_Numbers == null) 
    3939        { 
    40             m_Numbers = emdros.getEnumerationConstants("number_t", false); 
     40            m_Numbers = emdros.getEnumerationConstants("number_e", false); 
    4141        } 
    4242         
    4343        if (m_States == null) 
    4444        { 
    45             m_States = emdros.getEnumerationConstants("state_t", false); 
     45            m_States = emdros.getEnumerationConstants("state_e", false); 
    4646        } 
    4747         
    4848        if (m_PartsOfSpeech == null) 
    4949        { 
    50             m_PartsOfSpeech = emdros.getEnumerationConstants("psp_t", false); 
     50            m_PartsOfSpeech = emdros.getEnumerationConstants("part_of_speech_e", 
     51                false); 
    5152        } 
    5253 
    5354        if (m_Tenses == null) 
    5455        { 
    55             m_Tenses = emdros.getEnumerationConstants("verbal_tense_t", false); 
    56         } 
    57  
     56            m_Tenses = emdros.getEnumerationConstants("tense_e", false); 
     57        } 
     58 
     59        /* 
    5860        if (m_Stems == null) 
    5961        { 
     
    6163             
    6264        } 
     65        */ 
    6366 
    6467        if (m_Ontology == null) 
     
    7679         
    7780        String psp = (String)( m_PartsOfSpeech.get( 
    78             word.getEMdFValue("pdpsp").toString())  
     81            word.getEMdFValue("phrase_dependent_part_of_speech").toString())  
    7982        ); 
    8083         
    8184        String person = (String)m_Persons.get( 
    8285            word.getEMdFValue("person").toString()); 
    83         if      (person.equals("pers_first"))  person = "1"; 
    84         else if (person.equals("pers_second")) person = "2"; 
    85         else if (person.equals("pers_third"))  person = "3"; 
     86        if      (person.equals("first_person"))  person = "1"; 
     87        else if (person.equals("second_person")) person = "2"; 
     88        else if (person.equals("third_person"))  person = "3"; 
    8689         
    8790        String gender = ((String)m_Genders.get( 
     
    119122        if (psp.equals("verb")) 
    120123        { 
    121             String tenseNum = word.getEMdFValue("verbal_tense").toString(); 
     124            String tenseNum = word.getEMdFValue("tense").toString(); 
    122125            m_Handler.convert("graphical_preformative", false, 
    123126                (String)m_Tenses.get(tenseNum), "V/TNS"); 
    124127             
    125             String stemNum = word.getEMdFValue("verbal_stem").toString(); 
     128            // String stemNum = word.getEMdFValue("verbal_stem").toString(); 
    126129            m_Handler.convert("graphical_root_formation", false, 
    127                 (String)m_Stems.get(stemNum), "V/STM"); 
     130                "(stem)", "V/STM"); 
    128131             
    129132            m_Handler.convert("graphical_lexeme", false,  
     
    196199                type = "PRON/PERS"; 
    197200            } 
     201            else if (psp.equals("pronoun")) 
     202            { 
     203                type = "PRON"; 
     204            } 
    198205            else if (psp.equals("preposition")) 
    199206            {