Commit 41549308 authored by pirapakaran's avatar pirapakaran
Browse files

Update README.md

parent 70c9c53f
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ What things you need to install and how to install them
```

### Installing
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install

```
- pip install tensorflow
@@ -59,8 +60,8 @@ Prerequisite for this step is the previous download of the concept-net-assertion
> Purpose: --dev | --train | --test
>
> Output is the file concept_graph_full
```
python src/graph_model/conceptnet2graph.py /path_to_unziped_conceptnet-assertions-5.6.0.csv_File
```python
python src/graph_model/conceptnet2graph.py /"path_to_unziped_conceptnet-assertions-5.6.0.csv_File"
```


@@ -70,11 +71,12 @@ 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

```python
python src/graph_model/make_sub_graph_server.py "inputfile" "graphpath" "outputpath" "--purpose" purpose 
```
python src/graph_model/make_sub_graph_server.py "inputfile" "graphpath" "outputpath" "--purpose" purpose <br>
e.g. python src/graph_model/make_sub_graph_server.py .\training_neu.txt .\concept_graph_full .\output --purpose train
```
Inputformat:
e.g. python src/graph_model/make_sub_graph_server.py .\training_neu.txt .\concept_graph_full .\output --purpose train <br> 

*Inputformat:*
~~~~
"unique_ID" + "\t" + "HumanNeed | None" + "\t" + "sentence" + "\t" + "concepts"
~~~~
@@ -88,7 +90,7 @@ Seperate sentences with newlines.
> Input: subgraphs and inputfile from output of step 2<br>
> Output: .txtfile with knowledgepaths for each sentence

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