Skip to content

Commit

Permalink
Small fixes for refactor by @proycon
Browse files Browse the repository at this point in the history
  • Loading branch information
Woseseltops committed Nov 29, 2018
1 parent 52bf1d1 commit 7056d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ Example usage

Glem comes with a pretrained model, based on lemmas chosen by humans (in the UiO PROIEL project, PI: Dag Haug), for Herodotus. If you are inside the Lamachine environment (something like ```lamachine/bin/activate```), you can use it (with or without Frog) as follows:

```glem -f input.txt -m herodotus```
```glem -f input.txt```

The files for this model can be found in ```glem/pretrained_models/herodotus``` .
4 changes: 2 additions & 2 deletions glem/glem.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def lemmatise(word, tag, ghd_words, verbose):
print( "UNKNOWN WORD", word )
return (None, "UNKNOWN")

def query_frog_sentence(words, verbose):
def query_frog_sentence(frog,words, verbose):
if have_frog:
try:
frog_out = frog.process(words)
Expand Down Expand Up @@ -501,7 +501,7 @@ def main():
words.pop(0)
words = [ normalize('NFC', w) for w in words ]
if have_frog:
frog_out = query_frog_sentence(" ".join(words) , verbose)
frog_out = query_frog_sentence(frog," ".join(words) , verbose)
for word in words:
if verbose:
print( "\n", word, lcount, wcount )
Expand Down

0 comments on commit 7056d4e

Please sign in to comment.