Skip to content

Commit 62926f2

Browse files
committed
Merge pull request '2.4.0' (#251) from develop into master
2 parents 862f80c + 922b049 commit 62926f2

47 files changed

Lines changed: 1235 additions & 706 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
max-parallel: 4
1515
matrix:
16-
python-version: ['3.10', '3.11', '3.12', '3.13']
16+
python-version: ['3.11', '3.12', '3.13', "3.14"]
1717

1818
steps:
1919
- uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for info on hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v5.0.0
5+
rev: v6.0.0
66
hooks:
77
- id: check-added-large-files
88
name: (base:repo) debug-statements
@@ -21,7 +21,7 @@ repos:
2121
name: (base:repo) debug-statements
2222
stages: [pre-commit]
2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: v0.11.6
24+
rev: v0.14.0
2525
hooks:
2626
- id: ruff
2727
name: (base:repo) ruff

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ version: 2
77

88
# Set the version of Python and other tools you might need
99
build:
10-
os: ubuntu-22.04
10+
os: ubuntu-24.04
1111
tools:
12-
python: "3.11"
12+
python: "3.13"
1313
# You can also specify other tool versions:
1414
# nodejs: "16"
1515
# rust: "1.55"

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## 2.4.0
4+
5+
### General
6+
7+
> [!WARNING]
8+
>
9+
> This release drops support for Python 3.10.
10+
11+
* Drop support for Python 3.10.
12+
* Add support for Python 3.14.
13+
* Require pint >= 0.25.0
14+
15+
### Processing
16+
17+
* Improve the part of speech tagging accuracy by extending the built-in `tagdict` in NLTK's part of speech tagger with ingredient specific entries.
18+
* Add `name_index` field to `FoundationFood` objects. This field refers to the index of the matching name in the `ParsedIngredient.name` list.
19+
* The list of names and foundation foods are also guaranteed to be in the same order (although be aware that a name may not have a matching foundation food).
20+
* Improve processing of names, particularly related to handling of punctuation at the beginning or end of the name.
21+
22+
323
## 2.3.0
424

525
> [!NOTE]

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ include ingredient_parser/en/data/model.en.crfsuite
33
include ingredient_parser/en/data/ModelCard.en.md
44
include ingredient_parser/en/data/ingredient_embeddings.25d.glove.txt.gz
55
include ingredient_parser/en/data/fdc_ingredients.csv.gz
6+
include ingredient_parser/en/data/ingredient_tagdict.json.gz
67
global-exclude test*
78
prune */__pycache__

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ The core of the library is a sequence labelling model that is used to label each
4747
The model has the following accuracy on a test data set of 20% of the total data used:
4848

4949
```
50-
Sentence-level results:
51-
Accuracy: 94.94%
52-
53-
Word-level results:
54-
Accuracy 97.90%
55-
Precision (micro) 97.88%
56-
Recall (micro) 97.90%
57-
F1 score (micro) 97.88%
50+
╒══════════════════════════╤══════════════════════════╕
51+
│ Sentence-level results │ Word-level results │
52+
╞══════════════════════════╪══════════════════════════╡
53+
│ Accuracy: 95.27% │ Accuracy: 98.10% │
54+
│ │ Precision (micro) 98.08% │
55+
│ │ Recall (micro) 98.10% │
56+
│ │ F1 score (micro) 98.09% │
57+
╘══════════════════════════╧══════════════════════════╛
5858
```
5959

6060
## Development

0 commit comments

Comments
 (0)