Commit 5376445a authored by pirapakaran's avatar pirapakaran
Browse files

Update README.md

parent 134da5d1
Loading
Loading
Loading
Loading
+17 −9
Original line number Diff line number Diff line
@@ -53,9 +53,8 @@ To work, we use the steps provided by Debjit Paul from Ranking and Selecting Mul

### *Step 1:* Construct ConceptNet into a graph
Prerequisite for this step is the previous download of the concept-net-assertions-5.6.0.csz.gz.
> Inputfile: path to .txtfile of train and testdata
> Graphpath: Path to constructed Concepts concept_graph_full <br>
> Outputpath: Path to (empty) File, purpose written behind as _[purpose]
> Inputfile: path to unziped conceptnet-assertions-5.6.0.csv
>
> Purpose: --dev | --train | --test
>
> Output is the file concept_graph_full
@@ -67,8 +66,15 @@ python src/graph_model/conceptnet2graph.py /"path_to_unziped_conceptnet-assertio
### *Step 2:* Construct subgraph per sentence for for train- test files

In this step we construct the subgraph for each sentence. <br>
> Input: ConceptNet Graph, Data for train/test <br>
> Output: directory with files for each sentence containing subgraphs
> Input: 
>> Inputfile: Path to train or test data <br>
>> Graphpath path to ConceptNet Graph 
>
> Output: 
>> Outputpath: path to folder where output will be saved <br>
>> Output: directory with files for each sentence containing subgraphs
>
> Purpose: --dev | --train | --test

```python
python src/graph_model/make_sub_graph_server.py "inputfile" "graphpath" "outputpath" "--purpose" purpose 
@@ -83,11 +89,13 @@ Seperate sentences with newlines.


### *Step 3:* Extracting relevant knowledge paths from subgraphs
> Inputpath: path to inputfile from step 2 <br>
> Outputpath: path to txt.file where extracted knowledgepaths can be saved <br>
> Input
>> Inputpath: path to inputfile from step 2 <br>
>> Input: subgraphs and inputfile from output of step 2 <br>
>
> Input: subgraphs and inputfile from output of step 2<br>
> Output: .txtfile with knowledgepaths for each sentence
> Output
>> Outputpath: path to txt.file where extracted knowledgepaths can be saved <br>
>> Output: .txtfile with knowledgepaths for each sentence

```python
python src/graph_model/extract_path3.py