0

데이터베이스에 포함 된 트위터 설명에 tokenize를 적용하고 스톱 워드 필터를 적용하고 프로세스 문서에는 아무런 영향이 없습니다. 내가 도대체 ​​뭘 잘못하고있는 겁니까?RapidMiner를 사용하여 트윗 DB에서 Tokenize 및 스톱 워드가 작동하지 않습니다.

내 목표는 이러한 필터를 적용하는 것이지만 단일 단어 벡터 대신 행에 주석을 유지하는 것입니다.

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<process version="5.3.015"> 
    <context> 
    <input/> 
    <output/> 
    <macros/> 
    </context> 
    <operator activated="true" class="process" compatibility="5.3.015" expanded="true" name="Process"> 
    <process expanded="true"> 
     <operator activated="true" class="read_database" compatibility="5.3.015" expanded="true" height="60" name="Server Connection (2)" width="90" x="45" y="30"> 
     <parameter key="connection" value="sqlserver2014"/> 
     <parameter key="query" value="select top 60 tweetid,content from [Tweets General]"/> 
     <enumeration key="parameters"/> 
     </operator> 
     <operator activated="true" class="text:data_to_documents" compatibility="5.3.002" expanded="true" height="60" name="Data to Documents" width="90" x="246" y="30"> 
     <parameter key="select_attributes_and_weights" value="true"/> 
     <list key="specify_weights"/> 
     </operator> 
     <operator activated="true" class="text:process_documents" compatibility="5.3.002" expanded="true" height="94" name="Process Documents" width="90" x="447" y="30"> 
     <process expanded="true"> 
      <operator activated="true" class="text:tokenize" compatibility="5.3.002" expanded="true" height="60" name="Tokenize (3)" width="90" x="246" y="75"/> 
      <connect from_port="document" to_op="Tokenize (3)" to_port="document"/> 
      <connect from_op="Tokenize (3)" 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_op="Server Connection (2)" from_port="output" to_op="Data to Documents" to_port="example set"/> 
     <connect from_op="Data to Documents" from_port="documents" to_op="Process Documents" to_port="documents 1"/> 
     <connect from_op="Process Documents" from_port="example set" to_port="result 1"/> 
     <portSpacing port="source_input 1" spacing="0"/> 
     <portSpacing port="sink_result 1" spacing="0"/> 
     <portSpacing port="sink_result 2" spacing="0"/> 
    </process> 
    </operator> 
</process> 

답변

0

당신은 Data to Documents 운영자 전에 text 형식으로 형 공칭의 속성을 변환해야합니다. 운영자 Nominal to Text이이를 수행합니다. 또한 select attributes and weightsData to Documents에서 false로 설정해야합니다. 설정을 모두 선택 취소 할 것이기 때문입니다.