Skip to content

Commit 48515a5

Browse files
committed
[Update] Update README
1 parent 9de918e commit 48515a5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ python script/interactivate.py --model data/models/20180416-acc9d06d.mdl
9696

9797
Then you will drop into an interactive session. It looks like:
9898

99-
```python
99+
```
100100
* Interactive Module *
101101
102102
* Repo: Mnemonic Reader (https://github.com/HKUST-KnowComp/MnemonicReader)
@@ -106,15 +106,15 @@ Then you will drop into an interactive session. It looks like:
106106
>>> process(document, question, candidates=None, top_n=1)
107107
>>> usage()
108108
109-
>>> text = "Mary had a little lamb, whose fleece was white as snow. And everywhere that Mary went the lamb was sure to go."
110-
>>> question = "What color is Mary's lamb?"
109+
>>> text="Architecturally, the school has a Catholic character. Atop the Main Building's gold dome is a golden statue of the Virgin Mary. Immediately in front of the Main Building and facing it, is a copper statue of Christ with arms upraised with the legend \"Venite Ad Me Omnes\". Next to the Main Building is the Basilica of the Sacred Heart. Immediately behind the basilica is the Grotto, a Marian place of prayer and reflection. It is a replica of the grotto at Lourdes, France where the Virgin Mary reputedly appeared to Saint Bernadette Soubirous in 1858. At the end of the main drive (and in a direct line that connects through 3 statues and the Gold Dome), is a simple, modern stone statue of Mary."
110+
>>> question = "To whom did the Virgin Mary allegedly appear in 1858 in Lourdes France?"
111111
>>> process(text, question)
112112
113-
+------+-------+---------+
114-
| Rank | Span | Score |
115-
+------+-------+---------+
116-
| 1 | white | 0.78002 |
117-
+------+-------+---------+
113+
+------+----------------------------+-----------+
114+
| Rank | Span | Score |
115+
+------+----------------------------+-----------+
116+
| 1 | Saint Bernadette Soubirous | 0.9875301 |
117+
+------+----------------------------+-----------+
118118
```
119119

120120
### More parameters

script/interactive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright 2018-present, Xin Liu and HKUST-KnowComp.
2+
# Copyright 2018-present, HKUST-KnowComp.
33
# All rights reserved.
44
#
55
# This source code is licensed under the license found in the
66
# LICENSE file in the root directory of this source tree.
7-
"""A script to run the WRMCQA reader model interactively."""
7+
"""A script to run the reader model interactively."""
88

99
import sys
1010
sys.path.append('.')

script/train.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env python3
2-
# Copyright 2018-present, Xin Liu and HKUST-KnowComp.
2+
# Copyright 2018-present, HKUST-KnowComp.
33
# All rights reserved.
44
#
55
# This source code is licensed under the license found in the
66
# LICENSE file in the root directory of this source tree.
7-
"""Main WRMCQA reader training script."""
7+
"""Main reader training script."""
88

99
import sys
1010
sys.path.append('.')

0 commit comments

Comments
 (0)