turian/flair-pos-english 📝🔢 → 📝

▶️ 53 runs 📅 Jul 2023 ⚙️ Cog 0.8.1 🔗 GitHub 📄 Paper ⚖️ License
nlp pos-tagging

About

Run flair/pos-english on a JSON list of sentence strings

Example Output

Output

[{"text": "I love berlin.", "all labels": [{"value": "PRP", "confidence": 0.9999994039535522}, {"value": "VBP", "confidence": 0.9999959468841553}, {"value": "NN", "confidence": 0.6081405282020569}, {"value": ".", "confidence": 0.9999886751174927}], "token positions": [[0, 1], [2, 6], [7, 13], [13, 14]]}, {"text": "Deep neural networks are cool.", "all labels": [{"value": "JJ", "confidence": 0.9999175071716309}, {"value": "JJ", "confidence": 0.970643162727356}, {"value": "NNS", "confidence": 0.9999926090240479}, {"value": "VBP", "confidence": 1.0}, {"value": "JJ", "confidence": 0.9999996423721313}, {"value": ".", "confidence": 0.9999958276748657}], "token positions": [[0, 4], [5, 11], [12, 20], [21, 24], [25, 29], [29, 30]]}, {"text": "Geoff Hinton is the father---Yoshua Bengio is the son---Yann LeCun is the holy ghost.", "all labels": [{"value": "NNP", "confidence": 0.9999997615814209}, {"value": "NNP", "confidence": 1.0}, {"value": "VBZ", "confidence": 1.0}, {"value": "DT", "confidence": 1.0}, {"value": "NN", "confidence": 0.9999498128890991}, {"value": ":", "confidence": 0.9369075298309326}, {"value": "NNP", "confidence": 0.9999994039535522}, {"value": "NNP", "confidence": 0.9999998807907104}, {"value": "VBZ", "confidence": 1.0}, {"value": "DT", "confidence": 1.0}, {"value": "NN", "confidence": 0.9999871253967285}, {"value": ":", "confidence": 0.9893242716789246}, {"value": "NNP", "confidence": 0.9999842643737793}, {"value": "NNP", "confidence": 1.0}, {"value": "VBZ", "confidence": 1.0}, {"value": "DT", "confidence": 1.0}, {"value": "JJ", "confidence": 0.9999221563339233}, {"value": "NN", "confidence": 0.9999326467514038}, {"value": ".", "confidence": 0.9999970197677612}], "token positions": [[0, 5], [6, 12], [13, 15], [16, 19], [20, 26], [26, 29], [29, 35], [36, 42], [43, 45], [46, 49], [50, 53], [53, 56], [56, 60], [61, 66], [67, 69], [70, 73], [74, 78], [79, 84], [84, 85]]}]

Performance Metrics

0.51s Prediction Time
150.14s Total Time
Input Parameters
sentences_json (required) Type: string
JSON of list sentence strings, to POS tag and return list of JSON dicts of flair.Sentence
mini_batch_size Type: integerDefault: 32
Batch size for flair.predict, default 32
Output Schema

Output

Type: string

Version Details
Version ID
e0f0f348c11530f6ed08edc30d736ba4da77036b62713b0c4612b52a689358ba
Version Created
July 22, 2023
Run on Replicate →