sadiasahar

Results 9 comments of sadiasahar

Hi @urialon , I am also getting same preprocessing error. I tried to run Java process directly for a single file as you say and got the following output. main...

Thank you @urialon for the reply. The operating system I am using is Windows 11 but I am running the code in Google Colab, where Python version is ---- 3.7.14...

Yes, off course. The line is: ${PYTHON} /content/drive/MyDrive/code2seq-master/preprocess.py --train_data ${TRAIN_DATA_FILE} --test_data ${TEST_DATA_FILE} --val_data ${VAL_DATA_FILE} \ --max_contexts ${MAX_CONTEXTS} --max_data_contexts ${MAX_DATA_CONTEXTS} --subtoken_vocab_size ${SUBTOKEN_VOCAB_SIZE} \ --target_vocab_size ${TARGET_VOCAB_SIZE} --subtoken_histogram ${SOURCE_SUBTOKEN_HISTOGRAM} \ --node_histogram ${NODE_HISTOGRAM_FILE} --target_histogram...

My appology, I forgot to change the path of JavaExtractor folder assigned to the variable EXTRACTOR_JAR. Now it is Working. Thanks for the help.

Hi @urialon, I am using your technique in my research work. I want to split path into Right path and left path. Kindly guide me, how can I do this....

@urialon, thank you for the reply. I can explain it with an example. Suppose the path between node elements and true is: > (elements, Name↑ FieldAccess↑ Foreach↓ Block↓ IfStmt↓ Block↓...

When I preprocessed my data, I got the output > ['i', 'Nm0|Ls|For|VDE|Prim0', 'int'] The problem is, in the string > 'Nm0|Ls|For|VDE|Prim0' I am unable to locate common ancestor, that is...

@urialon, thank you so much. I tried as you suggested and got required output.