Options

open wordnet error

sukhsukh Member Posts: 43 Contributor II
edited November 2018 in Help
Respected Sir,

i am working with sentiment analysis. there is an error in open wordnet dictionary, the code is given below:

<CODE>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="7.0.000">
 <context>
   <input/>
   <output/>
   <macros/>
 </context>
 <operator activated="true" class="process" compatibility="7.0.000" expanded="true" name="Process">
   <process expanded="true">
     <operator activated="true" class="text:process_document_from_file" compatibility="6.5.000" expanded="true" height="82" name="Process Documents from Files" width="90" x="45" y="34">
       <list key="text_directories">
         <parameter key="neg" value="C:\Users\admin\Desktop\p1\neg"/>
         <parameter key="pos" value="C:\Users\admin\Desktop\p1\pos"/>
       </list>
       <process expanded="true">
         <operator activated="true" class="text:tokenize" compatibility="6.5.000" expanded="true" height="68" name="Tokenize" width="90" x="45" y="34"/>
         <operator activated="true" class="wordnet:open_wordnet_dictionary" compatibility="5.3.000" expanded="true" height="68" name="Open WordNet Dictionary" width="90" x="112" y="136">
           <parameter key="directory" value="C:\Users\admin\Desktop\wordnet\WordNet-3.0\dict"/>
         </operator>
         <operator activated="true" class="wordnet:find_sentiment_wordnet" compatibility="5.3.000" expanded="true" height="82" name="Extract Sentiment (English)" width="90" x="246" y="34"/>
         <connect from_port="document" to_op="Tokenize" to_port="document"/>
         <connect from_op="Tokenize" from_port="document" to_op="Extract Sentiment (English)" to_port="document"/>
         <connect from_op="Open WordNet Dictionary" from_port="dictionary" to_op="Extract Sentiment (English)" to_port="dictionary"/>
         <connect from_op="Extract Sentiment (English)" from_port="document" to_port="document 1"/>
         <portSpacing port="source_document" spacing="0"/>
         <portSpacing port="sink_document 1" spacing="0"/>
         <portSpacing port="sink_document 2" spacing="0"/>
       </process>
     </operator>
     <connect from_port="input 1" to_op="Process Documents from Files" to_port="word list"/>
     <connect from_op="Process Documents from Files" from_port="example set" to_port="result 1"/>
     <portSpacing port="source_input 1" spacing="0"/>
     <portSpacing port="source_input 2" spacing="0"/>
     <portSpacing port="sink_result 1" spacing="0"/>
     <portSpacing port="sink_result 2" spacing="0"/>
   </process>
 </operator>
</process>

</code>
Thanks and Regards:
Sukh
Tagged:
Sign In or Register to comment.