Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/docs' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mgraffg committed Aug 16, 2024
2 parents 268c598 + f6d6e30 commit e3947c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ jobs:
git config --global user.email "mgraffg@ieee.org"
git config --global user.name "mgraffg"
cd quarto
quarto publish gh-pages . --no-browser
quarto publish gh-pages dialectid.qmd --no-browser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 4 additions & 2 deletions quarto/dialectid.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,16 @@ detect.countries
from dialectid import DialectId
detect = DialectId(lang='es', voc_size_exponent=15)
detect.predict(['comiendo unos tacos',
'tomando vino en la comida'])
'tomando vino en el asado'])
```

```{python}
#| echo: true
#| title: Decision Function
df = detect.decision_function('tomando vino en la comida')[0]
from dialectid import DialectId
detect = DialectId(lang='es', voc_size_exponent=15)
df = detect.decision_function('tomando vino en el asado')[0]
index = df.argsort()[::-1]
[(detect.countries[i], df[i]) for i in index
if df[i] > 0]
Expand Down

0 comments on commit e3947c2

Please sign in to comment.